summaryrefslogtreecommitdiff
path: root/cpp/src/tests/TimerTest.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-12-06 18:22:17 +0000
committerAlan Conway <aconway@apache.org>2007-12-06 18:22:17 +0000
commit430e644a4a647c256ae51682d7230c35d954073e (patch)
treeef03ef6d4f1e1d7451bf26b943a325e425ef2b58 /cpp/src/tests/TimerTest.cpp
parent8a3e8a01188a500401196601d78ecf146ab8ba66 (diff)
downloadqpid-python-430e644a4a647c256ae51682d7230c35d954073e.tar.gz
Removed redundant TimerA, use intrusive_ptr for Timer.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601803 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/TimerTest.cpp')
-rw-r--r--cpp/src/tests/TimerTest.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/tests/TimerTest.cpp b/cpp/src/tests/TimerTest.cpp
index 3f2a1c57ec..864ddaf702 100644
--- a/cpp/src/tests/TimerTest.cpp
+++ b/cpp/src/tests/TimerTest.cpp
@@ -30,6 +30,7 @@
using namespace qpid::broker;
using namespace qpid::sys;
+using qpid::intrusive_ptr;
using boost::dynamic_pointer_cast;
class TimerTest : public CppUnit::TestCase
@@ -104,10 +105,10 @@ public:
{
Counter counter;
Timer timer;
- TestTask::shared_ptr task1(new TestTask(Duration(3 * TIME_SEC), counter));
- TestTask::shared_ptr task2(new TestTask(Duration(1 * TIME_SEC), counter));
- TestTask::shared_ptr task3(new TestTask(Duration(4 * TIME_SEC), counter));
- TestTask::shared_ptr task4(new TestTask(Duration(2 * TIME_SEC), counter));
+ intrusive_ptr<TestTask> task1(new TestTask(Duration(3 * TIME_SEC), counter));
+ intrusive_ptr<TestTask> task2(new TestTask(Duration(1 * TIME_SEC), counter));
+ intrusive_ptr<TestTask> task3(new TestTask(Duration(4 * TIME_SEC), counter));
+ intrusive_ptr<TestTask> task4(new TestTask(Duration(2 * TIME_SEC), counter));
timer.add(task1);
timer.add(task2);