| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 private: | 69 private: |
| 70 DISALLOW_COPY_AND_ASSIGN(MockClientSessionControl); | 70 DISALLOW_COPY_AND_ASSIGN(MockClientSessionControl); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 class MockClientSessionEventHandler : public ClientSession::EventHandler { | 73 class MockClientSessionEventHandler : public ClientSession::EventHandler { |
| 74 public: | 74 public: |
| 75 MockClientSessionEventHandler(); | 75 MockClientSessionEventHandler(); |
| 76 ~MockClientSessionEventHandler() override; | 76 ~MockClientSessionEventHandler() override; |
| 77 | 77 |
| 78 MOCK_METHOD1(OnSessionAuthenticating, void(ClientSession* client)); | 78 MOCK_METHOD1(OnSessionAuthenticating, void(ClientSession* client)); |
| 79 MOCK_METHOD1(OnSessionAuthenticated, bool(ClientSession* client)); | 79 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); |
| 80 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client)); | 80 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client)); |
| 81 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); | 81 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); |
| 82 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); | 82 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); |
| 83 MOCK_METHOD3(OnSessionRouteChange, void( | 83 MOCK_METHOD3(OnSessionRouteChange, void( |
| 84 ClientSession* client, | 84 ClientSession* client, |
| 85 const std::string& channel_name, | 85 const std::string& channel_name, |
| 86 const protocol::TransportRoute& route)); | 86 const protocol::TransportRoute& route)); |
| 87 | 87 |
| 88 private: | 88 private: |
| 89 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); | 89 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 MOCK_METHOD1(SetLosslessEncode, void(bool)); | 174 MOCK_METHOD1(SetLosslessEncode, void(bool)); |
| 175 MOCK_METHOD1(SetLosslessColor, void(bool)); | 175 MOCK_METHOD1(SetLosslessColor, void(bool)); |
| 176 MOCK_METHOD1(EncodePtr, VideoPacket*(const webrtc::DesktopFrame&)); | 176 MOCK_METHOD1(EncodePtr, VideoPacket*(const webrtc::DesktopFrame&)); |
| 177 | 177 |
| 178 scoped_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame) override; | 178 scoped_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame) override; |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 } // namespace remoting | 181 } // namespace remoting |
| 182 | 182 |
| 183 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 183 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
| OLD | NEW |