| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TEST_SERVER_H_ | 5 #ifndef NET_TEST_TEST_SERVER_H_ |
| 6 #define NET_TEST_TEST_SERVER_H_ | 6 #define NET_TEST_TEST_SERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 GURL GetURL(const std::string& path); | 65 GURL GetURL(const std::string& path); |
| 66 | 66 |
| 67 GURL GetURLWithUser(const std::string& path, | 67 GURL GetURLWithUser(const std::string& path, |
| 68 const std::string& user); | 68 const std::string& user); |
| 69 | 69 |
| 70 GURL GetURLWithUserAndPassword(const std::string& path, | 70 GURL GetURLWithUserAndPassword(const std::string& path, |
| 71 const std::string& user, | 71 const std::string& user, |
| 72 const std::string& password); | 72 const std::string& password); |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 // Appends |dir| to PYTHONPATH. | |
| 76 static void AppendToPythonPath(const FilePath& dir); | |
| 77 | |
| 78 // Modify PYTHONPATH to contain libraries we need. | 75 // Modify PYTHONPATH to contain libraries we need. |
| 79 bool SetPythonPath() WARN_UNUSED_RESULT; | 76 bool SetPythonPath() WARN_UNUSED_RESULT; |
| 80 | 77 |
| 81 // Launches the Python test server. Returns true on success. | 78 // Launches the Python test server. Returns true on success. |
| 82 bool LaunchPython(const FilePath& testserver_path) WARN_UNUSED_RESULT; | 79 bool LaunchPython(const FilePath& testserver_path) WARN_UNUSED_RESULT; |
| 83 | 80 |
| 84 // Waits for the server to start. Returns true on success. | 81 // Waits for the server to start. Returns true on success. |
| 85 bool WaitToStart() WARN_UNUSED_RESULT; | 82 bool WaitToStart() WARN_UNUSED_RESULT; |
| 86 | 83 |
| 87 // Returns path to the root certificate. | 84 // Returns path to the root certificate. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 #endif | 116 #endif |
| 120 | 117 |
| 121 Type type_; | 118 Type type_; |
| 122 | 119 |
| 123 DISALLOW_COPY_AND_ASSIGN(TestServer); | 120 DISALLOW_COPY_AND_ASSIGN(TestServer); |
| 124 }; | 121 }; |
| 125 | 122 |
| 126 } // namespace net | 123 } // namespace net |
| 127 | 124 |
| 128 #endif // NET_TEST_TEST_SERVER_H_ | 125 #endif // NET_TEST_TEST_SERVER_H_ |
| OLD | NEW |