Files
3rd-party-lib-fff/test/fff_test_global_cpp.cpp
Paulo Antonio Alvarez 961289f578 Added two test cases for SET_CUSTOM_FAKE_SEQ
Using a function that sets a value on a variable via a char pointer, we
test the following:
1 - Does the custom fakes are called in the expected order?
2 - When the sequence length is exhausted, do we only call the last
    custom fake in the sequence from then on?
2016-09-14 01:33:20 -03:00

25 lines
369 B
C++

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_FAKE(voidfunc1outparam);
FFF_RESET_HISTORY();
}
};
#include "test_cases.include"