summaryrefslogtreecommitdiff
path: root/test/ExceptionTest.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/ExceptionTest.cc
parent4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff)
make clang-format using clang-format-3.6
Diffstat (limited to 'test/ExceptionTest.cc')
-rw-r--r--test/ExceptionTest.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/ExceptionTest.cc b/test/ExceptionTest.cc
index 1a7c1065..bf16bdf0 100644
--- a/test/ExceptionTest.cc
+++ b/test/ExceptionTest.cc
@@ -9,11 +9,12 @@
namespace aria2 {
-class ExceptionTest:public CppUnit::TestFixture {
+class ExceptionTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(ExceptionTest);
CPPUNIT_TEST(testStackTrace);
CPPUNIT_TEST_SUITE_END();
+
public:
void setUp() {}
@@ -22,23 +23,22 @@ public:
void testStackTrace();
};
-
CPPUNIT_TEST_SUITE_REGISTRATION(ExceptionTest);
void ExceptionTest::testStackTrace()
{
- DownloadFailureException c1 = DOWNLOAD_FAILURE_EXCEPTION2
- ("cause1", error_code::TIME_OUT);
+ DownloadFailureException c1 =
+ DOWNLOAD_FAILURE_EXCEPTION2("cause1", error_code::TIME_OUT);
DownloadFailureException c2 = DOWNLOAD_FAILURE_EXCEPTION2("cause2", c1);
- DownloadFailureException e = DOWNLOAD_FAILURE_EXCEPTION2("exception thrown",
- c2);
-
- CPPUNIT_ASSERT_EQUAL
- (std::string
- ("Exception: [ExceptionTest.cc:34] errorCode=2 exception thrown\n"
- " -> [ExceptionTest.cc:32] errorCode=2 cause2\n"
- " -> [ExceptionTest.cc:31] errorCode=2 cause1\n"),
- util::replace(e.stackTrace(), std::string(A2_TEST_DIR)+"/", ""));
+ DownloadFailureException e =
+ DOWNLOAD_FAILURE_EXCEPTION2("exception thrown", c2);
+
+ CPPUNIT_ASSERT_EQUAL(
+ std::string(
+ "Exception: [ExceptionTest.cc:34] errorCode=2 exception thrown\n"
+ " -> [ExceptionTest.cc:32] errorCode=2 cause2\n"
+ " -> [ExceptionTest.cc:31] errorCode=2 cause1\n"),
+ util::replace(e.stackTrace(), std::string(A2_TEST_DIR) + "/", ""));
}
} // namespace aria2