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