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

Side by Side Diff: remoting/host/host_mock_objects.h

Issue 10893009: Log when the host is started for an account. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change shutdown log to a TODO, update unit test expectations. Created 8 years, 3 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_win.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/video_frame_capturer.h" 9 #include "remoting/host/video_frame_capturer.h"
10 #include "remoting/host/chromoting_host_context.h" 10 #include "remoting/host/chromoting_host_context.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 virtual ~MockHostStatusObserver(); 142 virtual ~MockHostStatusObserver();
143 143
144 MOCK_METHOD1(OnAccessDenied, void(const std::string& jid)); 144 MOCK_METHOD1(OnAccessDenied, void(const std::string& jid));
145 MOCK_METHOD1(OnClientAuthenticated, void(const std::string& jid)); 145 MOCK_METHOD1(OnClientAuthenticated, void(const std::string& jid));
146 MOCK_METHOD1(OnClientConnected, void(const std::string& jid)); 146 MOCK_METHOD1(OnClientConnected, void(const std::string& jid));
147 MOCK_METHOD1(OnClientDisconnected, void(const std::string& jid)); 147 MOCK_METHOD1(OnClientDisconnected, void(const std::string& jid));
148 MOCK_METHOD3(OnClientRouteChange, 148 MOCK_METHOD3(OnClientRouteChange,
149 void(const std::string& jid, 149 void(const std::string& jid,
150 const std::string& channel_name, 150 const std::string& channel_name,
151 const protocol::TransportRoute& route)); 151 const protocol::TransportRoute& route));
152 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login));
152 MOCK_METHOD0(OnShutdown, void()); 153 MOCK_METHOD0(OnShutdown, void());
153 }; 154 };
154 155
155 class MockUserAuthenticator : public UserAuthenticator { 156 class MockUserAuthenticator : public UserAuthenticator {
156 public: 157 public:
157 MockUserAuthenticator(); 158 MockUserAuthenticator();
158 virtual ~MockUserAuthenticator(); 159 virtual ~MockUserAuthenticator();
159 160
160 MOCK_METHOD2(Authenticate, bool(const std::string& username, 161 MOCK_METHOD2(Authenticate, bool(const std::string& username,
161 const std::string& password)); 162 const std::string& password));
162 163
163 private: 164 private:
164 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); 165 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator);
165 }; 166 };
166 167
167 } // namespace remoting 168 } // namespace remoting
168 169
169 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 170 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/host_event_logger_win.cc ('k') | remoting/host/host_status_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698