make clang-format using clang-format-3.6

This commit is contained in:
Tatsuhiro Tsujikawa 2015-12-27 18:39:47 +09:00
parent 4abad2f64c
commit b1132d6b10
1095 changed files with 30423 additions and 33770 deletions

View file

@ -4,24 +4,23 @@
namespace aria2 {
class CookieBoxTest:public CppUnit::TestFixture {
class CookieBoxTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(CookieBoxTest);
CPPUNIT_TEST(testCriteriaFind);
CPPUNIT_TEST_SUITE_END();
private:
private:
public:
void setUp() {
}
void setUp() {}
void testCriteriaFind();
};
CPPUNIT_TEST_SUITE_REGISTRATION(CookieBoxTest);
CPPUNIT_TEST_SUITE_REGISTRATION( CookieBoxTest );
void CookieBoxTest::testCriteriaFind() {
void CookieBoxTest::testCriteriaFind()
{
// 1181473200 = Sun Jun 10 11:00:00 2007 GMT
Cookie c1("SESSIONID1", "1", 1181473200, "/downloads", "rednoah.com", false);
Cookie c2("SESSIONID2", "2", 1181473200, "/downloads", "rednoah.com", false);
@ -34,7 +33,8 @@ void CookieBoxTest::testCriteriaFind() {
box.add(c3);
box.add(c4);
Cookies result1 = box.criteriaFind("rednoah.com", "/downloads", 1181473100, false);
Cookies result1 =
box.criteriaFind("rednoah.com", "/downloads", 1181473100, false);
CPPUNIT_ASSERT_EQUAL(2, (int)result1.size());
Cookies::iterator itr = result1.begin();
CPPUNIT_ASSERT_EQUAL(std::string("SESSIONID1=1"), (*itr).toString());