From fbddf29b719cd610b01b2459c4827d636cda6c73 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Wed, 9 Sep 2009 19:46:56 +0000 Subject: Tidied up namespace usage Miscelleneous whitespace fixes git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@813094 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/AsyncCompletion.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'cpp/src/tests/AsyncCompletion.cpp') diff --git a/cpp/src/tests/AsyncCompletion.cpp b/cpp/src/tests/AsyncCompletion.cpp index 41423d8245..4492e6b6bc 100644 --- a/cpp/src/tests/AsyncCompletion.cpp +++ b/cpp/src/tests/AsyncCompletion.cpp @@ -49,10 +49,13 @@ using boost::intrusive_ptr; * message enqueues at the correct time. */ +namespace qpid { +namespace tests { + class AsyncCompletionMessageStore : public NullMessageStore { public: sys::BlockingQueue > enqueued; - + AsyncCompletionMessageStore() : NullMessageStore() {} ~AsyncCompletionMessageStore(){} @@ -82,10 +85,10 @@ QPID_AUTO_TEST_CASE(testWaitTillComplete) { transfers[i] = s.messageTransfer(arg::content=msg); } - // Get hold of the broker-side messages. + // Get hold of the broker-side messages. typedef vector > BrokerMessages; BrokerMessages enqueued; - for (int j = 0; j < count; ++j) + for (int j = 0; j < count; ++j) enqueued.push_back(store->enqueued.pop(TIME_SEC)); // Send a sync, make sure it does not complete till all messages are complete. @@ -111,3 +114,5 @@ QPID_AUTO_TEST_CASE(testGetResult) { } QPID_AUTO_TEST_SUITE_END() + +}} // namespace qpid::tests -- cgit v1.2.1