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

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

Issue 205583011: [Draft] Fix canceling pin prompt causes host overload (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Last round of feedbacks Created 6 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
« no previous file with comments | « remoting/host/client_session.cc ('k') | remoting/host/pam_authorization_factory_posix.cc » ('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 <string> 8 #include <string>
9 9
10 #include "net/base/ip_endpoint.h" 10 #include "net/base/ip_endpoint.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 private: 62 private:
63 DISALLOW_COPY_AND_ASSIGN(MockClientSessionControl); 63 DISALLOW_COPY_AND_ASSIGN(MockClientSessionControl);
64 }; 64 };
65 65
66 class MockClientSessionEventHandler : public ClientSession::EventHandler { 66 class MockClientSessionEventHandler : public ClientSession::EventHandler {
67 public: 67 public:
68 MockClientSessionEventHandler(); 68 MockClientSessionEventHandler();
69 virtual ~MockClientSessionEventHandler(); 69 virtual ~MockClientSessionEventHandler();
70 70
71 MOCK_METHOD1(OnSessionAuthenticating, void(ClientSession* client));
71 MOCK_METHOD1(OnSessionAuthenticated, bool(ClientSession* client)); 72 MOCK_METHOD1(OnSessionAuthenticated, bool(ClientSession* client));
72 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client)); 73 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client));
73 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); 74 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client));
74 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); 75 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client));
75 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, 76 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client,
76 int64 sequence_number)); 77 int64 sequence_number));
77 MOCK_METHOD3(OnSessionRouteChange, void( 78 MOCK_METHOD3(OnSessionRouteChange, void(
78 ClientSession* client, 79 ClientSession* client,
79 const std::string& channel_name, 80 const std::string& channel_name,
80 const protocol::TransportRoute& route)); 81 const protocol::TransportRoute& route));
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 MOCK_CONST_METHOD2(DeliverHostDataMessage, 144 MOCK_CONST_METHOD2(DeliverHostDataMessage,
144 void(int connection_id, const std::string& data)); 145 void(int connection_id, const std::string& data));
145 146
146 private: 147 private:
147 DISALLOW_COPY_AND_ASSIGN(MockGnubbyAuthHandler); 148 DISALLOW_COPY_AND_ASSIGN(MockGnubbyAuthHandler);
148 }; 149 };
149 150
150 } // namespace remoting 151 } // namespace remoting
151 152
152 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 153 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/client_session.cc ('k') | remoting/host/pam_authorization_factory_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698