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

Side by Side Diff: jingle/notifier/base/fake_ssl_client_socket_unittest.cc

Issue 8889036: Revert 113699 - base::Bind: Convert Socket::Write. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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
Property Changes:
Deleted: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "jingle/notifier/base/fake_ssl_client_socket.h" 5 #include "jingle/notifier/base/fake_ssl_client_socket.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Used by PassThroughMethods test. 45 // Used by PassThroughMethods test.
46 class MockClientSocket : public net::StreamSocket { 46 class MockClientSocket : public net::StreamSocket {
47 public: 47 public:
48 virtual ~MockClientSocket() {} 48 virtual ~MockClientSocket() {}
49 49
50 MOCK_METHOD3(Read, int(net::IOBuffer*, int, net::OldCompletionCallback*)); 50 MOCK_METHOD3(Read, int(net::IOBuffer*, int, net::OldCompletionCallback*));
51 MOCK_METHOD3(Read, int(net::IOBuffer*, int, 51 MOCK_METHOD3(Read, int(net::IOBuffer*, int,
52 const net::CompletionCallback&)); 52 const net::CompletionCallback&));
53 MOCK_METHOD3(Write, int(net::IOBuffer*, int, net::OldCompletionCallback*)); 53 MOCK_METHOD3(Write, int(net::IOBuffer*, int, net::OldCompletionCallback*));
54 MOCK_METHOD3(Write, int(net::IOBuffer*, int,
55 const net::CompletionCallback&));
56 MOCK_METHOD1(SetReceiveBufferSize, bool(int32)); 54 MOCK_METHOD1(SetReceiveBufferSize, bool(int32));
57 MOCK_METHOD1(SetSendBufferSize, bool(int32)); 55 MOCK_METHOD1(SetSendBufferSize, bool(int32));
58 MOCK_METHOD1(Connect, int(net::OldCompletionCallback*)); 56 MOCK_METHOD1(Connect, int(net::OldCompletionCallback*));
59 MOCK_METHOD1(Connect, int(const net::CompletionCallback&)); 57 MOCK_METHOD1(Connect, int(const net::CompletionCallback&));
60 MOCK_METHOD0(Disconnect, void()); 58 MOCK_METHOD0(Disconnect, void());
61 MOCK_CONST_METHOD0(IsConnected, bool()); 59 MOCK_CONST_METHOD0(IsConnected, bool());
62 MOCK_CONST_METHOD0(IsConnectedAndIdle, bool()); 60 MOCK_CONST_METHOD0(IsConnectedAndIdle, bool());
63 MOCK_CONST_METHOD1(GetPeerAddress, int(net::AddressList*)); 61 MOCK_CONST_METHOD1(GetPeerAddress, int(net::AddressList*));
64 MOCK_CONST_METHOD1(GetLocalAddress, int(net::IPEndPoint*)); 62 MOCK_CONST_METHOD1(GetLocalAddress, int(net::IPEndPoint*));
65 MOCK_CONST_METHOD0(NetLog, const net::BoundNetLog&()); 63 MOCK_CONST_METHOD0(NetLog, const net::BoundNetLog&());
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 } 337 }
340 338
341 TEST_F(FakeSSLClientSocketTest, MalformedServerHello) { 339 TEST_F(FakeSSLClientSocketTest, MalformedServerHello) {
342 RunUnsuccessfulHandshakeTest(ERR_MALFORMED_SERVER_HELLO, 340 RunUnsuccessfulHandshakeTest(ERR_MALFORMED_SERVER_HELLO,
343 VERIFY_SERVER_HELLO_ERROR); 341 VERIFY_SERVER_HELLO_ERROR);
344 } 342 }
345 343
346 } // namespace 344 } // namespace
347 345
348 } // namespace notifier 346 } // namespace notifier
OLDNEW
« no previous file with comments | « jingle/notifier/base/fake_ssl_client_socket.cc ('k') | jingle/notifier/base/proxy_resolving_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698