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

Side by Side Diff: net/test/spawned_test_server/base_test_server.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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
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 #include "net/test/spawned_test_server/base_test_server.h" 5 #include "net/test/spawned_test_server/base_test_server.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/base64.h" 13 #include "base/base64.h"
14 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
15 #include "base/json/json_reader.h" 15 #include "base/json/json_reader.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/path_service.h" 17 #include "base/path_service.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "net/base/address_list.h" 19 #include "net/base/address_list.h"
20 #include "net/base/host_port_pair.h" 20 #include "net/base/host_port_pair.h"
21 #include "net/base/net_errors.h" 21 #include "net/base/net_errors.h"
22 #include "net/base/port_util.h" 22 #include "net/base/port_util.h"
23 #include "net/base/test_completion_callback.h" 23 #include "net/base/test_completion_callback.h"
24 #include "net/cert/test_root_certs.h" 24 #include "net/cert/test_root_certs.h"
25 #include "net/cert/x509_certificate.h" 25 #include "net/cert/x509_certificate.h"
26 #include "net/dns/host_resolver.h" 26 #include "net/dns/host_resolver.h"
27 #include "net/log/net_log.h" 27 #include "net/log/net_log_with_source.h"
28 #include "url/gurl.h" 28 #include "url/gurl.h"
29 29
30 namespace net { 30 namespace net {
31 31
32 namespace { 32 namespace {
33 33
34 std::string GetHostname(BaseTestServer::Type type, 34 std::string GetHostname(BaseTestServer::Type type,
35 const BaseTestServer::SSLOptions& options) { 35 const BaseTestServer::SSLOptions& options) {
36 if (BaseTestServer::UsingSSL(type)) { 36 if (BaseTestServer::UsingSSL(type)) {
37 if (options.server_certificate == 37 if (options.server_certificate ==
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 673
674 return GenerateAdditionalArguments(arguments); 674 return GenerateAdditionalArguments(arguments);
675 } 675 }
676 676
677 bool BaseTestServer::GenerateAdditionalArguments( 677 bool BaseTestServer::GenerateAdditionalArguments(
678 base::DictionaryValue* arguments) const { 678 base::DictionaryValue* arguments) const {
679 return true; 679 return true;
680 } 680 }
681 681
682 } // namespace net 682 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698