summaryrefslogtreecommitdiff
path: root/cpp/src/tests
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-11-10 02:52:57 +0000
committerAlan Conway <aconway@apache.org>2007-11-10 02:52:57 +0000
commitc08a847c9c4e5cd5b85e112ae7ad0b5e3f7ddd4c (patch)
tree3e8d8d722f43512e224f39b133cf599e117b55e8 /cpp/src/tests
parent6b46a46a2207ca6091334c1237e9d27de1cd5393 (diff)
downloadqpid-python-c08a847c9c4e5cd5b85e112ae7ad0b5e3f7ddd4c.tar.gz
Add DeliveryMode enum to AMQHeaderBody.h, remove from tests.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@593726 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests')
-rw-r--r--cpp/src/tests/MessageTest.cpp2
-rw-r--r--cpp/src/tests/TxAckTest.cpp2
-rw-r--r--cpp/src/tests/TxPublishTest.cpp2
-rw-r--r--cpp/src/tests/perftest.cpp4
4 files changed, 1 insertions, 9 deletions
diff --git a/cpp/src/tests/MessageTest.cpp b/cpp/src/tests/MessageTest.cpp
index 7e13595141..3d3de5e9d0 100644
--- a/cpp/src/tests/MessageTest.cpp
+++ b/cpp/src/tests/MessageTest.cpp
@@ -33,8 +33,6 @@ using namespace qpid::broker;
using namespace qpid::framing;
-enum DeliveryMode { TRANSIENT = 1, PERSISTENT = 2};
-
class MessageTest : public CppUnit::TestCase
{
CPPUNIT_TEST_SUITE(MessageTest);
diff --git a/cpp/src/tests/TxAckTest.cpp b/cpp/src/tests/TxAckTest.cpp
index de3355949d..dd57736a0c 100644
--- a/cpp/src/tests/TxAckTest.cpp
+++ b/cpp/src/tests/TxAckTest.cpp
@@ -32,8 +32,6 @@ using std::vector;
using namespace qpid::broker;
using namespace qpid::framing;
-enum DeliveryMode { TRANSIENT = 1, PERSISTENT = 2};
-
class TxAckTest : public CppUnit::TestCase
{
diff --git a/cpp/src/tests/TxPublishTest.cpp b/cpp/src/tests/TxPublishTest.cpp
index 73030516d9..4ec526f207 100644
--- a/cpp/src/tests/TxPublishTest.cpp
+++ b/cpp/src/tests/TxPublishTest.cpp
@@ -34,8 +34,6 @@ using std::vector;
using namespace qpid::broker;
using namespace qpid::framing;
-enum DeliveryMode { TRANSIENT = 1, PERSISTENT = 2};
-
class TxPublishTest : public CppUnit::TestCase
{
typedef std::pair<string, PersistableMessage*> msg_queue_pair;
diff --git a/cpp/src/tests/perftest.cpp b/cpp/src/tests/perftest.cpp
index e311f0fcd2..8d970a0a6f 100644
--- a/cpp/src/tests/perftest.cpp
+++ b/cpp/src/tests/perftest.cpp
@@ -35,8 +35,6 @@ using namespace qpid;
using namespace client;
using namespace sys;
-enum DeliveryMode { TRANSIENT = 1, PERSISTENT = 2};
-
struct Opts : public TestOptions {
bool listen;
@@ -167,7 +165,7 @@ void PublishThread::run() {
Message msg(string(msgSize, 'X'), "perftest");
char* msgBuf = const_cast<char*>(msg.getData().data());
if (opts.durable)
- msg.getDeliveryProperties().setDeliveryMode(PERSISTENT);
+ msg.getDeliveryProperties().setDeliveryMode(framing::PERSISTENT);
// Time sending message.
AbsTime start=now();
if (!opts.summary) cout << "Publishing " << opts.count << " messages " << flush;