diff options
| author | Alan Conway <aconway@apache.org> | 2010-05-14 13:55:18 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2010-05-14 13:55:18 +0000 |
| commit | 854062d73c485027f2f40abac159cb19e85c0dca (patch) | |
| tree | 018655bb2fe2f0320bf39ea4fb6e9b25e833d778 /cpp/src/tests/MessagingFixture.h | |
| parent | 18a06573ea14a98029764d1badf42695b3a31643 (diff) | |
| download | qpid-python-854062d73c485027f2f40abac159cb19e85c0dca.tar.gz | |
Initial multi-thread unit test for messaging API.
- added Receiver::isClosed() to test for local close.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@944261 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/MessagingFixture.h')
| -rw-r--r-- | cpp/src/tests/MessagingFixture.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/tests/MessagingFixture.h b/cpp/src/tests/MessagingFixture.h index 5fb3fc56b2..5546b4ef49 100644 --- a/cpp/src/tests/MessagingFixture.h +++ b/cpp/src/tests/MessagingFixture.h @@ -182,7 +182,7 @@ struct MultiQueueFixture : MessagingFixture }; -std::vector<std::string> fetch(messaging::Receiver& receiver, int count, messaging::Duration timeout=messaging::Duration::SECOND*5) +inline std::vector<std::string> fetch(messaging::Receiver& receiver, int count, messaging::Duration timeout=messaging::Duration::SECOND*5) { std::vector<std::string> data; messaging::Message message; @@ -193,7 +193,7 @@ std::vector<std::string> fetch(messaging::Receiver& receiver, int count, messagi } -void send(messaging::Sender& sender, uint count = 1, uint start = 1, +inline void send(messaging::Sender& sender, uint count = 1, uint start = 1, const std::string& base = "Message") { for (uint i = start; i < start + count; ++i) { @@ -201,7 +201,7 @@ void send(messaging::Sender& sender, uint count = 1, uint start = 1, } } -void receive(messaging::Receiver& receiver, uint count = 1, uint start = 1, +inline void receive(messaging::Receiver& receiver, uint count = 1, uint start = 1, const std::string& base = "Message", messaging::Duration timeout=messaging::Duration::SECOND*5) { |
