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

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

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 "net/spdy/spdy_session.h" 5 #include "net/spdy/spdy_session.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 1790 matching lines...) Expand 10 before | Expand all | Expand 10 after
1801 // Regression test of compression performance under the request fixture. 1801 // Regression test of compression performance under the request fixture.
1802 switch (spdy_util_.spdy_version()) { 1802 switch (spdy_util_.spdy_version()) {
1803 case SPDY3: 1803 case SPDY3:
1804 histogram_tester.ExpectBucketCount( 1804 histogram_tester.ExpectBucketCount(
1805 "Net.SpdySynStreamCompressionPercentage", 30, 1); 1805 "Net.SpdySynStreamCompressionPercentage", 30, 1);
1806 break; 1806 break;
1807 case SPDY4: 1807 case SPDY4:
1808 histogram_tester.ExpectBucketCount( 1808 histogram_tester.ExpectBucketCount(
1809 "Net.SpdySynStreamCompressionPercentage", 82, 1); 1809 "Net.SpdySynStreamCompressionPercentage", 82, 1);
1810 break; 1810 break;
1811 case SPDY5:
1812 histogram_tester.ExpectBucketCount(
1813 "Net.SpdySynStreamCompressionPercentage", 82, 1);
1814 break;
1815 default: 1811 default:
1816 NOTREACHED(); 1812 NOTREACHED();
1817 } 1813 }
1818 1814
1819 // Read and process EOF. 1815 // Read and process EOF.
1820 data.RunFor(1); 1816 data.RunFor(1);
1821 base::MessageLoop::current()->RunUntilIdle(); 1817 base::MessageLoop::current()->RunUntilIdle();
1822 EXPECT_TRUE(session == NULL); 1818 EXPECT_TRUE(session == NULL);
1823 } 1819 }
1824 1820
(...skipping 3306 matching lines...) Expand 10 before | Expand all | Expand 10 after
5131 ssl_info.cert = ImportCertFromFile(GetTestCertsDirectory(), 5127 ssl_info.cert = ImportCertFromFile(GetTestCertsDirectory(),
5132 "spdy_pooling.pem"); 5128 "spdy_pooling.pem");
5133 ssl_info.is_issued_by_known_root = true; 5129 ssl_info.is_issued_by_known_root = true;
5134 ssl_info.public_key_hashes.push_back(test::GetTestHashValue(primary_pin)); 5130 ssl_info.public_key_hashes.push_back(test::GetTestHashValue(primary_pin));
5135 5131
5136 EXPECT_TRUE(SpdySession::CanPool( 5132 EXPECT_TRUE(SpdySession::CanPool(
5137 &tss, ssl_info, "www.example.org", "mail.example.org")); 5133 &tss, ssl_info, "www.example.org", "mail.example.org"));
5138 } 5134 }
5139 5135
5140 } // namespace net 5136 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_session.h ('k') | net/spdy/spdy_test_utils.cc » ('j') | shell/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698