Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 "net/test/local_test_server.h" | |
| 10 | |
| 11 namespace net { | |
| 12 | |
| 13 // Runs a Python-based sync test server on the same machine in which the | |
| 14 // LocalSyncTestServer runs. | |
| 15 class LocalSyncTestServer : public LocalTestServer { | |
| 16 public: | |
| 17 // Initialize a sync server that listens on localhost using ephemeral ports | |
| 18 // for sync and p2p notifications. | |
| 19 LocalSyncTestServer(); | |
| 20 | |
| 21 // Initialize a sync server that listens on |port| for sync updates and | |
| 22 // |xmpp_port| for p2p notifications. | |
| 23 LocalSyncTestServer(uint16 port, uint16 xmpp_port); | |
| 24 | |
| 25 virtual ~LocalSyncTestServer(); | |
| 26 | |
| 27 // Calls BaseTestServer::GenerateArguments and adds sync specific arguments. | |
| 28 virtual bool GenerateArguments( | |
| 29 base::DictionaryValue* arguments) const OVERRIDE; | |
| 30 | |
| 31 // Clean up internal status before stopping the server. | |
| 32 virtual void CleanUpWhenStoppingServer() OVERRIDE; | |
|
akalin
2012/05/23 05:29:21
#include base/compiler_specific.h for OVERRIDE
Raghu Simha
2012/05/23 06:02:59
Done.
| |
| 33 | |
| 34 private: | |
| 35 // Port on which the Sync XMPP server listens. | |
| 36 uint16 xmpp_port_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(LocalSyncTestServer); | |
|
akalin
2012/05/23 05:29:21
#include base/basictypes.h for this
Raghu Simha
2012/05/23 06:02:59
Done.
| |
| 39 }; | |
| 40 | |
| 41 } // namespace net | |
| 42 | |
| 43 #endif // NET_TEST_LOCAL_SYNC_TEST_SERVER_H_ | |
| OLD | NEW |