| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef REMOTING_BASE_BASE_MOCK_OBJECTS_H_ | |
| 6 #define REMOTING_BASE_BASE_MOCK_OBJECTS_H_ | |
| 7 | |
| 8 #include "remoting/base/capture_data.h" | |
| 9 #include "remoting/base/decoder.h" | |
| 10 #include "remoting/base/encoder.h" | |
| 11 #include "testing/gmock/include/gmock/gmock.h" | |
| 12 | |
| 13 namespace remoting { | |
| 14 | |
| 15 class MockEncoder : public Encoder { | |
| 16 public: | |
| 17 MockEncoder(); | |
| 18 virtual ~MockEncoder(); | |
| 19 | |
| 20 MOCK_METHOD3(Encode, void( | |
| 21 scoped_refptr<CaptureData> capture_data, | |
| 22 bool key_frame, | |
| 23 const DataAvailableCallback& data_available_callback)); | |
| 24 | |
| 25 private: | |
| 26 DISALLOW_COPY_AND_ASSIGN(MockEncoder); | |
| 27 }; | |
| 28 | |
| 29 } // namespace remoting | |
| 30 | |
| 31 #endif // REMOTING_BASE_BASE_MOCK_OBJECTS_H_ | |
| OLD | NEW |