qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shus...@apache.org
Subject svn commit: r887038 - in /qpid/trunk/qpid/cpp/src/tests: CMakeLists.txt test_store.cpp
Date Fri, 04 Dec 2009 02:26:17 GMT
Author: shuston
Date: Fri Dec  4 02:26:16 2009
New Revision: 887038

URL: http://svn.apache.org/viewvc?rev=887038&view=rev
Log:
Fix build errors in test_store; resolves QPID-2229

Modified:
    qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt
    qpid/trunk/qpid/cpp/src/tests/test_store.cpp

Modified: qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt?rev=887038&r1=887037&r2=887038&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt (original)
+++ qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt Fri Dec  4 02:26:16 2009
@@ -290,6 +290,7 @@
 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 +=								\

Modified: qpid/trunk/qpid/cpp/src/tests/test_store.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/test_store.cpp?rev=887038&r1=887037&r2=887038&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/test_store.cpp (original)
+++ qpid/trunk/qpid/cpp/src/tests/test_store.cpp Fri Dec  4 02:26:16 2009
@@ -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 Completer : public Runnable {
-    intrusive_ptr<PersistableMessage> message;
+    boost::intrusive_ptr<PersistableMessage> message;
     int usecs;
-    Completer(intrusive_ptr<PersistableMessage> m, int u) : message(m), usecs(u) {}
+    Completer(boost::intrusive_ptr<PersistableMessage> m, int u) : message(m), usecs(u)
{}
     void run() {
         qpid::sys::usleep(usecs);
         message->enqueueComplete();
@@ -82,7 +81,7 @@
                  const boost::intrusive_ptr<PersistableMessage>& msg,
                  const PersistableQueue& )
     {
-        string data = polymorphic_downcast<Message*>(msg.get())->getFrames().getContent();
+        string data = boost::polymorphic_downcast<Message*>(msg.get())->getFrames().getContent();
 
         // Check the message for special instructions.
         size_t i = string::npos;
@@ -106,7 +105,7 @@
             }
             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<int>(delayStr);
+                int delay = boost::lexical_cast<int>(delayStr);
                 threads.push_back(Thread(*new Completer(msg, delay)));
             }
             else {



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message