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

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

Issue 12210088: Make the TestServer use an absolute document root path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: testserver uses absolute docroot path Created 7 years, 10 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
OLDNEW
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 NET_TEST_BASE_TEST_SERVER_H_ 5 #ifndef NET_TEST_BASE_TEST_SERVER_H_
6 #define NET_TEST_BASE_TEST_SERVER_H_ 6 #define NET_TEST_BASE_TEST_SERVER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 GURL GetURL(const std::string& path) const; 166 GURL GetURL(const std::string& path) const;
167 167
168 GURL GetURLWithUser(const std::string& path, 168 GURL GetURLWithUser(const std::string& path,
169 const std::string& user) const; 169 const std::string& user) const;
170 170
171 GURL GetURLWithUserAndPassword(const std::string& path, 171 GURL GetURLWithUserAndPassword(const std::string& path,
172 const std::string& user, 172 const std::string& user,
173 const std::string& password) const; 173 const std::string& password) const;
174 174
175 static base::FilePath GetSourcePath();
Paweł Hajdan Jr. 2013/02/11 15:36:53 nit: These need comments.
176 static base::FilePath GetTestDataPath();
177 static base::FilePath GetSourceRelativePath(const base::FilePath& relative);
178
175 static bool GetFilePathWithReplacements( 179 static bool GetFilePathWithReplacements(
176 const std::string& original_path, 180 const std::string& original_path,
177 const std::vector<StringPair>& text_to_replace, 181 const std::vector<StringPair>& text_to_replace,
178 std::string* replacement_path); 182 std::string* replacement_path);
179 183
180 static bool UsingSSL(Type type) { 184 static bool UsingSSL(Type type) {
181 return type == BaseTestServer::TYPE_HTTPS || 185 return type == BaseTestServer::TYPE_HTTPS ||
182 type == BaseTestServer::TYPE_WSS; 186 type == BaseTestServer::TYPE_WSS;
183 } 187 }
184 188
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 254
251 scoped_ptr<ScopedPortException> allowed_port_; 255 scoped_ptr<ScopedPortException> allowed_port_;
252 256
253 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); 257 DISALLOW_COPY_AND_ASSIGN(BaseTestServer);
254 }; 258 };
255 259
256 } // namespace net 260 } // namespace net
257 261
258 #endif // NET_TEST_BASE_TEST_SERVER_H_ 262 #endif // NET_TEST_BASE_TEST_SERVER_H_
259 263
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698