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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 "Alternate-Protocol: 80:quic\r\n\r\n"; | 59 "Alternate-Protocol: 80:quic\r\n\r\n"; |
60 static const char kQuicAlternateProtocol50pctHttpHeader[] = | 60 static const char kQuicAlternateProtocol50pctHttpHeader[] = |
61 "Alternate-Protocol: 80:quic,p=.5\r\n\r\n"; | 61 "Alternate-Protocol: 80:quic,p=.5\r\n\r\n"; |
62 static const char kQuicAlternateProtocolDifferentPortHttpHeader[] = | 62 static const char kQuicAlternateProtocolDifferentPortHttpHeader[] = |
63 "Alternate-Protocol: 137:quic\r\n\r\n"; | 63 "Alternate-Protocol: 137:quic\r\n\r\n"; |
64 static const char kQuicAlternateProtocolHttpsHeader[] = | 64 static const char kQuicAlternateProtocolHttpsHeader[] = |
65 "Alternate-Protocol: 443:quic\r\n\r\n"; | 65 "Alternate-Protocol: 443:quic\r\n\r\n"; |
66 static const char kQuicAlternativeServiceHttpHeader[] = | 66 static const char kQuicAlternativeServiceHttpHeader[] = |
67 "Alt-Svc: quic=\":80\"\r\n\r\n"; | 67 "Alt-Svc: quic=\":80\"\r\n\r\n"; |
68 static const char kQuicAlternativeService50pctHttpHeader[] = | 68 static const char kQuicAlternativeService50pctHttpHeader[] = |
69 "Alt-Svc: quic=\":80\";p=.5\r\n\r\n"; | 69 "Alt-Svc: quic=\":80\";p=\".5\"\r\n\r\n"; |
70 static const char kQuicAlternativeServiceDifferentPortHttpHeader[] = | 70 static const char kQuicAlternativeServiceDifferentPortHttpHeader[] = |
71 "Alt-Svc: quic=\":137\"\r\n\r\n"; | 71 "Alt-Svc: quic=\":137\"\r\n\r\n"; |
72 static const char kQuicAlternativeServiceHttpsHeader[] = | 72 static const char kQuicAlternativeServiceHttpsHeader[] = |
73 "Alt-Svc: quic=\":443\"\r\n\r\n"; | 73 "Alt-Svc: quic=\":443\"\r\n\r\n"; |
74 | 74 |
75 const char kDefaultServerHostName[] = "www.google.com"; | 75 const char kDefaultServerHostName[] = "www.google.com"; |
76 | 76 |
77 } // namespace | 77 } // namespace |
78 | 78 |
79 // Helper class to encapsulate MockReads and MockWrites for QUIC. | 79 // Helper class to encapsulate MockReads and MockWrites for QUIC. |
(...skipping 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1827 AddHangingNonAlternateProtocolSocketData(); | 1827 AddHangingNonAlternateProtocolSocketData(); |
1828 CreateSessionWithNextProtos(); | 1828 CreateSessionWithNextProtos(); |
1829 AddQuicAlternateProtocolMapping(MockCryptoClientStream::CONFIRM_HANDSHAKE); | 1829 AddQuicAlternateProtocolMapping(MockCryptoClientStream::CONFIRM_HANDSHAKE); |
1830 SendRequestAndExpectQuicResponse("hello!"); | 1830 SendRequestAndExpectQuicResponse("hello!"); |
1831 EXPECT_TRUE( | 1831 EXPECT_TRUE( |
1832 test_network_quality_estimator_->IsRTTAvailableNotificationReceived()); | 1832 test_network_quality_estimator_->IsRTTAvailableNotificationReceived()); |
1833 } | 1833 } |
1834 | 1834 |
1835 } // namespace test | 1835 } // namespace test |
1836 } // namespace net | 1836 } // namespace net |
OLD | NEW |