1 #ifndef ANDROID_PDX_MOCK_MESSAGE_WRITER_H_ 2 #define ANDROID_PDX_MOCK_MESSAGE_WRITER_H_ 3 4 #include <gmock/gmock.h> 5 #include <pdx/message_writer.h> 6 7 namespace android { 8 namespace pdx { 9 10 class MockOutputResourceMapper : public OutputResourceMapper { 11 public: 12 MOCK_METHOD1(PushFileHandle, 13 Status<FileReference>(const LocalHandle& handle)); 14 MOCK_METHOD1(PushFileHandle, 15 Status<FileReference>(const BorrowedHandle& handle)); 16 MOCK_METHOD1(PushFileHandle, 17 Status<FileReference>(const RemoteHandle& handle)); 18 MOCK_METHOD1(PushChannelHandle, 19 Status<ChannelReference>(const LocalChannelHandle& handle)); 20 MOCK_METHOD1(PushChannelHandle, 21 Status<ChannelReference>(const BorrowedChannelHandle& handle)); 22 MOCK_METHOD1(PushChannelHandle, 23 Status<ChannelReference>(const RemoteChannelHandle& handle)); 24 }; 25 26 class MockMessageWriter : public MessageWriter { 27 public: 28 MOCK_METHOD1(GetNextWriteBufferSection, void*(size_t size)); 29 MOCK_METHOD0(GetOutputResourceMapper, OutputResourceMapper*()); 30 }; 31 32 } // namespace pdx 33 } // namespace android 34 35 #endif // ANDROID_PDX_MOCK_MESSAGE_WRITER_H_ 36