OLD | NEW |
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 #ifndef CHROME_BROWSER_SAFE_BROWSING_LOCAL_TWO_PHASE_TESTSERVER_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_LOCAL_TWO_PHASE_TESTSERVER_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_LOCAL_TWO_PHASE_TESTSERVER_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_LOCAL_TWO_PHASE_TESTSERVER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
10 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/macros.h" |
11 #include "net/test/spawned_test_server/local_test_server.h" | 11 #include "net/test/spawned_test_server/local_test_server.h" |
12 | 12 |
13 namespace safe_browsing { | 13 namespace safe_browsing { |
14 | 14 |
15 // Runs a Python-based two phase upload test server on the same machine in which | 15 // Runs a Python-based two phase upload test server on the same machine in which |
16 // the LocalTwoPhaseTestServer runs. | 16 // the LocalTwoPhaseTestServer runs. |
17 class LocalTwoPhaseTestServer : public net::LocalTestServer { | 17 class LocalTwoPhaseTestServer : public net::LocalTestServer { |
18 public: | 18 public: |
19 // Initialize a two phase protocol test server. | 19 // Initialize a two phase protocol test server. |
20 LocalTwoPhaseTestServer(); | 20 LocalTwoPhaseTestServer(); |
21 | 21 |
22 ~LocalTwoPhaseTestServer() override; | 22 ~LocalTwoPhaseTestServer() override; |
23 | 23 |
24 // Returns the path to two_phase_testserver.py. | 24 // Returns the path to two_phase_testserver.py. |
25 bool GetTestServerPath(base::FilePath* testserver_path) const override; | 25 bool GetTestServerPath(base::FilePath* testserver_path) const override; |
26 | 26 |
27 private: | 27 private: |
28 DISALLOW_COPY_AND_ASSIGN(LocalTwoPhaseTestServer); | 28 DISALLOW_COPY_AND_ASSIGN(LocalTwoPhaseTestServer); |
29 }; | 29 }; |
30 | 30 |
31 } // namespace safe_browsing | 31 } // namespace safe_browsing |
32 | 32 |
33 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_TWO_PHASE_TESTSERVER_H_ | 33 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_TWO_PHASE_TESTSERVER_H_ |
34 | 34 |
OLD | NEW |