#ifndef TESTS_NACL_IO_TEST_FAKE_MESSAGING_INTERFACE_H_
#define TESTS_NACL_IO_TEST_FAKE_MESSAGING_INTERFACE_H_
#include <string>
#include <vector>
#include "nacl_io/pepper_interface.h"
#include "sdk_util/macros.h"
class FakeVarManager;
class FakeMessagingInterface : public nacl_io::MessagingInterface {
public:
FakeMessagingInterface(FakeVarManager* manager,
nacl_io::VarInterface* var_interface);
~FakeMessagingInterface();
virtual void PostMessage(PP_Instance instance, PP_Var message);
std::vector<PP_Var> messages;
private:
FakeVarManager* manager_;
nacl_io::VarInterface* var_interface_;
DISALLOW_COPY_AND_ASSIGN(FakeMessagingInterface);
};
#endif