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

Side by Side Diff: net/test/local_sync_test_server.h

Issue 10388206: [sync] Add --port and --xmpp-port parameters to run_testserver.cc (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 7 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
« no previous file with comments | « net/test/OWNERS ('k') | net/test/local_sync_test_server.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_TEST_LOCAL_SYNC_TEST_SERVER_H_
6 #define NET_TEST_LOCAL_SYNC_TEST_SERVER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "net/test/local_test_server.h"
12
13 namespace net {
14
15 // Runs a Python-based sync test server on the same machine in which the
16 // LocalSyncTestServer runs.
17 class LocalSyncTestServer : public LocalTestServer {
18 public:
19 // Initialize a sync server that listens on localhost using ephemeral ports
20 // for sync and p2p notifications.
21 LocalSyncTestServer();
22
23 // Initialize a sync server that listens on |port| for sync updates and
24 // |xmpp_port| for p2p notifications.
25 LocalSyncTestServer(uint16 port, uint16 xmpp_port);
26
27 virtual ~LocalSyncTestServer();
28
29 // Calls LocalTestServer::AddCommandLineArguments and then appends the
30 // --xmpp-port flag to |command_line| if required. Returns true on success.
31 virtual bool AddCommandLineArguments(
32 CommandLine* command_line) const OVERRIDE;
33
34 private:
35 // Port on which the Sync XMPP server listens.
36 uint16 xmpp_port_;
37
38 DISALLOW_COPY_AND_ASSIGN(LocalSyncTestServer);
39 };
40
41 } // namespace net
42
43 #endif // NET_TEST_LOCAL_SYNC_TEST_SERVER_H_
OLDNEW
« no previous file with comments | « net/test/OWNERS ('k') | net/test/local_sync_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698