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

Side by Side Diff: remoting/protocol/protocol_mock_objects.h

Issue 9316052: Log IP/port of host as well as client in Me2Me host (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/IpAddress/RouteChange s/end_point/remote_end_point and other nits Created 8 years, 10 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 | « remoting/protocol/jingle_session.cc ('k') | remoting/protocol/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 #ifndef REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
6 #define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 6 #define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/base/ip_endpoint.h" 10 #include "net/base/ip_endpoint.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 public: 42 public:
43 MockConnectionToClientEventHandler(); 43 MockConnectionToClientEventHandler();
44 virtual ~MockConnectionToClientEventHandler(); 44 virtual ~MockConnectionToClientEventHandler();
45 45
46 MOCK_METHOD1(OnConnectionOpened, void(ConnectionToClient* connection)); 46 MOCK_METHOD1(OnConnectionOpened, void(ConnectionToClient* connection));
47 MOCK_METHOD1(OnConnectionClosed, void(ConnectionToClient* connection)); 47 MOCK_METHOD1(OnConnectionClosed, void(ConnectionToClient* connection));
48 MOCK_METHOD2(OnConnectionFailed, void(ConnectionToClient* connection, 48 MOCK_METHOD2(OnConnectionFailed, void(ConnectionToClient* connection,
49 Session::Error error)); 49 Session::Error error));
50 MOCK_METHOD2(OnSequenceNumberUpdated, void(ConnectionToClient* connection, 50 MOCK_METHOD2(OnSequenceNumberUpdated, void(ConnectionToClient* connection,
51 int64 sequence_number)); 51 int64 sequence_number));
52 MOCK_METHOD3(OnClientIpAddress, void(ConnectionToClient* connection, 52 MOCK_METHOD4(OnRouteChange, void(
53 const std::string& channel_name, 53 ConnectionToClient* connection,
54 const net::IPEndPoint& end_point)); 54 const std::string& channel_name,
55 const net::IPEndPoint& remote_end_point,
56 const net::IPEndPoint& local_end_point));
55 57
56 private: 58 private:
57 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); 59 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler);
58 }; 60 };
59 61
60 class MockInputStub : public InputStub { 62 class MockInputStub : public InputStub {
61 public: 63 public:
62 MockInputStub(); 64 MockInputStub();
63 virtual ~MockInputStub(); 65 virtual ~MockInputStub();
64 66
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 MOCK_METHOD0(Close, void()); 135 MOCK_METHOD0(Close, void());
134 136
135 private: 137 private:
136 DISALLOW_COPY_AND_ASSIGN(MockSession); 138 DISALLOW_COPY_AND_ASSIGN(MockSession);
137 }; 139 };
138 140
139 } // namespace protocol 141 } // namespace protocol
140 } // namespace remoting 142 } // namespace remoting
141 143
142 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 144 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/protocol/jingle_session.cc ('k') | remoting/protocol/session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698