Go to the documentation of this file.00001
00024 #include "gmock/gmock.h"
00025 #include "labjack_driver_interface.h"
00026
00027 class MockLjacklmWrapper : public LabjackDriverInterface {
00028 public:
00029 MOCK_METHOD0(config, long());
00030 MOCK_METHOD0(reset, long());
00031 MOCK_METHOD1(disableWatchdog, long(int activeD));
00032 MOCK_METHOD1(readDirectionDs, long(long * directions));
00033 MOCK_METHOD2(readIO, long(long channel, long * state));
00034 MOCK_METHOD2(writeIO, long(long channel, long state));
00035 MOCK_METHOD2(readDIOs, long(long * stateD, long * stateIO));
00036 MOCK_METHOD2(writeDIOsCONFIG, long(long * stateD, long * stateIO));
00037 MOCK_METHOD2(readD, long(long channel, long * state));
00038 MOCK_METHOD2(writeD, long(long channel, long state));
00039 MOCK_METHOD2(writeDCONFIG, long(long channel, long state));
00040 MOCK_METHOD2(readAI, long(long channel, float * voltage));
00041 MOCK_METHOD2(readDifferentialAI, long(long channel, float * voltage));
00042 MOCK_METHOD2(writeAO, long(int channel, float voltage));
00043 MOCK_METHOD2(writeAOs, long(float voltageAO0, float voltageAO1));
00044 MOCK_METHOD3(readAIs, long(long num_channels, long * channels, float * voltages));
00045 MOCK_METHOD3(enableWatchdog, long(long timeout, int activeD, long state));
00046 MOCK_METHOD4(writeDIOs, long(long * direcD, long * direcIO, long * stateD, long * stateIO));
00047 MOCK_METHOD4(writePulse, long(long pulse_level, long line, long pulse_time, long line_type));
00048 };