summaryrefslogtreecommitdiff
path: root/test/SingletonHolderTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
commit07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch)
tree2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /test/SingletonHolderTest.cc
parent126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff)
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'test/SingletonHolderTest.cc')
-rw-r--r--test/SingletonHolderTest.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/SingletonHolderTest.cc b/test/SingletonHolderTest.cc
index a3ac2eed..f9793616 100644
--- a/test/SingletonHolderTest.cc
+++ b/test/SingletonHolderTest.cc
@@ -4,8 +4,6 @@
#include <cppunit/extensions/HelperMacros.h>
-#include "SharedHandle.h"
-
namespace aria2 {
class SingletonHolderTest : public CppUnit::TestFixture {
@@ -40,7 +38,7 @@ public:
void SingletonHolderTest::testInstance()
{
- SharedHandle<M> m(new M("Hello world."));
+ std::shared_ptr<M> m(new M("Hello world."));
SingletonHolder<M>::instance(m);
CPPUNIT_ASSERT_EQUAL(std::string("Hello world."),
SingletonHolder<M>::instance()->greeting());