Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: net/test/test_server.h

Issue 3366026: Add python_utils to append to python path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/test/python_utils_unittest.cc ('k') | net/test/test_server.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/test/python_utils_unittest.cc ('k') | net/test/test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698