summaryrefslogtreecommitdiff
path: root/cpp/src/tests/TxAckTest.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-06-05 13:00:26 +0000
committerGordon Sim <gsim@apache.org>2008-06-05 13:00:26 +0000
commita09d0bfddab4f3c27b160480689e563e241ffca7 (patch)
tree8cb9389096e9c32fa7bcbf262ab4776419b3de94 /cpp/src/tests/TxAckTest.cpp
parenta9211a0c7e445552f7805d5c94fa093772a7a3f7 (diff)
downloadqpid-python-a09d0bfddab4f3c27b160480689e563e241ffca7.tar.gz
Fix to makefile and tests (one test temporarily disabled until a fix is found).
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@663601 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/TxAckTest.cpp')
-rw-r--r--cpp/src/tests/TxAckTest.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/cpp/src/tests/TxAckTest.cpp b/cpp/src/tests/TxAckTest.cpp
index d232976fe8..d330942ced 100644
--- a/cpp/src/tests/TxAckTest.cpp
+++ b/cpp/src/tests/TxAckTest.cpp
@@ -22,6 +22,7 @@
#include "qpid/broker/NullMessageStore.h"
#include "qpid/broker/RecoveryManager.h"
#include "qpid/broker/TxAck.h"
+#include "TestMessageStore.h"
#include "unit_test.h"
#include <iostream>
#include <list>
@@ -34,20 +35,7 @@ using namespace qpid;
using namespace qpid::broker;
using namespace qpid::framing;
-
-class TestMessageStore : public NullMessageStore
-{
- public:
- vector<intrusive_ptr<PersistableMessage> > dequeued;
-
- void dequeue(TransactionContext*, intrusive_ptr<PersistableMessage>& msg, const PersistableQueue& /*queue*/)
- {
- dequeued.push_back(msg);
- }
-
- TestMessageStore() : NullMessageStore() {}
- ~TestMessageStore(){}
-};
+QPID_AUTO_TEST_SUITE(TxAckTestSuite)
struct TxAckTest
{
@@ -77,8 +65,6 @@ struct TxAckTest
};
-QPID_AUTO_TEST_SUITE(TxAckTestSuite)
-
QPID_AUTO_TEST_CASE(testPrepare)
{
TxAckTest t;