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

Side by Side Diff: net/http/http_stream_factory_impl_request_unittest.cc

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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_stream_factory_impl_job.cc ('k') | net/http/http_stream_factory_impl_unittest.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/http/http_stream_factory_impl_request.h" 5 #include "net/http/http_stream_factory_impl_request.h"
6 6
7 #include "net/http/http_stream_factory_impl_job.h" 7 #include "net/http/http_stream_factory_impl_job.h"
8 #include "net/proxy/proxy_info.h" 8 #include "net/proxy/proxy_info.h"
9 #include "net/proxy/proxy_service.h" 9 #include "net/proxy/proxy_service.h"
10 #include "net/spdy/spdy_test_util_common.h" 10 #include "net/spdy/spdy_test_util_common.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 class HttpStreamFactoryImplRequestTest 15 class HttpStreamFactoryImplRequestTest
16 : public ::testing::Test, 16 : public ::testing::Test,
17 public ::testing::WithParamInterface<NextProto> {}; 17 public ::testing::WithParamInterface<NextProto> {};
18 18
19 INSTANTIATE_TEST_CASE_P( 19 INSTANTIATE_TEST_CASE_P(
20 NextProto, 20 NextProto,
21 HttpStreamFactoryImplRequestTest, 21 HttpStreamFactoryImplRequestTest,
22 testing::Values(kProtoDeprecatedSPDY2, 22 testing::Values(kProtoSPDY31, kProtoSPDY4_14, kProtoSPDY4_15));
23 kProtoSPDY3, kProtoSPDY31, kProtoSPDY4_14, kProtoSPDY4_15));
24 23
25 namespace { 24 namespace {
26 25
27 class DoNothingRequestDelegate : public HttpStreamRequest::Delegate { 26 class DoNothingRequestDelegate : public HttpStreamRequest::Delegate {
28 public: 27 public:
29 DoNothingRequestDelegate() {} 28 DoNothingRequestDelegate() {}
30 29
31 ~DoNothingRequestDelegate() override {} 30 ~DoNothingRequestDelegate() override {}
32 31
33 // HttpStreamRequest::Delegate 32 // HttpStreamRequest::Delegate
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 EXPECT_EQ(MEDIUM, job->priority()); 84 EXPECT_EQ(MEDIUM, job->priority());
86 85
87 // Make |job| the bound job. 86 // Make |job| the bound job.
88 request.OnStreamFailed(job, ERR_FAILED, SSLConfig()); 87 request.OnStreamFailed(job, ERR_FAILED, SSLConfig());
89 88
90 request.SetPriority(IDLE); 89 request.SetPriority(IDLE);
91 EXPECT_EQ(IDLE, job->priority()); 90 EXPECT_EQ(IDLE, job->priority());
92 } 91 }
93 92
94 } // namespace net 93 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | net/http/http_stream_factory_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698