diff options
| author | Alan Conway <aconway@apache.org> | 2007-07-05 16:08:29 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-07-05 16:08:29 +0000 |
| commit | f8903ef9bf3767041bb3a8437c8423ea984e5893 (patch) | |
| tree | 4d350dfd5d525b14973f193053a2e8cf1ee150b4 /qpid/cpp/src/tests/Uuid.cpp | |
| parent | 90a3700bc22ee8edbc98431da50e55a8bf8c14b0 (diff) | |
| download | qpid-python-f8903ef9bf3767041bb3a8437c8423ea984e5893.tar.gz | |
* src/qpid/cluster/SessionFrame.cpp, .h: Wrap AMQFrame with
session UUID and direction.
* src/qpid/cluster/Cluster.cpp, .h: Use SessionFrame.
* src/qpid/framing/AMQFrame.h, .cpp: Added setBody(), inline getBody()
* src/qpid/framing/Uuid.h, .cpp: Clean up constructors, inline.
* src/qpid/framing/Buffer.h: Put/get byte*, size_T.
* src/qpid/cluster/SessionManager.cpp, .h:
- Maintain the session map.
- Handle frames from cluster, dispatch to proper channels.
- Implement HandlerUpdater for new channels and maintains
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@553543 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/Uuid.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/Uuid.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/Uuid.cpp b/qpid/cpp/src/tests/Uuid.cpp index 43d1cbcbba..da8c94aeae 100644 --- a/qpid/cpp/src/tests/Uuid.cpp +++ b/qpid/cpp/src/tests/Uuid.cpp @@ -37,6 +37,7 @@ struct UniqueSet : public std::set<Uuid> { BOOST_AUTO_TEST_CASE(testUuidCtor) { // Uniqueness boost::array<Uuid,1000> uuids; + for_each(uuids.begin(), uuids.end(), mem_fun_ref(&Uuid::generate)); UniqueSet unique; for_each(uuids.begin(), uuids.end(), unique); } @@ -62,10 +63,11 @@ BOOST_AUTO_TEST_CASE(testUuidOstream) { BOOST_AUTO_TEST_CASE(testUuidEncodeDecode) { Buffer buf(Uuid::size()); - Uuid uuid; + Uuid uuid(sample.c_array()); uuid.encode(buf); buf.flip(); Uuid decoded; decoded.decode(buf); - BOOST_CHECK(uuid==decoded); + BOOST_CHECK_EQUAL(string(sample.begin(), sample.end()), + string(decoded.begin(), decoded.end())); } |
