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

Side by Side Diff: net/spdy/spdy_proxy_client_socket_spdy2_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
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 SpdyProxyClientSocketSpdy2Test : public PlatformTest { 61 class SpdyProxyClientSocketSpdy2Test : public PlatformTest {
62 public: 62 public:
63 SpdyProxyClientSocketSpdy2Test(); 63 SpdyProxyClientSocketSpdy2Test();
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::kProtoSPDY2); 69 SpdySession::set_default_protocol(kProtoSPDY2);
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 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 write_callback_.callback())); 1306 write_callback_.callback()));
1307 1307
1308 Run(2); 1308 Run(2);
1309 1309
1310 EXPECT_FALSE(sock_.get()); 1310 EXPECT_FALSE(sock_.get());
1311 EXPECT_TRUE(read_callback.have_result()); 1311 EXPECT_TRUE(read_callback.have_result());
1312 EXPECT_FALSE(write_callback_.have_result()); 1312 EXPECT_FALSE(write_callback_.have_result());
1313 } 1313 }
1314 1314
1315 } // namespace net 1315 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.cc ('k') | net/spdy/spdy_proxy_client_socket_spdy3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698