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

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

Issue 2053133002: Remove MessageLoop::current()->RunUntilIdle() in net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/spdy/spdy_session_pool_unittest.cc ('k') | net/ssl/channel_id_service_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/spdy/spdy_stream.h" 5 #include "net/spdy/spdy_stream.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <cstddef> 9 #include <cstddef>
10 #include <limits> 10 #include <limits>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 ~SpdyStreamTest() { 78 ~SpdyStreamTest() {
79 } 79 }
80 80
81 base::WeakPtr<SpdySession> CreateDefaultSpdySession() { 81 base::WeakPtr<SpdySession> CreateDefaultSpdySession() {
82 SpdySessionKey key(HostPortPair("www.example.org", 80), 82 SpdySessionKey key(HostPortPair("www.example.org", 80),
83 ProxyServer::Direct(), PRIVACY_MODE_DISABLED); 83 ProxyServer::Direct(), PRIVACY_MODE_DISABLED);
84 return CreateInsecureSpdySession(session_.get(), key, BoundNetLog()); 84 return CreateInsecureSpdySession(session_.get(), key, BoundNetLog());
85 } 85 }
86 86
87 void TearDown() override { base::MessageLoop::current()->RunUntilIdle(); } 87 void TearDown() override { base::RunLoop().RunUntilIdle(); }
88 88
89 NextProto GetProtocol() const { 89 NextProto GetProtocol() const {
90 return GetParam() == kTestCaseSPDY31 ? kProtoSPDY31 : kProtoHTTP2; 90 return GetParam() == kTestCaseSPDY31 ? kProtoSPDY31 : kProtoHTTP2;
91 } 91 }
92 92
93 bool GetDependenciesFromPriority() const { 93 bool GetDependenciesFromPriority() const {
94 return GetParam() == kTestCaseHTTP2PriorityDependencies; 94 return GetParam() == kTestCaseHTTP2PriorityDependencies;
95 } 95 }
96 96
97 void RunResumeAfterUnstallRequestResponseTest( 97 void RunResumeAfterUnstallRequestResponseTest(
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 EXPECT_EQ(response_len, stream->raw_received_bytes()); 1148 EXPECT_EQ(response_len, stream->raw_received_bytes());
1149 1149
1150 // FIN 1150 // FIN
1151 data.Resume(); 1151 data.Resume();
1152 EXPECT_EQ(ERR_CONNECTION_CLOSED, delegate.WaitForClose()); 1152 EXPECT_EQ(ERR_CONNECTION_CLOSED, delegate.WaitForClose());
1153 } 1153 }
1154 1154
1155 } // namespace test 1155 } // namespace test
1156 1156
1157 } // namespace net 1157 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_pool_unittest.cc ('k') | net/ssl/channel_id_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698