Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: net/quic/quic_network_transaction_unittest.cc

Issue 1407643005: Add quotation marks around probability value in Alternative Services. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/spdy/spdy_alt_svc_wire_format.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/spdy/spdy_alt_svc_wire_format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698