| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/at_exit.h" | 5 #include "base/at_exit.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/singleton.h" | 8 #include "base/singleton.h" |
| 9 #include "base/stats_counters.h" | 9 #include "base/stats_counters.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "net/base/client_socket_factory.h" | |
| 12 #include "net/base/completion_callback.h" | 11 #include "net/base/completion_callback.h" |
| 13 #include "net/base/host_resolver.h" | 12 #include "net/base/host_resolver.h" |
| 14 #include "net/base/io_buffer.h" | 13 #include "net/base/io_buffer.h" |
| 15 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
| 16 #include "net/http/http_cache.h" | 15 #include "net/http/http_cache.h" |
| 17 #include "net/http/http_network_layer.h" | 16 #include "net/http/http_network_layer.h" |
| 18 #include "net/http/http_request_info.h" | 17 #include "net/http/http_request_info.h" |
| 19 #include "net/http/http_transaction.h" | 18 #include "net/http/http_transaction.h" |
| 20 #include "net/proxy/proxy_service.h" | 19 #include "net/proxy/proxy_service.h" |
| 20 #include "net/socket/client_socket_factory.h" |
| 21 | 21 |
| 22 void usage(const char* program_name) { | 22 void usage(const char* program_name) { |
| 23 printf("usage: %s --url=<url> [--n=<clients>] [--stats] [--use_cache]\n", | 23 printf("usage: %s --url=<url> [--n=<clients>] [--stats] [--use_cache]\n", |
| 24 program_name); | 24 program_name); |
| 25 exit(1); | 25 exit(1); |
| 26 } | 26 } |
| 27 | 27 |
| 28 // Test Driver | 28 // Test Driver |
| 29 class Driver { | 29 class Driver { |
| 30 public: | 30 public: |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 std::string name(table.GetRowName(index)); | 181 std::string name(table.GetRowName(index)); |
| 182 if (name.length() > 0) { | 182 if (name.length() > 0) { |
| 183 int value = table.GetRowValue(index); | 183 int value = table.GetRowValue(index); |
| 184 printf("%s:\t%d\n", name.c_str(), value); | 184 printf("%s:\t%d\n", name.c_str(), value); |
| 185 } | 185 } |
| 186 } | 186 } |
| 187 printf("</stats>\n"); | 187 printf("</stats>\n"); |
| 188 } | 188 } |
| 189 return 0; | 189 return 0; |
| 190 } | 190 } |
| OLD | NEW |