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

Side by Side Diff: remoting/host/host_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/host/host_event_logger.cc ('k') | remoting/host/host_status_observer.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_HOST_HOST_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_
6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_
7 7
8 #include "net/base/ip_endpoint.h" 8 #include "net/base/ip_endpoint.h"
9 #include "remoting/host/capturer.h" 9 #include "remoting/host/capturer.h"
10 #include "remoting/host/curtain.h" 10 #include "remoting/host/curtain.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 public: 97 public:
98 MockClientSessionEventHandler(); 98 MockClientSessionEventHandler();
99 virtual ~MockClientSessionEventHandler(); 99 virtual ~MockClientSessionEventHandler();
100 100
101 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); 101 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client));
102 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); 102 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client));
103 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); 103 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client));
104 MOCK_METHOD1(OnSessionFailed, void(ClientSession* client)); 104 MOCK_METHOD1(OnSessionFailed, void(ClientSession* client));
105 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, 105 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client,
106 int64 sequence_number)); 106 int64 sequence_number));
107 MOCK_METHOD3(OnSessionIpAddress, void(ClientSession* client, 107 MOCK_METHOD4(OnSessionRouteChange, void(
108 const std::string& channel_name, 108 ClientSession* client,
109 const net::IPEndPoint& end_point)); 109 const std::string& channel_name,
110 const net::IPEndPoint& remote_end_point,
111 const net::IPEndPoint& local_end_point));
110 112
111 private: 113 private:
112 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); 114 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler);
113 }; 115 };
114 116
115 class MockEventExecutor : public EventExecutor { 117 class MockEventExecutor : public EventExecutor {
116 public: 118 public:
117 MockEventExecutor(); 119 MockEventExecutor();
118 virtual ~MockEventExecutor(); 120 virtual ~MockEventExecutor();
119 121
(...skipping 12 matching lines...) Expand all
132 MOCK_METHOD2(Authenticate, bool(const std::string& username, 134 MOCK_METHOD2(Authenticate, bool(const std::string& username,
133 const std::string& password)); 135 const std::string& password));
134 136
135 private: 137 private:
136 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); 138 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator);
137 }; 139 };
138 140
139 } // namespace remoting 141 } // namespace remoting
140 142
141 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 143 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/host_event_logger.cc ('k') | remoting/host/host_status_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698