mirror of
https://github.com/meekrosoft/fff
synced 2026-01-23 00:15:59 +01:00
Test suite for global fakes from a cpp context
This commit is contained in:
23
test/fff_test_global_cpp.cpp
Normal file
23
test/fff_test_global_cpp.cpp
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
|
||||||
|
extern "C"{
|
||||||
|
#include "global_fakes.h"
|
||||||
|
}
|
||||||
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
|
DEFINE_FFF_GLOBALS;
|
||||||
|
|
||||||
|
class FFFTestSuite: public testing::Test
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
void SetUp()
|
||||||
|
{
|
||||||
|
RESET_FAKE(voidfunc1);
|
||||||
|
RESET_FAKE(voidfunc2);
|
||||||
|
RESET_FAKE(longfunc0);
|
||||||
|
RESET_HISTORY();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
#include "test_cases.include"
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user