#ifndef DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_SOCKET_H_
#define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_SOCKET_H_
#include <string>
#include "device/bluetooth/bluetooth_socket.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace net {
class DrainableIOBuffer;
class GrowableIOBuffer;
}
namespace device {
class MockBluetoothSocket : public BluetoothSocket {
public:
MockBluetoothSocket();
MOCK_METHOD1(Receive, bool(net::GrowableIOBuffer*));
MOCK_METHOD1(Send, bool(net::DrainableIOBuffer*));
MOCK_CONST_METHOD0(GetLastErrorMessage, std::string());
protected:
virtual ~MockBluetoothSocket();
};
}
#endif