mirror of https://github.com/aria2/aria2
2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Updated CookieStorageTest * test/CookieStorageTest.ccpull/1/head
parent
4cfe156aa7
commit
100ed86b5c
|
@ -1,3 +1,8 @@
|
||||||
|
2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Updated CookieStorageTest
|
||||||
|
* test/CookieStorageTest.cc
|
||||||
|
|
||||||
2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
|
In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
|
||||||
|
|
|
@ -257,12 +257,7 @@ void CookieStorageTest::testLoad_sqlite3()
|
||||||
void CookieStorageTest::testLoad_fileNotfound()
|
void CookieStorageTest::testLoad_fileNotfound()
|
||||||
{
|
{
|
||||||
CookieStorage st;
|
CookieStorage st;
|
||||||
try {
|
CPPUNIT_ASSERT(!st.load("/tmp/aria2_CookieStorageTest_testLoad_fileNotfound"));
|
||||||
st.load("/tmp/aria2_CookieStorageTest_testLoad_fileNotfound");
|
|
||||||
CPPUNIT_FAIL("exception must be thrown.");
|
|
||||||
} catch(RecoverableException& e) {
|
|
||||||
// success
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CookieStorageTest::testSaveNsFormat()
|
void CookieStorageTest::testSaveNsFormat()
|
||||||
|
@ -290,12 +285,7 @@ void CookieStorageTest::testSaveNsFormat_fail()
|
||||||
f.mkdirs();
|
f.mkdirs();
|
||||||
}
|
}
|
||||||
CookieStorage st;
|
CookieStorage st;
|
||||||
try {
|
CPPUNIT_ASSERT(!st.saveNsFormat(filename));
|
||||||
st.saveNsFormat(filename);
|
|
||||||
CPPUNIT_FAIL("exception should be thrown.");
|
|
||||||
} catch(RecoverableException& e) {
|
|
||||||
// OK
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace aria2
|
} // namespace aria2
|
||||||
|
|
Loading…
Reference in New Issue