From d911218bb11cc36c3274b02a6d205578de6db9bc Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Fri, 4 Dec 2009 02:26:16 +0000 Subject: Fix build errors in test_store; resolves QPID-2229 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@887038 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/CMakeLists.txt | 1 + qpid/cpp/src/tests/test_store.cpp | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/tests/CMakeLists.txt b/qpid/cpp/src/tests/CMakeLists.txt index 1d67d22e7c..43f92b2d2d 100644 --- a/qpid/cpp/src/tests/CMakeLists.txt +++ b/qpid/cpp/src/tests/CMakeLists.txt @@ -290,6 +290,7 @@ endif (BUILD_ACL) endif (PYTHON_EXECUTABLE) add_library(test_store MODULE test_store.cpp) +target_link_libraries (test_store qpidbroker qpidcommon) set_target_properties (test_store PROPERTIES PREFIX "") #EXTRA_DIST += \ diff --git a/qpid/cpp/src/tests/test_store.cpp b/qpid/cpp/src/tests/test_store.cpp index f2d3aa65a3..c675c6daa3 100644 --- a/qpid/cpp/src/tests/test_store.cpp +++ b/qpid/cpp/src/tests/test_store.cpp @@ -43,7 +43,6 @@ using namespace qpid; using namespace broker; using namespace std; -using namespace boost; using namespace qpid::sys; namespace qpid { @@ -60,9 +59,9 @@ struct TestStoreOptions : public Options { }; struct Completer : public Runnable { - intrusive_ptr message; + boost::intrusive_ptr message; int usecs; - Completer(intrusive_ptr m, int u) : message(m), usecs(u) {} + Completer(boost::intrusive_ptr m, int u) : message(m), usecs(u) {} void run() { qpid::sys::usleep(usecs); message->enqueueComplete(); @@ -82,7 +81,7 @@ class TestStore : public NullMessageStore { const boost::intrusive_ptr& msg, const PersistableQueue& ) { - string data = polymorphic_downcast(msg.get())->getFrames().getContent(); + string data = boost::polymorphic_downcast(msg.get())->getFrames().getContent(); // Check the message for special instructions. size_t i = string::npos; @@ -106,7 +105,7 @@ class TestStore : public NullMessageStore { } else if (strncmp(action.c_str(), ASYNC.c_str(), strlen(ASYNC.c_str())) == 0) { std::string delayStr(action.substr(ASYNC.size())); - int delay = lexical_cast(delayStr); + int delay = boost::lexical_cast(delayStr); threads.push_back(Thread(*new Completer(msg, delay))); } else { -- cgit v1.2.1