summaryrefslogtreecommitdiff
path: root/test/RequestGroupTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:39:47 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:40:08 +0900
commitb1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch)
tree9ce465b42bf09372118335c7c619bb2b41869eaf /test/RequestGroupTest.cc
parent4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff)
make clang-format using clang-format-3.6
Diffstat (limited to 'test/RequestGroupTest.cc')
-rw-r--r--test/RequestGroupTest.cc18
1 files changed, 8 insertions, 10 deletions
diff --git a/test/RequestGroupTest.cc b/test/RequestGroupTest.cc
index ab8b458f..47bc6e05 100644
--- a/test/RequestGroupTest.cc
+++ b/test/RequestGroupTest.cc
@@ -16,25 +16,23 @@ class RequestGroupTest : public CppUnit::TestFixture {
CPPUNIT_TEST(testGetFirstFilePath);
CPPUNIT_TEST(testCreateDownloadResult);
CPPUNIT_TEST_SUITE_END();
+
private:
std::shared_ptr<Option> option_;
+
public:
- void setUp()
- {
- option_.reset(new Option());
- }
+ void setUp() { option_.reset(new Option()); }
void testGetFirstFilePath();
void testCreateDownloadResult();
};
-
-CPPUNIT_TEST_SUITE_REGISTRATION( RequestGroupTest );
+CPPUNIT_TEST_SUITE_REGISTRATION(RequestGroupTest);
void RequestGroupTest::testGetFirstFilePath()
{
- std::shared_ptr<DownloadContext> ctx
- (new DownloadContext(1_k, 1_k, "/tmp/myfile"));
+ std::shared_ptr<DownloadContext> ctx(
+ new DownloadContext(1_k, 1_k, "/tmp/myfile"));
RequestGroup group(GroupId::create(), option_);
group.setDownloadContext(ctx);
@@ -48,8 +46,8 @@ void RequestGroupTest::testGetFirstFilePath()
void RequestGroupTest::testCreateDownloadResult()
{
- std::shared_ptr<DownloadContext> ctx
- (new DownloadContext(1_k, 1_m, "/tmp/myfile"));
+ std::shared_ptr<DownloadContext> ctx(
+ new DownloadContext(1_k, 1_m, "/tmp/myfile"));
RequestGroup group(GroupId::create(), option_);
group.setDownloadContext(ctx);
group.initPieceStorage();