| OLD | NEW |
| 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_proxy_client_socket.h" | 5 #include "net/spdy/spdy_proxy_client_socket.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "net/base/address_list.h" | 10 #include "net/base/address_list.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 namespace net { | 59 namespace net { |
| 60 | 60 |
| 61 class SpdyProxyClientSocketSpdy3Test : public PlatformTest { | 61 class SpdyProxyClientSocketSpdy3Test : public PlatformTest { |
| 62 public: | 62 public: |
| 63 SpdyProxyClientSocketSpdy3Test(); | 63 SpdyProxyClientSocketSpdy3Test(); |
| 64 | 64 |
| 65 virtual void TearDown(); | 65 virtual void TearDown(); |
| 66 | 66 |
| 67 protected: | 67 protected: |
| 68 virtual void SetUp() { | 68 virtual void SetUp() { |
| 69 SpdySession::set_default_protocol(SSLClientSocket::kProtoSPDY3); | 69 SpdySession::set_default_protocol(kProtoSPDY3); |
| 70 } | 70 } |
| 71 | 71 |
| 72 void Initialize(MockRead* reads, size_t reads_count, MockWrite* writes, | 72 void Initialize(MockRead* reads, size_t reads_count, MockWrite* writes, |
| 73 size_t writes_count); | 73 size_t writes_count); |
| 74 SpdyFrame* ConstructConnectRequestFrame(); | 74 SpdyFrame* ConstructConnectRequestFrame(); |
| 75 SpdyFrame* ConstructConnectAuthRequestFrame(); | 75 SpdyFrame* ConstructConnectAuthRequestFrame(); |
| 76 SpdyFrame* ConstructConnectReplyFrame(); | 76 SpdyFrame* ConstructConnectReplyFrame(); |
| 77 SpdyFrame* ConstructConnectAuthReplyFrame(); | 77 SpdyFrame* ConstructConnectAuthReplyFrame(); |
| 78 SpdyFrame* ConstructConnectErrorReplyFrame(); | 78 SpdyFrame* ConstructConnectErrorReplyFrame(); |
| 79 SpdyFrame* ConstructBodyFrame(const char* data, int length); | 79 SpdyFrame* ConstructBodyFrame(const char* data, int length); |
| (...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1309 write_callback_.callback())); | 1309 write_callback_.callback())); |
| 1310 | 1310 |
| 1311 Run(2); | 1311 Run(2); |
| 1312 | 1312 |
| 1313 EXPECT_FALSE(sock_.get()); | 1313 EXPECT_FALSE(sock_.get()); |
| 1314 EXPECT_TRUE(read_callback.have_result()); | 1314 EXPECT_TRUE(read_callback.have_result()); |
| 1315 EXPECT_FALSE(write_callback_.have_result()); | 1315 EXPECT_FALSE(write_callback_.have_result()); |
| 1316 } | 1316 } |
| 1317 | 1317 |
| 1318 } // namespace net | 1318 } // namespace net |
| OLD | NEW |