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

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

Issue 301453003: Host extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ChromotingHost creates extension sessions, and adds capabilities Created 6 years, 6 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
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(OnSessionAuthenticating, void(ClientSession* client));
72 MOCK_METHOD1(OnSessionAuthenticated, bool(ClientSession* client)); 72 MOCK_METHOD1(OnSessionAuthenticated, bool(ClientSession* client));
73 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client)); 73 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client));
74 MOCK_METHOD1(OnClientCapabilities, void(ClientSession* client));
74 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); 75 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client));
75 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); 76 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client));
76 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, 77 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client,
77 int64 sequence_number)); 78 int64 sequence_number));
78 MOCK_METHOD3(OnSessionRouteChange, void( 79 MOCK_METHOD3(OnSessionRouteChange, void(
79 ClientSession* client, 80 ClientSession* client,
80 const std::string& channel_name, 81 const std::string& channel_name,
81 const protocol::TransportRoute& route)); 82 const protocol::TransportRoute& route));
82 83
83 private: 84 private:
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 MOCK_CONST_METHOD2(DeliverHostDataMessage, 145 MOCK_CONST_METHOD2(DeliverHostDataMessage,
145 void(int connection_id, const std::string& data)); 146 void(int connection_id, const std::string& data));
146 147
147 private: 148 private:
148 DISALLOW_COPY_AND_ASSIGN(MockGnubbyAuthHandler); 149 DISALLOW_COPY_AND_ASSIGN(MockGnubbyAuthHandler);
149 }; 150 };
150 151
151 } // namespace remoting 152 } // namespace remoting
152 153
153 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 154 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698