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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 UnstallFunction; | 46 UnstallFunction; |
47 | 47 |
48 SpdyStreamTest() | 48 SpdyStreamTest() |
49 : spdy_util_(GetParam()), | 49 : spdy_util_(GetParam()), |
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 kPrivacyModeDisabled); | 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 virtual void TearDown() { |
61 base::MessageLoop::current()->RunUntilIdle(); | 61 base::MessageLoop::current()->RunUntilIdle(); |
62 } | 62 } |
63 | 63 |
64 void RunResumeAfterUnstallRequestResponseTest( | 64 void RunResumeAfterUnstallRequestResponseTest( |
65 const UnstallFunction& unstall_function); | 65 const UnstallFunction& unstall_function); |
66 | 66 |
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 data.RunFor(1); // FIN | 1055 data.RunFor(1); // FIN |
1056 | 1056 |
1057 EXPECT_EQ(ERR_CONNECTION_CLOSED, delegate.WaitForClose()); | 1057 EXPECT_EQ(ERR_CONNECTION_CLOSED, delegate.WaitForClose()); |
1058 } | 1058 } |
1059 | 1059 |
1060 } // namespace | 1060 } // namespace |
1061 | 1061 |
1062 } // namespace test | 1062 } // namespace test |
1063 | 1063 |
1064 } // namespace net | 1064 } // namespace net |
OLD | NEW |