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

Side by Side Diff: net/spdy/spdy_network_transaction_unittest.cc

Issue 1866483002: Add a new priority level, THROTTLED, below IDLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync'd to p390110 Created 4 years, 7 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
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 <cmath> 5 #include <cmath>
6 #include <memory> 6 #include <memory>
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 break; 778 break;
779 case LOW: 779 case LOW:
780 EXPECT_EQ(2, spdy_prio); 780 EXPECT_EQ(2, spdy_prio);
781 break; 781 break;
782 case LOWEST: 782 case LOWEST:
783 EXPECT_EQ(3, spdy_prio); 783 EXPECT_EQ(3, spdy_prio);
784 break; 784 break;
785 case IDLE: 785 case IDLE:
786 EXPECT_EQ(4, spdy_prio); 786 EXPECT_EQ(4, spdy_prio);
787 break; 787 break;
788 case THROTTLED:
789 EXPECT_EQ(5, spdy_prio);
790 break;
788 default: 791 default:
789 FAIL(); 792 FAIL();
790 } 793 }
791 794
792 std::unique_ptr<SpdySerializedFrame> resp( 795 std::unique_ptr<SpdySerializedFrame> resp(
793 spdy_test_util.ConstructSpdyGetSynReply(nullptr, 0, 1)); 796 spdy_test_util.ConstructSpdyGetSynReply(nullptr, 0, 1));
794 std::unique_ptr<SpdySerializedFrame> body( 797 std::unique_ptr<SpdySerializedFrame> body(
795 spdy_test_util.ConstructSpdyBodyFrame(1, true)); 798 spdy_test_util.ConstructSpdyBodyFrame(1, true));
796 MockRead reads[] = { 799 MockRead reads[] = {
797 CreateMockRead(*resp, 1), 800 CreateMockRead(*resp, 1),
(...skipping 6459 matching lines...) Expand 10 before | Expand all | Expand 10 after
7257 TEST_P(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) { 7260 TEST_P(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) {
7258 std::unique_ptr<SSLSocketDataProvider> ssl_provider( 7261 std::unique_ptr<SSLSocketDataProvider> ssl_provider(
7259 new SSLSocketDataProvider(ASYNC, OK)); 7262 new SSLSocketDataProvider(ASYNC, OK));
7260 // Set to TLS_RSA_WITH_NULL_MD5 7263 // Set to TLS_RSA_WITH_NULL_MD5
7261 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status); 7264 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status);
7262 7265
7263 RunTLSUsageCheckTest(std::move(ssl_provider)); 7266 RunTLSUsageCheckTest(std::move(ssl_provider));
7264 } 7267 }
7265 7268
7266 } // namespace net 7269 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698