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

Unified Diff: net/test/base_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: "" 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/test/base_test_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/base_test_server.h
diff --git a/net/test/base_test_server.h b/net/test/base_test_server.h
index f7d5654baf223876937741b1ff486e66f1d8a8c3..a1b7fb4fbe710d0ee8e87ff6758c3fd646669b6c 100644
--- a/net/test/base_test_server.h
+++ b/net/test/base_test_server.h
@@ -167,16 +167,23 @@ class BaseTestServer {
const std::vector<StringPair>& text_to_replace,
std::string* replacement_path);
+ // Sets |port| as the actual port used by Python based test server.
+ void SetPort(uint16 port);
+
+ // Sets |xmpp_port| as the actual xmpp_port used by Python based test server.
+ void SetXmppPort(uint16 xmpp_port);
Paweł Hajdan Jr. 2012/05/21 08:36:46 Please stop this. I asked you people to extract th
Raghu Simha 2012/05/23 02:25:11 Your language here puzzles me. Whom do you mean by
+
protected:
virtual ~BaseTestServer();
Type type() const { return type_; }
// Gets port currently assigned to host_port_pair_ without checking
// whether it's available (server started) or not.
- uint16 GetPort();
+ uint16 GetPort() const;
- // Sets |port| as the actual port used by Python based test server.
- void SetPort(uint16 port);
+ // Gets port currently assigned to xmpp_port_ without checking
+ // whether it's available (server started) or not.
+ uint16 GetXmppPort() const;
// Set up internal status when the server is started.
bool SetupWhenServerStarted() WARN_UNUSED_RESULT;
@@ -212,6 +219,9 @@ class BaseTestServer {
// Address the test server listens on.
HostPortPair host_port_pair_;
+ // Port on which the Sync XMPP server listens.
+ uint16 xmpp_port_;
+
// Holds the data sent from the server (e.g., port number).
scoped_ptr<base::DictionaryValue> server_data_;
« no previous file with comments | « no previous file | net/test/base_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698