mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:23:52 +00:00
Mark mock methods as overrides (requires GTest 1.10)
This commit is contained in:
parent
a3dfdde9ef
commit
807367ca3f
2 changed files with 14 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
||||||
find_package(GTest REQUIRED)
|
find_package(GTest 1.10 REQUIRED)
|
||||||
find_package(GMock REQUIRED)
|
find_package(GMock 1.10 REQUIRED)
|
||||||
|
|
||||||
if (GTEST_FOUND AND GMOCK_FOUND)
|
if (GTEST_FOUND AND GMOCK_FOUND)
|
||||||
include_directories(SYSTEM ${GTEST_INCLUDE_DIRS})
|
include_directories(SYSTEM ${GTEST_INCLUDE_DIRS})
|
||||||
|
|
|
@ -293,22 +293,22 @@ namespace
|
||||||
|
|
||||||
struct NifFileMock : Nif::File
|
struct NifFileMock : Nif::File
|
||||||
{
|
{
|
||||||
MOCK_CONST_METHOD1(getRecord, Nif::Record* (std::size_t));
|
MOCK_METHOD(Nif::Record*, getRecord, (std::size_t), (const, override));
|
||||||
MOCK_CONST_METHOD0(numRecords, std::size_t ());
|
MOCK_METHOD(std::size_t, numRecords, (), (const, override));
|
||||||
MOCK_CONST_METHOD1(getRoot, Nif::Record* (std::size_t));
|
MOCK_METHOD(Nif::Record*, getRoot, (std::size_t), (const, override));
|
||||||
MOCK_CONST_METHOD0(numRoots, std::size_t ());
|
MOCK_METHOD(std::size_t, numRoots, (), (const, override));
|
||||||
MOCK_CONST_METHOD1(getString, std::string (uint32_t));
|
MOCK_METHOD(std::string, getString, (uint32_t), (const, override));
|
||||||
MOCK_METHOD1(setUseSkinning, void (bool));
|
MOCK_METHOD(void, setUseSkinning, (bool), (override));
|
||||||
MOCK_CONST_METHOD0(getUseSkinning, bool ());
|
MOCK_METHOD(bool, getUseSkinning, (), (const, override));
|
||||||
MOCK_CONST_METHOD0(getFilename, std::string ());
|
MOCK_METHOD(std::string, getFilename, (), (const, override));
|
||||||
MOCK_CONST_METHOD0(getVersion, unsigned int ());
|
MOCK_METHOD(unsigned int, getVersion, (), (const, override));
|
||||||
MOCK_CONST_METHOD0(getUserVersion, unsigned int ());
|
MOCK_METHOD(unsigned int, getUserVersion, (), (const, override));
|
||||||
MOCK_CONST_METHOD0(getBethVersion, unsigned int ());
|
MOCK_METHOD(unsigned int, getBethVersion, (), (const, override));
|
||||||
};
|
};
|
||||||
|
|
||||||
struct RecordMock : Nif::Record
|
struct RecordMock : Nif::Record
|
||||||
{
|
{
|
||||||
MOCK_METHOD1(read, void (Nif::NIFStream *nif));
|
MOCK_METHOD(void, read, (Nif::NIFStream *nif), (override));
|
||||||
};
|
};
|
||||||
|
|
||||||
struct TestBulletNifLoader : Test
|
struct TestBulletNifLoader : Test
|
||||||
|
|
Loading…
Reference in a new issue