Test suite for global fakes from a cpp context

This commit is contained in:
Mike Long
2012-05-24 17:51:20 +08:00
parent 8ee3ba7261
commit f8af106f31

View 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"