Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: webkit/glue/unittest_test_server.h

Issue 17030: Revert 7508.7509 and 7510 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/resource_fetcher_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/unittest_test_server.h
===================================================================
--- webkit/glue/unittest_test_server.h (revision 7513)
+++ webkit/glue/unittest_test_server.h (working copy)
@@ -14,22 +14,14 @@
// We need to use ResourceLoaderBridge to communicate with the testserver
// instead of using URLRequest directly because URLRequests need to be run on
// the test_shell's IO thread.
-class UnittestTestServer : public HTTPTestServer {
- protected:
- UnittestTestServer() {
- }
-
+class UnittestTestServer : public TestServer {
public:
- static UnittestTestServer* CreateServer() {
- UnittestTestServer* test_server = new UnittestTestServer();
- if (!test_server->Init("localhost", 1337, L"webkit/data")) {
- delete test_server;
- return NULL;
- }
- return test_server;
+ UnittestTestServer() : TestServer(TestServer::ManualInit()) {
+ Init("localhost", 1337, L"webkit/data", std::wstring());
}
- virtual ~UnittestTestServer() {
+ ~UnittestTestServer() {
+ Shutdown();
}
virtual bool MakeGETRequest(const std::string& page_name) {
« no previous file with comments | « webkit/glue/resource_fetcher_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698