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

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

Issue 9959033: Move NextProto enum to a new file net/socket/next_proto.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address wtc's comments Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_proxy_client_socket_spdy2_unittest.cc ('k') | net/spdy/spdy_session.h » ('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) 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
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
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
OLDNEW
« no previous file with comments | « net/spdy/spdy_proxy_client_socket_spdy2_unittest.cc ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698