forked from 3rd-party/fff
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