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

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

Issue 10073033: Run safebrowsing_service_test through the net testserver code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 21 matching lines...) Expand all
32 typedef std::pair<std::string, std::string> StringPair; 32 typedef std::pair<std::string, std::string> StringPair;
33 33
34 enum Type { 34 enum Type {
35 TYPE_FTP, 35 TYPE_FTP,
36 TYPE_GDATA, 36 TYPE_GDATA,
37 TYPE_HTTP, 37 TYPE_HTTP,
38 TYPE_HTTPS, 38 TYPE_HTTPS,
39 TYPE_SYNC, 39 TYPE_SYNC,
40 TYPE_TCP_ECHO, 40 TYPE_TCP_ECHO,
41 TYPE_UDP_ECHO, 41 TYPE_UDP_ECHO,
42 TYPE_SAFEBROWSING,
Paweł Hajdan Jr. 2012/04/17 06:38:05 nit: Keep this sorted.
mattm 2012/04/18 00:20:00 Done.
42 }; 43 };
43 44
44 // Container for various options to control how the HTTPS server is 45 // Container for various options to control how the HTTPS server is
45 // initialized. 46 // initialized.
46 struct HTTPSOptions { 47 struct HTTPSOptions {
47 enum ServerCertificate { 48 enum ServerCertificate {
48 CERT_OK, 49 CERT_OK,
49 50
50 // CERT_AUTO causes the testserver to generate a test certificate issued 51 // CERT_AUTO causes the testserver to generate a test certificate issued
51 // by "Testing CA" (see net/data/ssl/certificates/ocsp-test-root.pem). 52 // by "Testing CA" (see net/data/ssl/certificates/ocsp-test-root.pem).
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 bool log_to_console_; 224 bool log_to_console_;
224 225
225 scoped_ptr<ScopedPortException> allowed_port_; 226 scoped_ptr<ScopedPortException> allowed_port_;
226 227
227 DISALLOW_COPY_AND_ASSIGN(BaseTestServer); 228 DISALLOW_COPY_AND_ASSIGN(BaseTestServer);
228 }; 229 };
229 230
230 } // namespace net 231 } // namespace net
231 232
232 #endif // NET_TEST_BASE_TEST_SERVER_H_ 233 #endif // NET_TEST_BASE_TEST_SERVER_H_
233
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698