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

Unified Diff: sync/test/fake_server/fake_sync_server_http_handler.h

Issue 264773007: Remove Sync FakeServer standalone executable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 months 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 | « sync/sync_tests.gypi ('k') | sync/test/fake_server/fake_sync_server_http_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/fake_server/fake_sync_server_http_handler.h
diff --git a/sync/test/fake_server/fake_sync_server_http_handler.h b/sync/test/fake_server/fake_sync_server_http_handler.h
deleted file mode 100644
index ef5ecb510570f244907103a7cf420bf9d7be39c3..0000000000000000000000000000000000000000
--- a/sync/test/fake_server/fake_sync_server_http_handler.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SYNC_TEST_FAKE_SERVER_FAKE_SERVER_HTTP_HANDLER_H_
-#define SYNC_TEST_FAKE_SERVER_FAKE_SERVER_HTTP_HANDLER_H_
-
-#include "net/server/http_server.h"
-#include "sync/test/fake_server/fake_server.h"
-
-namespace fake_server {
-
-// An HTTP server that forwards requests to FakeServer, providing a quick way
-// to test Sync client code.
-class FakeSyncServerHttpHandler : public net::HttpServer::Delegate {
- public:
- // Creates a fake sync server that listens on an available port.
- FakeSyncServerHttpHandler();
-
- // Creates a fake sync server that listens on a specified port.
- explicit FakeSyncServerHttpHandler(int port);
-
- virtual ~FakeSyncServerHttpHandler();
-
- // Begin accepting HTTP requests. Must be called from an IO MessageLoop.
- void Start();
-
- // Overridden from net::HttpServer::Delegate.
- // HTTP requests are processed and WebSocket requests are currently
- // unimplemented.
- virtual void OnHttpRequest(int connection_id,
- const net::HttpServerRequestInfo& info) OVERRIDE;
- virtual void OnWebSocketRequest(
- int connection_id,
- const net::HttpServerRequestInfo& info) OVERRIDE;
-
- virtual void OnWebSocketMessage(int connection_id,
- const std::string& data) OVERRIDE;
-
- virtual void OnClose(int connection_id) OVERRIDE;
-
- private:
- int requested_port_;
-
- scoped_refptr<net::HttpServer> server_;
-
- fake_server::FakeServer fake_sync_server_;
-
- DISALLOW_COPY_AND_ASSIGN(FakeSyncServerHttpHandler);
-};
-
-} // namespace fake_server
-
-#endif // SYNC_TEST_FAKE_SERVER_FAKE_SERVER_HTTP_HANDLER_H_
« no previous file with comments | « sync/sync_tests.gypi ('k') | sync/test/fake_server/fake_sync_server_http_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698