diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:39:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:40:08 +0900 |
| commit | b1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch) | |
| tree | 9ce465b42bf09372118335c7c619bb2b41869eaf /test/BtRegistryTest.cc | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
Diffstat (limited to 'test/BtRegistryTest.cc')
| -rw-r--r-- | test/BtRegistryTest.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/test/BtRegistryTest.cc b/test/BtRegistryTest.cc index 469bc8ec..a1ace554 100644 --- a/test/BtRegistryTest.cc +++ b/test/BtRegistryTest.cc @@ -15,7 +15,7 @@ namespace aria2 { -class BtRegistryTest:public CppUnit::TestFixture { +class BtRegistryTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(BtRegistryTest); CPPUNIT_TEST(testGetDownloadContext); @@ -24,8 +24,8 @@ class BtRegistryTest:public CppUnit::TestFixture { CPPUNIT_TEST(testRemove); CPPUNIT_TEST(testRemoveAll); CPPUNIT_TEST_SUITE_END(); -private: +private: public: void testGetDownloadContext(); void testGetDownloadContext_infoHash(); @@ -34,8 +34,7 @@ public: void testRemoveAll(); }; - -CPPUNIT_TEST_SUITE_REGISTRATION( BtRegistryTest ); +CPPUNIT_TEST_SUITE_REGISTRATION(BtRegistryTest); void BtRegistryTest::testGetDownloadContext() { @@ -71,10 +70,10 @@ void BtRegistryTest::testGetDownloadContext_infoHash() attrs1->infoHash = "hash1"; auto attrs2 = make_unique<TorrentAttribute>(); attrs2->infoHash = "hash2"; - btRegistry.getDownloadContext(1)->setAttribute(CTX_ATTR_BT, - std::move(attrs1)); - btRegistry.getDownloadContext(2)->setAttribute(CTX_ATTR_BT, - std::move(attrs2)); + btRegistry.getDownloadContext(1) + ->setAttribute(CTX_ATTR_BT, std::move(attrs1)); + btRegistry.getDownloadContext(2) + ->setAttribute(CTX_ATTR_BT, std::move(attrs2)); } CPPUNIT_ASSERT(btRegistry.getDownloadContext("hash1")); CPPUNIT_ASSERT(btRegistry.getDownloadContext("hash1").get() == @@ -87,7 +86,7 @@ void BtRegistryTest::testGetAllDownloadContext() BtRegistry btRegistry; addTwoDownloadContext(btRegistry); - std::vector<std::shared_ptr<DownloadContext> > result; + std::vector<std::shared_ptr<DownloadContext>> result; btRegistry.getAllDownloadContext(std::back_inserter(result)); CPPUNIT_ASSERT_EQUAL((size_t)2, result.size()); } |
