OLD | NEW |
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 #include "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/metrics/stats_counters.h" | 13 #include "base/metrics/stats_counters.h" |
14 #include "base/string_number_conversions.h" | 14 #include "base/string_number_conversions.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "net/base/cert_verifier.h" | 16 #include "net/base/cert_verifier.h" |
17 #include "net/base/completion_callback.h" | 17 #include "net/base/completion_callback.h" |
18 #include "net/base/host_resolver.h" | 18 #include "net/base/host_resolver.h" |
19 #include "net/base/io_buffer.h" | 19 #include "net/base/io_buffer.h" |
20 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
21 #include "net/base/ssl_config_service_defaults.h" | |
22 #include "net/http/http_auth_handler_factory.h" | 21 #include "net/http/http_auth_handler_factory.h" |
23 #include "net/http/http_cache.h" | 22 #include "net/http/http_cache.h" |
24 #include "net/http/http_network_layer.h" | 23 #include "net/http/http_network_layer.h" |
25 #include "net/http/http_network_session.h" | 24 #include "net/http/http_network_session.h" |
26 #include "net/http/http_request_info.h" | 25 #include "net/http/http_request_info.h" |
27 #include "net/http/http_server_properties_impl.h" | 26 #include "net/http/http_server_properties_impl.h" |
28 #include "net/http/http_transaction.h" | 27 #include "net/http/http_transaction.h" |
29 #include "net/proxy/proxy_service.h" | 28 #include "net/proxy/proxy_service.h" |
| 29 #include "net/ssl/ssl_config_service_defaults.h" |
30 | 30 |
31 void usage(const char* program_name) { | 31 void usage(const char* program_name) { |
32 printf("usage: %s --url=<url> [--n=<clients>] [--stats] [--use_cache]\n", | 32 printf("usage: %s --url=<url> [--n=<clients>] [--stats] [--use_cache]\n", |
33 program_name); | 33 program_name); |
34 exit(1); | 34 exit(1); |
35 } | 35 } |
36 | 36 |
37 // Test Driver | 37 // Test Driver |
38 class Driver { | 38 class Driver { |
39 public: | 39 public: |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 std::string name(table.GetRowName(index)); | 213 std::string name(table.GetRowName(index)); |
214 if (name.length() > 0) { | 214 if (name.length() > 0) { |
215 int value = table.GetRowValue(index); | 215 int value = table.GetRowValue(index); |
216 printf("%s:\t%d\n", name.c_str(), value); | 216 printf("%s:\t%d\n", name.c_str(), value); |
217 } | 217 } |
218 } | 218 } |
219 printf("</stats>\n"); | 219 printf("</stats>\n"); |
220 } | 220 } |
221 return 0; | 221 return 0; |
222 } | 222 } |
OLD | NEW |