| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 5 #ifndef REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 
| 6 #define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 6 #define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 
| 7 | 7 | 
| 8 #include <string> | 8 #include <string> | 
| 9 | 9 | 
| 10 #include "remoting/proto/internal.pb.h" | 10 #include "remoting/proto/internal.pb.h" | 
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 96   DISALLOW_COPY_AND_ASSIGN(MockVideoStub); | 96   DISALLOW_COPY_AND_ASSIGN(MockVideoStub); | 
| 97 }; | 97 }; | 
| 98 | 98 | 
| 99 class MockSession : public Session { | 99 class MockSession : public Session { | 
| 100  public: | 100  public: | 
| 101   MockSession(); | 101   MockSession(); | 
| 102   virtual ~MockSession(); | 102   virtual ~MockSession(); | 
| 103 | 103 | 
| 104   MOCK_METHOD1(SetStateChangeCallback, | 104   MOCK_METHOD1(SetStateChangeCallback, | 
| 105                void(const StateChangeCallback& callback)); | 105                void(const StateChangeCallback& callback)); | 
|  | 106   MOCK_METHOD1(SetRouteChangeCallback, | 
|  | 107                void(const RouteChangeCallback& callback)); | 
| 106   MOCK_METHOD0(error, Session::Error()); | 108   MOCK_METHOD0(error, Session::Error()); | 
| 107   MOCK_METHOD2(CreateStreamChannel, void( | 109   MOCK_METHOD2(CreateStreamChannel, void( | 
| 108       const std::string& name, const StreamChannelCallback& callback)); | 110       const std::string& name, const StreamChannelCallback& callback)); | 
| 109   MOCK_METHOD2(CreateDatagramChannel, void( | 111   MOCK_METHOD2(CreateDatagramChannel, void( | 
| 110       const std::string& name, const DatagramChannelCallback& callback)); | 112       const std::string& name, const DatagramChannelCallback& callback)); | 
| 111   MOCK_METHOD1(CancelChannelCreation, void(const std::string& name)); | 113   MOCK_METHOD1(CancelChannelCreation, void(const std::string& name)); | 
| 112   MOCK_METHOD0(control_channel, net::Socket*()); | 114   MOCK_METHOD0(control_channel, net::Socket*()); | 
| 113   MOCK_METHOD0(event_channel, net::Socket*()); | 115   MOCK_METHOD0(event_channel, net::Socket*()); | 
| 114   MOCK_METHOD0(video_channel, net::Socket*()); | 116   MOCK_METHOD0(video_channel, net::Socket*()); | 
| 115   MOCK_METHOD0(video_rtp_channel, net::Socket*()); | 117   MOCK_METHOD0(video_rtp_channel, net::Socket*()); | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
| 127   MOCK_METHOD0(Close, void()); | 129   MOCK_METHOD0(Close, void()); | 
| 128 | 130 | 
| 129  private: | 131  private: | 
| 130   DISALLOW_COPY_AND_ASSIGN(MockSession); | 132   DISALLOW_COPY_AND_ASSIGN(MockSession); | 
| 131 }; | 133 }; | 
| 132 | 134 | 
| 133 }  // namespace protocol | 135 }  // namespace protocol | 
| 134 }  // namespace remoting | 136 }  // namespace remoting | 
| 135 | 137 | 
| 136 #endif  // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 138 #endif  // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 
| OLD | NEW | 
|---|