OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef NET_TEST_SPAWNED_TEST_SERVER_REMOTE_TEST_SERVER_H_ | 5 #ifndef NET_TEST_SPAWNED_TEST_SERVER_REMOTE_TEST_SERVER_H_ |
6 #define NET_TEST_SPAWNED_TEST_SERVER_REMOTE_TEST_SERVER_H_ | 6 #define NET_TEST_SPAWNED_TEST_SERVER_REMOTE_TEST_SERVER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 bool Init(const base::FilePath& document_root); | 54 bool Init(const base::FilePath& document_root); |
55 | 55 |
56 // The local port used to communicate with the TestServer spawner. This is | 56 // The local port used to communicate with the TestServer spawner. This is |
57 // used to control the startup and shutdown of the Python TestServer running | 57 // used to control the startup and shutdown of the Python TestServer running |
58 // on the remote machine. On Android, this port will be redirected to the | 58 // on the remote machine. On Android, this port will be redirected to the |
59 // same port on the host machine. | 59 // same port on the host machine. |
60 int spawner_server_port_; | 60 int spawner_server_port_; |
61 | 61 |
62 // Helper to start and stop instances of the Python test server that runs on | 62 // Helper to start and stop instances of the Python test server that runs on |
63 // the host machine. | 63 // the host machine. |
64 scoped_ptr<SpawnerCommunicator> spawner_communicator_; | 64 std::unique_ptr<SpawnerCommunicator> spawner_communicator_; |
65 | 65 |
66 DISALLOW_COPY_AND_ASSIGN(RemoteTestServer); | 66 DISALLOW_COPY_AND_ASSIGN(RemoteTestServer); |
67 }; | 67 }; |
68 | 68 |
69 } // namespace net | 69 } // namespace net |
70 | 70 |
71 #endif // NET_TEST_SPAWNED_TEST_SERVER_REMOTE_TEST_SERVER_H_ | 71 #endif // NET_TEST_SPAWNED_TEST_SERVER_REMOTE_TEST_SERVER_H_ |
72 | 72 |
OLD | NEW |