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

Unified Diff: net/test/local_sync_test_server.cc

Issue 11971025: [sync] Divorce python sync test server chromiumsync.py from testserver.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Philippe's comments. Created 7 years, 11 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
Index: net/test/local_sync_test_server.cc
diff --git a/net/test/local_sync_test_server.cc b/net/test/local_sync_test_server.cc
deleted file mode 100644
index 432fde1d90169b3319d5a037f6431315de6814b2..0000000000000000000000000000000000000000
--- a/net/test/local_sync_test_server.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2012 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.
-
-#include "net/test/local_sync_test_server.h"
-
-#include "base/command_line.h"
-#include "base/string_number_conversions.h"
-#include "base/values.h"
-#include "net/test/test_server.h"
-
-namespace net {
-
-LocalSyncTestServer::LocalSyncTestServer()
- : LocalTestServer(net::TestServer::TYPE_SYNC,
- net::TestServer::kLocalhost,
- FilePath()),
- xmpp_port_(0) {}
-
-LocalSyncTestServer::LocalSyncTestServer(uint16 port, uint16 xmpp_port)
- : LocalTestServer(net::TestServer::TYPE_SYNC,
- net::TestServer::kLocalhost,
- FilePath()),
- xmpp_port_(xmpp_port) {
- SetPort(port);
-}
-
-LocalSyncTestServer::~LocalSyncTestServer() {}
-
-bool LocalSyncTestServer::AddCommandLineArguments(
- CommandLine* command_line) const {
- if (!LocalTestServer::AddCommandLineArguments(command_line))
- return false;
- if (xmpp_port_ != 0) {
- std::string xmpp_port_str = base::IntToString(xmpp_port_);
- command_line->AppendArg("--xmpp-port=" + xmpp_port_str);
- }
- return true;
-}
-
-} // namespace net

Powered by Google App Engine
This is Rietveld 408576698