mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 05:57:36 +03:00
Use CookieStorage class instead of CookieBox class. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1. * src/AbstractProxyRequestCommand.cc * src/CookieStorage.cc * src/DownloadEngine.cc * src/DownloadEngine.h * src/HttpConnection.cc * src/HttpConnection.h * src/HttpRequest.cc * src/HttpRequest.h * src/HttpRequestCommand.cc * src/HttpResponse.cc * src/HttpResponseCommand.cc * src/HttpSkipResponseCommand.cc * src/Makefile.am * src/MultiUrlRequestInfo.cc * src/Request.cc * src/Request.h * src/main.cc * test/AllTest.cc * test/CookieStorageTest.cc * test/CookieTest.cc * test/HttpRequestTest.cc * test/HttpResponseTest.cc * test/Makefile.am * test/NsCookieParserTest.cc * test/Sqlite3MozCookieParserTest.cc * test/nscookietest.txt
26 lines
719 B
C++
26 lines
719 B
C++
#include "Platform.h"
|
|
#include <iostream>
|
|
#include <cppunit/CompilerOutputter.h>
|
|
#include <cppunit/extensions/TestFactoryRegistry.h>
|
|
#include <cppunit/ui/text/TestRunner.h>
|
|
|
|
int main(int argc, char* argv[]) {
|
|
aria2::Platform platform;
|
|
|
|
#ifdef ENABLE_NLS
|
|
// Set locale to C to prevent the messages to be localized.
|
|
setlocale (LC_CTYPE, "C");
|
|
setlocale (LC_MESSAGES, "C");
|
|
#endif // ENABLE_NLS
|
|
|
|
CppUnit::Test* suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
|
|
CppUnit::TextUi::TestRunner runner;
|
|
runner.addTest(suite);
|
|
|
|
runner.setOutputter(new CppUnit::CompilerOutputter(&runner.result(), std::cerr));
|
|
|
|
// Run the tests.
|
|
bool successfull = runner.run();
|
|
|
|
return successfull ? 0 : 1;
|
|
}
|