| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |