Skip to content

Commit

Permalink
Fixed unit tests for us4r-api mocks 0.8.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjarosik committed Mar 15, 2022
1 parent a70c955 commit 99e5abd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions arrus/core/devices/us4r/tests/MockIUs4OEM.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,25 @@ class MockIUs4OEM : public IUs4OEM {
MOCK_METHOD(void, ResetCallbacks, (), (override));
MOCK_METHOD(float, GetFPGATemp, (), (override));
MOCK_METHOD(void, WaitForPendingTransfers, (), (override));
MOCK_METHOD(void, ClearUCDFaults, (), (override));
MOCK_METHOD(unsigned short, GetUCDStatus, (), (override));
MOCK_METHOD(unsigned char, GetUCDStatusByte, (), (override));
MOCK_METHOD(float, GetUCDTemp, (), (override));
MOCK_METHOD(float, GetUCDExtTemp, (), (override));
MOCK_METHOD(float, GetUCDVOUT, (unsigned char), (override));
MOCK_METHOD(float, GetUCDIOUT, (unsigned char), (override));
MOCK_METHOD(unsigned char, GetUCDVOUTStatus, (unsigned char), (override));
MOCK_METHOD(unsigned char, GetUCDIOUTStatus, (unsigned char), (override));
MOCK_METHOD(unsigned char, GetUCDCMLStatus, (unsigned char), (override));
MOCK_METHOD(std::vector<unsigned char>, GetUCDMFRStatus, (unsigned char), (override));
MOCK_METHOD(std::vector<unsigned char>, GetUCDRunTime, (), (override));
MOCK_METHOD(std::vector<unsigned char>, GetUCDBlackBox, (), (override));
MOCK_METHOD(std::vector<unsigned char>, GetUCDLog, (), (override));
MOCK_METHOD(void, ClearUCDLog, (), (override));
MOCK_METHOD(bool, CheckUCDLogNotEmpty, (), (override));
MOCK_METHOD(void, ClearUCDBlackBox, (), (override));
MOCK_METHOD(void, SetTxFrequencyRange, (int), (override));
MOCK_METHOD(int, GetTxFrequencyRange, (), (override));
};

#define GET_MOCK_PTR(sptr) *(MockIUs4OEM *) (sptr.get())
Expand Down

0 comments on commit 99e5abd

Please sign in to comment.