OLD | NEW |
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 <cstddef> | 5 #include <cstddef> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 session_deps_(GetParam()), | 50 session_deps_(GetParam()), |
51 offset_(0) {} | 51 offset_(0) {} |
52 | 52 |
53 base::WeakPtr<SpdySession> CreateDefaultSpdySession() { | 53 base::WeakPtr<SpdySession> CreateDefaultSpdySession() { |
54 SpdySessionKey key(HostPortPair("www.google.com", 80), | 54 SpdySessionKey key(HostPortPair("www.google.com", 80), |
55 ProxyServer::Direct(), | 55 ProxyServer::Direct(), |
56 PRIVACY_MODE_DISABLED); | 56 PRIVACY_MODE_DISABLED); |
57 return CreateInsecureSpdySession(session_, key, BoundNetLog()); | 57 return CreateInsecureSpdySession(session_, key, BoundNetLog()); |
58 } | 58 } |
59 | 59 |
60 virtual void TearDown() { | 60 void TearDown() override { base::MessageLoop::current()->RunUntilIdle(); } |
61 base::MessageLoop::current()->RunUntilIdle(); | |
62 } | |
63 | 61 |
64 void RunResumeAfterUnstallRequestResponseTest( | 62 void RunResumeAfterUnstallRequestResponseTest( |
65 const UnstallFunction& unstall_function); | 63 const UnstallFunction& unstall_function); |
66 | 64 |
67 void RunResumeAfterUnstallBidirectionalTest( | 65 void RunResumeAfterUnstallBidirectionalTest( |
68 const UnstallFunction& unstall_function); | 66 const UnstallFunction& unstall_function); |
69 | 67 |
70 // Add{Read,Write}() populates lists that are eventually passed to a | 68 // Add{Read,Write}() populates lists that are eventually passed to a |
71 // SocketData class. |frame| must live for the whole test. | 69 // SocketData class. |frame| must live for the whole test. |
72 | 70 |
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1052 data.RunFor(1); // FIN | 1050 data.RunFor(1); // FIN |
1053 | 1051 |
1054 EXPECT_EQ(ERR_CONNECTION_CLOSED, delegate.WaitForClose()); | 1052 EXPECT_EQ(ERR_CONNECTION_CLOSED, delegate.WaitForClose()); |
1055 } | 1053 } |
1056 | 1054 |
1057 } // namespace | 1055 } // namespace |
1058 | 1056 |
1059 } // namespace test | 1057 } // namespace test |
1060 | 1058 |
1061 } // namespace net | 1059 } // namespace net |
OLD | NEW |