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

Unified Diff: sync/test/local_sync_test_server.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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/test/fake_sync_encryption_handler.cc ('k') | sync/test/local_sync_test_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/local_sync_test_server.h
diff --git a/sync/test/local_sync_test_server.h b/sync/test/local_sync_test_server.h
deleted file mode 100644
index 95943be10d9f5cc86751c54cd71d3d978edd879b..0000000000000000000000000000000000000000
--- a/sync/test/local_sync_test_server.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2013 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_LOCAL_SYNC_TEST_SERVER_H_
-#define SYNC_TEST_LOCAL_SYNC_TEST_SERVER_H_
-
-#include <stdint.h>
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "net/test/spawned_test_server/local_test_server.h"
-
-namespace syncer {
-
-// Runs a Python-based sync test server on the same machine on which the
-// LocalSyncTestServer runs.
-class LocalSyncTestServer : public net::LocalTestServer {
- public:
- // Initialize a sync server that listens on localhost using ephemeral ports
- // for sync and p2p notifications.
- LocalSyncTestServer();
-
- // Initialize a sync server that listens on |port| for sync updates and
- // |xmpp_port| for p2p notifications.
- LocalSyncTestServer(uint16_t port, uint16_t xmpp_port);
-
- ~LocalSyncTestServer() override;
-
- // Overriden from net::LocalTestServer.
- bool AddCommandLineArguments(base::CommandLine* command_line) const override;
- bool SetPythonPath() const override;
- bool GetTestServerPath(base::FilePath* testserver_path) const override;
-
- // Returns true if the path to |test_script_name| is successfully stored in
- // |*test_script_path|. Used by the run_sync_testserver executable.
- bool GetTestScriptPath(const base::FilePath::StringType& test_script_name,
- base::FilePath* test_script_path) const;
-
- private:
- // Port on which the Sync XMPP server listens.
- uint16_t xmpp_port_;
-
- DISALLOW_COPY_AND_ASSIGN(LocalSyncTestServer);
-};
-
-} // namespace syncer
-
-#endif // SYNC_TEST_LOCAL_SYNC_TEST_SERVER_H_
« no previous file with comments | « sync/test/fake_sync_encryption_handler.cc ('k') | sync/test/local_sync_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698