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 "net/base/ip_endpoint.h" | 8 #include "net/base/ip_endpoint.h" |
9 #include "remoting/host/chromoting_host_context.h" | 9 #include "remoting/host/chromoting_host_context.h" |
10 #include "remoting/host/client_session.h" | 10 #include "remoting/host/client_session.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); | 87 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); |
88 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client)); | 88 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client)); |
89 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); | 89 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); |
90 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); | 90 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); |
91 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, | 91 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, |
92 int64 sequence_number)); | 92 int64 sequence_number)); |
93 MOCK_METHOD3(OnSessionRouteChange, void( | 93 MOCK_METHOD3(OnSessionRouteChange, void( |
94 ClientSession* client, | 94 ClientSession* client, |
95 const std::string& channel_name, | 95 const std::string& channel_name, |
96 const protocol::TransportRoute& route)); | 96 const protocol::TransportRoute& route)); |
97 MOCK_METHOD2(OnClientDimensionsChanged, void(ClientSession* client, | 97 MOCK_METHOD3(OnClientResolutionChanged, void(ClientSession* client, |
98 const SkISize& size)); | 98 const SkISize& size, |
| 99 const SkIPoint& dpi)); |
99 | 100 |
100 private: | 101 private: |
101 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); | 102 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); |
102 }; | 103 }; |
103 | 104 |
104 class MockDesktopEnvironmentFactory : public DesktopEnvironmentFactory { | 105 class MockDesktopEnvironmentFactory : public DesktopEnvironmentFactory { |
105 public: | 106 public: |
106 MockDesktopEnvironmentFactory(); | 107 MockDesktopEnvironmentFactory(); |
107 virtual ~MockDesktopEnvironmentFactory(); | 108 virtual ~MockDesktopEnvironmentFactory(); |
108 | 109 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 void(const std::string& jid, | 149 void(const std::string& jid, |
149 const std::string& channel_name, | 150 const std::string& channel_name, |
150 const protocol::TransportRoute& route)); | 151 const protocol::TransportRoute& route)); |
151 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login)); | 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 } // namespace remoting | 156 } // namespace remoting |
156 | 157 |
157 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 158 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |