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 <stddef.h> | 5 #include <stddef.h> |
6 #include <string> | 6 #include <string> |
7 #include <sys/epoll.h> | 7 #include <sys/epoll.h> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 using net::tools::test::QuicServerPeer; | 63 using net::tools::test::QuicServerPeer; |
64 using std::ostream; | 64 using std::ostream; |
65 using std::string; | 65 using std::string; |
66 using std::vector; | 66 using std::vector; |
67 | 67 |
68 namespace net { | 68 namespace net { |
69 namespace tools { | 69 namespace tools { |
70 namespace test { | 70 namespace test { |
71 namespace { | 71 namespace { |
72 | 72 |
73 const char* kFooResponseBody = "Artichoke hearts make me happy."; | 73 const char kFooResponseBody[] = "Artichoke hearts make me happy."; |
74 const char* kBarResponseBody = "Palm hearts are pretty delicious, also."; | 74 const char kBarResponseBody[] = "Palm hearts are pretty delicious, also."; |
75 | 75 |
76 // Run all tests with the cross products of all versions. | 76 // Run all tests with the cross products of all versions. |
77 struct TestParams { | 77 struct TestParams { |
78 TestParams(const QuicVersionVector& client_supported_versions, | 78 TestParams(const QuicVersionVector& client_supported_versions, |
79 const QuicVersionVector& server_supported_versions, | 79 const QuicVersionVector& server_supported_versions, |
80 QuicVersion negotiated_version, | 80 QuicVersion negotiated_version, |
81 bool use_pacing, | 81 bool use_pacing, |
82 bool use_fec, | 82 bool use_fec, |
83 QuicTag congestion_control_tag) | 83 QuicTag congestion_control_tag) |
84 : client_supported_versions(client_supported_versions), | 84 : client_supported_versions(client_supported_versions), |
(...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 // Waits for up to 50 ms. | 1449 // Waits for up to 50 ms. |
1450 client_->client()->WaitForEvents(); | 1450 client_->client()->WaitForEvents(); |
1451 } | 1451 } |
1452 server_thread_->Resume(); | 1452 server_thread_->Resume(); |
1453 } | 1453 } |
1454 | 1454 |
1455 } // namespace | 1455 } // namespace |
1456 } // namespace test | 1456 } // namespace test |
1457 } // namespace tools | 1457 } // namespace tools |
1458 } // namespace net | 1458 } // namespace net |
OLD | NEW |