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

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

Issue 6161007: New protocol and testserver for the Chrome-DMServer protocol (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: serialized list protos -> repeated fields Created 9 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 bool LaunchPython(const FilePath& testserver_path) WARN_UNUSED_RESULT; 143 bool LaunchPython(const FilePath& testserver_path) WARN_UNUSED_RESULT;
144 144
145 // Waits for the server to start. Returns true on success. 145 // Waits for the server to start. Returns true on success.
146 bool WaitToStart() WARN_UNUSED_RESULT; 146 bool WaitToStart() WARN_UNUSED_RESULT;
147 147
148 // Parses the server data read from the test server. Returns true 148 // Parses the server data read from the test server. Returns true
149 // on success. 149 // on success.
150 bool ParseServerData(const std::string& server_data) WARN_UNUSED_RESULT; 150 bool ParseServerData(const std::string& server_data) WARN_UNUSED_RESULT;
151 151
152 // Returns path to the root certificate. 152 // Returns path to the root certificate.
153 FilePath GetRootCertificatePath(); 153 FilePath GetRootCertificatePath() const;
154 154
155 // Load the test root cert, if it hasn't been loaded yet. 155 // Load the test root cert, if it hasn't been loaded yet.
156 bool LoadTestRootCert() WARN_UNUSED_RESULT; 156 bool LoadTestRootCert() WARN_UNUSED_RESULT;
157 157
158 // Add the command line arguments for the Python test server to 158 // Add the command line arguments for the Python test server to
159 // |command_line|. Return true on success. 159 // |command_line|. Return true on success.
160 bool AddCommandLineArguments(CommandLine* command_line) const; 160 bool AddCommandLineArguments(CommandLine* command_line) const;
161 161
162 // Document root of the test server. 162 // Document root of the test server.
163 FilePath document_root_; 163 FilePath document_root_;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 // Has the server been started? 201 // Has the server been started?
202 bool started_; 202 bool started_;
203 203
204 DISALLOW_COPY_AND_ASSIGN(TestServer); 204 DISALLOW_COPY_AND_ASSIGN(TestServer);
205 }; 205 };
206 206
207 } // namespace net 207 } // namespace net
208 208
209 #endif // NET_TEST_TEST_SERVER_H_ 209 #endif // NET_TEST_TEST_SERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698