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

Unified Diff: net/test/test_server.h

Issue 4664009: All SSL UI tests work with ephemeral ports. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: #include <utility> Created 10 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/ssl/top_frame.html ('k') | net/test/test_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/test_server.h
diff --git a/net/test/test_server.h b/net/test/test_server.h
index 8affc12b91ca32d138ea4f76327419aa77bee982..b92c91d854065b9fd87488e04d67548a39c4eeaa 100644
--- a/net/test/test_server.h
+++ b/net/test/test_server.h
@@ -7,6 +7,7 @@
#pragma once
#include <string>
+#include <utility>
#include <vector>
#include "build/build_config.h"
@@ -117,14 +118,20 @@ class TestServer {
std::string GetScheme() const;
bool GetAddressList(AddressList* address_list) const WARN_UNUSED_RESULT;
- GURL GetURL(const std::string& path);
+ GURL GetURL(const std::string& path) const;
GURL GetURLWithUser(const std::string& path,
- const std::string& user);
+ const std::string& user) const;
GURL GetURLWithUserAndPassword(const std::string& path,
const std::string& user,
- const std::string& password);
+ const std::string& password) const;
+
+ typedef std::pair<std::string, std::string> StringPair;
+ static bool GetFilePathWithReplacements(
+ const std::string& original_path,
+ const std::vector<StringPair>& text_to_replace,
+ std::string* replacement_path);
private:
void Init(const FilePath& document_root);
« no previous file with comments | « chrome/test/data/ssl/top_frame.html ('k') | net/test/test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698