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

Side by Side Diff: components/sync/tools/testserver/run_sync_testserver.cc

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, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdint.h> 5 #include <stdint.h>
6 #include <stdio.h> 6 #include <stdio.h>
7 7
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/process/launch.h" 13 #include "base/process/launch.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/test/test_timeouts.h" 15 #include "base/test/test_timeouts.h"
16 #include "components/sync/test/local_sync_test_server.h"
16 #include "net/test/python_utils.h" 17 #include "net/test/python_utils.h"
17 #include "sync/test/local_sync_test_server.h"
18 18
19 static void PrintUsage() { 19 static void PrintUsage() {
20 printf("run_sync_testserver [--port=<port>] [--xmpp-port=<xmpp_port>]\n"); 20 printf("run_sync_testserver [--port=<port>] [--xmpp-port=<xmpp_port>]\n");
21 } 21 }
22 22
23 // Launches the chromiumsync_test.py or xmppserver_test.py scripts, which test 23 // Launches the chromiumsync_test.py or xmppserver_test.py scripts, which test
24 // the sync HTTP and XMPP sever functionality respectively. 24 // the sync HTTP and XMPP sever functionality respectively.
25 static bool RunSyncTest( 25 static bool RunSyncTest(
26 const base::FilePath::StringType& sync_test_script_name) { 26 const base::FilePath::StringType& sync_test_script_name) {
27 std::unique_ptr<syncer::LocalSyncTestServer> test_server( 27 std::unique_ptr<syncer::LocalSyncTestServer> test_server(
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 printf("Error: failed to start python sync test server. Exiting.\n"); 112 printf("Error: failed to start python sync test server. Exiting.\n");
113 return -1; 113 return -1;
114 } 114 }
115 115
116 printf("Python sync test server running at %s (type ctrl+c to exit)\n", 116 printf("Python sync test server running at %s (type ctrl+c to exit)\n",
117 test_server->host_port_pair().ToString().c_str()); 117 test_server->host_port_pair().ToString().c_str());
118 118
119 message_loop.Run(); 119 message_loop.Run();
120 return 0; 120 return 0;
121 } 121 }
OLDNEW
« no previous file with comments | « components/sync/tools/testserver/chromiumsync_test.py ('k') | components/sync/tools/testserver/sync_testserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698