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

Unified Diff: chrome/test/pyautolib/pyautolib.i

Issue 10878003: Refactoring for merging WebSocket test server to net::TestServer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reflect Ryan's review Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/pyautolib/pyautolib.i
diff --git a/chrome/test/pyautolib/pyautolib.i b/chrome/test/pyautolib/pyautolib.i
index 8826a2b3cf321adf0aac92046688332a98da1832..575700a3129df26b978054577396d7819b859514 100644
--- a/chrome/test/pyautolib/pyautolib.i
+++ b/chrome/test/pyautolib/pyautolib.i
@@ -209,8 +209,9 @@ class TestServer {
// Initialize a TestServer listening on the specified host (IP or hostname).
TestServer(Type type, const std::string& host, const FilePath& document_root);
- // Initialize a HTTPS TestServer with a specific set of HTTPSOptions.
- TestServer(const HTTPSOptions& https_options,
+ // Initialize a TestServer with a specific set of SSLOptions.
+ TestServer(Type type,
+ const SSLOptions& ssl_options,
const FilePath& document_root);
%feature("docstring", "Start TestServer over an ephemeral port") Start;
@@ -246,23 +247,23 @@ class TestServer {
};
}
-// HTTPSOptions
+// SSLOptions
%feature("docstring",
- "HTTPSOptions. Sets one of three types of a cert")
- HTTPSOptions;
-struct HTTPSOptions {
+ "SSLOptions. Sets one of three types of a cert")
+ SSLOptions;
+struct SSLOptions {
enum ServerCertificate {
CERT_OK,
CERT_MISMATCHED_NAME,
CERT_EXPIRED,
};
- // Initialize a new HTTPSOptions that will use the specified certificate.
- explicit HTTPSOptions(ServerCertificate cert);
+ // Initialize a new SSLOptions that will use the specified certificate.
+ explicit SSLOptions(ServerCertificate cert);
};
%{
-typedef net::TestServer::HTTPSOptions HTTPSOptions;
+typedef net::TestServer::SSLOptions SSLOptions;
%}
%pointer_class(int, int_ptr);

Powered by Google App Engine
This is Rietveld 408576698