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 #ifndef CHROME_BROWSER_NET_NETWORK_STATS_H_ | 5 #ifndef CHROME_BROWSER_NET_NETWORK_STATS_H_ |
6 #define CHROME_BROWSER_NET_NETWORK_STATS_H_ | 6 #define CHROME_BROWSER_NET_NETWORK_STATS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 SOME_PACKETS_NOT_VERIFIED, // Some packets have failed verification. | 76 SOME_PACKETS_NOT_VERIFIED, // Some packets have failed verification. |
77 STATUS_MAX, // Bounding value. | 77 STATUS_MAX, // Bounding value. |
78 }; | 78 }; |
79 | 79 |
80 // |ProtocolValue| enumerates different protocols that are being tested. | 80 // |ProtocolValue| enumerates different protocols that are being tested. |
81 enum ProtocolValue { | 81 enum ProtocolValue { |
82 PROTOCOL_UDP, | 82 PROTOCOL_UDP, |
83 }; | 83 }; |
84 | 84 |
85 // |HistogramPortSelector| enumerates list of ports that are used for network | 85 // |HistogramPortSelector| enumerates list of ports that are used for network |
86 // connectivity tests (for UDP). Currently we are testing port 6121 only. | 86 // connectivity tests (for UDP). Currently we are testing port 443 only. |
87 enum HistogramPortSelector { | 87 enum HistogramPortSelector { |
88 PORT_6121 = 0, // SPDY | 88 PORT_443 = 0, // HTTPS |
89 HISTOGRAM_PORT_MAX, | 89 HISTOGRAM_PORT_MAX, |
90 }; | 90 }; |
91 | 91 |
92 // |TestType| specifies the |current_test_| test we are currently running or | 92 // |TestType| specifies the |current_test_| test we are currently running or |
93 // the |next_test_| test we need to run next. | 93 // the |next_test_| test we need to run next. |
94 enum TestType { | 94 enum TestType { |
95 START_PACKET_TEST, // Initial packet loss test. | 95 START_PACKET_TEST, // Initial packet loss test. |
96 NON_PACED_PACKET_TEST, // Packet loss test with no pacing. | 96 NON_PACED_PACKET_TEST, // Packet loss test with no pacing. |
97 PACED_PACKET_TEST, // Packet loss test with pacing. | 97 PACED_PACKET_TEST, // Packet loss test with pacing. |
98 TEST_TYPE_MAX, | 98 TEST_TYPE_MAX, |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 // "21 packets bursty test with 500 bytes packet", and "21 packets bursty test | 419 // "21 packets bursty test with 500 bytes packet", and "21 packets bursty test |
420 // with 100 bytes packet" tests. | 420 // with 100 bytes packet" tests. |
421 void StartNetworkStatsTest(net::HostResolver* host_resolver, | 421 void StartNetworkStatsTest(net::HostResolver* host_resolver, |
422 const net::HostPortPair& server_address, | 422 const net::HostPortPair& server_address, |
423 NetworkStats::HistogramPortSelector histogram_port, | 423 NetworkStats::HistogramPortSelector histogram_port, |
424 bool has_proxy_server); | 424 bool has_proxy_server); |
425 | 425 |
426 } // namespace chrome_browser_net | 426 } // namespace chrome_browser_net |
427 | 427 |
428 #endif // CHROME_BROWSER_NET_NETWORK_STATS_H_ | 428 #endif // CHROME_BROWSER_NET_NETWORK_STATS_H_ |
OLD | NEW |