From f8af106f319019a699eebe137f11e79024fbb07c Mon Sep 17 00:00:00 2001 From: Mike Long Date: Thu, 24 May 2012 17:51:20 +0800 Subject: [PATCH] Test suite for global fakes from a cpp context --- test/fff_test_global_cpp.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/fff_test_global_cpp.cpp diff --git a/test/fff_test_global_cpp.cpp b/test/fff_test_global_cpp.cpp new file mode 100644 index 0000000..fc08506 --- /dev/null +++ b/test/fff_test_global_cpp.cpp @@ -0,0 +1,23 @@ + +extern "C"{ + #include "global_fakes.h" +} +#include + +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" + +