Commit Graph

43 Commits

Author SHA1 Message Date
mj
0cf75a229e Added auto counting of parameters for declaration and definition of fake functions for global use. Adjusted unit tests of global functions 2016-12-18 15:03:15 +01:00
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
Rubio R. C. Terra
88864216d3 Added test case for FAKE_VALUE_FUNC_VARARG. 2016-06-07 10:01:36 -03:00
Mike Long
cbe9b8b7fb Add license file and make gtest compile with own TR1 tuple library 2014-01-09 22:04:03 +08:00
Mike Long
c38a1343a4 Add support for up to 20 arguments 2013-06-26 07:43:25 +08:00
Mike Long
0f9f1d939d Merged varargs support with const support 2013-06-23 22:22:34 +08:00
Micha Hoiting
ef62856fc3 Implement minimal support for varargs 2012-11-09 01:33:10 +01:00
Micha Hoiting
3cf610ea97 Add support for const parameters in fakes (C only) 2012-11-08 23:14:02 +01:00
Micha Hoiting
e35ae98cac Add test with const parameters 2012-11-07 22:56:45 +01:00
Micha Hoiting
f0ea84ce35 Improve makefiles
Added the use of the $(MAKE) variable to support 'gnumake'.
Fixed an issue with some make compile rule and the -o option.
All targets are removed from the build directory when running 'make clean'.
2012-11-07 22:32:13 +01:00
Mike Long
d14ea470e8 Add tests for returning custom fake return values on non-void custom fakes 2012-07-06 03:29:10 +08:00
Mike Long
1aa823ea2b Add test case for returning values from custom fakes 2012-07-06 01:36:14 +08:00
Mike Long
ef60da4685 fix include file name 2012-07-06 01:35:18 +08:00
Mike Long
cd896ccaf9 fix include file name 2012-07-06 01:33:34 +08:00
Mike Long
aacca34887 fix include file name 2012-07-06 01:33:18 +08:00
Mike Long
899f5617a0 Some small tidying 2012-06-26 20:35:33 +08:00
Mike Long
3d6cfd218b Moved global variables into struct so they don't pollute the global namespace 2012-05-29 07:46:21 +08:00
Mike Long
72ec46f852 Common test cases for Fake Function Framework 2012-05-24 17:52:00 +08:00
Mike Long
f8af106f31 Test suite for global fakes from a cpp context 2012-05-24 17:51:20 +08:00
Mike Long
8ee3ba7261 A simple test framework for C code with googletest compatibility 2012-05-24 17:49:35 +08:00
Mike Long
2e0bb77ac7 Add fakes for common test cases 2012-05-24 17:47:13 +08:00
Mike Long
54fae16407 Add fakes for common test cases 2012-05-24 17:45:40 +08:00
Mike Long
09a747232c Add common test cases 2012-05-24 17:43:45 +08:00
Mike Long
5f914c5af7 Factor out common test cases into a common include file 2012-05-24 17:41:50 +08:00
Mike Long
8a1ccaf25c Factor out common test cases into a common include file 2012-05-24 17:41:18 +08:00
Mike Long
b89df060ac Build global cpp test suite 2012-05-24 17:39:21 +08:00
Mike Long
33d4b0c8d1 Initial tests for global fakes 2012-05-22 15:48:18 +08:00
Mike Long
1f2b89ba12 Add custom fake tests 2012-05-22 15:46:59 +08:00
Mike Long
0476f0237b Build global fakes tests 2012-05-22 15:44:49 +08:00
Mike Long
e256f6f776 Added custom fakes 2012-04-27 13:47:41 +01:00
Mike Long
1bcf41ff8a Moved fake variables into struct to avoid polluting global namespace 2012-04-25 18:02:48 +01:00
Mike Long
3c8beeaa58 Add googletest library and update makefiles 2012-04-21 07:45:37 +01:00
Mike Long
e34f577a4f New feature: no longer need to specify argument count in the declaration 2011-04-26 17:20:48 +01:00
Mike Long
01aebe40e0 Add overrides for argument and call histories 2011-03-23 09:49:00 +01:00
Mike Long
c44f725fb7 Adding return value sequences 2011-03-22 21:42:04 +01:00
Mike Long
c1d80c74a5 memset return values in reset function 2011-03-10 12:30:39 +01:00
Mike Long
567971a703 Added another method for checking dropped histories 2011-02-19 21:33:16 +01:00
Mike Long
e8475e8e47 Fixed tabs for spaces 2011-02-19 21:23:28 +01:00
Mike Long
6cbdb1c676 Clear argument history when RESET_FAKE called 2011-02-19 20:47:31 +01:00
Mike Long
f12810c3f9 Added basic argument history of fixed size 2011-02-14 21:57:59 +01:00
Mike Long
2043a11291 Added tests from C context 2011-01-15 21:35:17 +01:00
Mike Long
f923a5ad62 Register function call when fake is called 2011-01-01 21:03:20 +01:00
Mike Long
71c66bfa3a Removed src base directory 2011-01-01 20:13:33 +01:00