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_JINGLE_GLUE_MOCK_OBJECTS_H_ |
| 6 #define REMOTING_JINGLE_GLUE_MOCK_OBJECTS_H_ |
| 7 |
| 8 #include "remoting/jingle_glue/jingle_channel.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 |
| 11 namespace remoting { |
| 12 |
| 13 class MockJingleChannel : public JingleChannel { |
| 14 public: |
| 15 MockJingleChannel() {} |
| 16 |
| 17 MOCK_METHOD1(Write, void(scoped_refptr<media::DataBuffer> data)); |
| 18 MOCK_METHOD0(Close, void()); |
| 19 |
| 20 private: |
| 21 DISALLOW_COPY_AND_ASSIGN(MockJingleChannel); |
| 22 }; |
| 23 |
| 24 } // namespace remoting |
| 25 |
| 26 #endif // REMOTING_JINGLE_GLUE_MOCK_OBJECTS_H_ |
OLD | NEW |