#ifndef ANDROID_PDX_MOCK_MESSAGE_WRITER_H_ #define ANDROID_PDX_MOCK_MESSAGE_WRITER_H_ #include #include namespace android { namespace pdx { class MockOutputResourceMapper : public OutputResourceMapper { public: MOCK_METHOD1(PushFileHandle, Status(const LocalHandle& handle)); MOCK_METHOD1(PushFileHandle, Status(const BorrowedHandle& handle)); MOCK_METHOD1(PushFileHandle, Status(const RemoteHandle& handle)); MOCK_METHOD1(PushChannelHandle, Status(const LocalChannelHandle& handle)); MOCK_METHOD1(PushChannelHandle, Status(const BorrowedChannelHandle& handle)); MOCK_METHOD1(PushChannelHandle, Status(const RemoteChannelHandle& handle)); }; class MockMessageWriter : public MessageWriter { public: MOCK_METHOD1(GetNextWriteBufferSection, void*(size_t size)); MOCK_METHOD0(GetOutputResourceMapper, OutputResourceMapper*()); }; } // namespace pdx } // namespace android #endif // ANDROID_PDX_MOCK_MESSAGE_WRITER_H_