CHANGES revision 13481
113481Sgiacomo.travaglini@arm.comChanges for 1.7.0: 213481Sgiacomo.travaglini@arm.com 313481Sgiacomo.travaglini@arm.com* All new improvements in Google Test 1.7.0. 413481Sgiacomo.travaglini@arm.com* New feature: matchers DoubleNear(), FloatNear(), 513481Sgiacomo.travaglini@arm.com NanSensitiveDoubleNear(), NanSensitiveFloatNear(), 613481Sgiacomo.travaglini@arm.com UnorderedElementsAre(), UnorderedElementsAreArray(), WhenSorted(), 713481Sgiacomo.travaglini@arm.com WhenSortedBy(), IsEmpty(), and SizeIs(). 813481Sgiacomo.travaglini@arm.com* Improvement: Google Mock can now be built as a DLL. 913481Sgiacomo.travaglini@arm.com* Improvement: when compiled by a C++11 compiler, matchers AllOf() 1013481Sgiacomo.travaglini@arm.com and AnyOf() can accept an arbitrary number of matchers. 1113481Sgiacomo.travaglini@arm.com* Improvement: when compiled by a C++11 compiler, matchers 1213481Sgiacomo.travaglini@arm.com ElementsAreArray() can accept an initializer list. 1313481Sgiacomo.travaglini@arm.com* Improvement: when exceptions are enabled, a mock method with no 1413481Sgiacomo.travaglini@arm.com default action now throws instead crashing the test. 1513481Sgiacomo.travaglini@arm.com* Improvement: added class testing::StringMatchResultListener to aid 1613481Sgiacomo.travaglini@arm.com definition of composite matchers. 1713481Sgiacomo.travaglini@arm.com* Improvement: function return types used in MOCK_METHOD*() macros can 1813481Sgiacomo.travaglini@arm.com now contain unprotected commas. 1913481Sgiacomo.travaglini@arm.com* Improvement (potentially breaking): EXPECT_THAT() and ASSERT_THAT() 2013481Sgiacomo.travaglini@arm.com are now more strict in ensuring that the value type and the matcher 2113481Sgiacomo.travaglini@arm.com type are compatible, catching potential bugs in tests. 2213481Sgiacomo.travaglini@arm.com* Improvement: Pointee() now works on an optional<T>. 2313481Sgiacomo.travaglini@arm.com* Improvement: the ElementsAreArray() matcher can now take a vector or 2413481Sgiacomo.travaglini@arm.com iterator range as input, and makes a copy of its input elements 2513481Sgiacomo.travaglini@arm.com before the conversion to a Matcher. 2613481Sgiacomo.travaglini@arm.com* Improvement: the Google Mock Generator can now generate mocks for 2713481Sgiacomo.travaglini@arm.com some class templates. 2813481Sgiacomo.travaglini@arm.com* Bug fix: mock object destruction triggerred by another mock object's 2913481Sgiacomo.travaglini@arm.com destruction no longer hangs. 3013481Sgiacomo.travaglini@arm.com* Improvement: Google Mock Doctor works better with newer Clang and 3113481Sgiacomo.travaglini@arm.com GCC now. 3213481Sgiacomo.travaglini@arm.com* Compatibility fixes. 3313481Sgiacomo.travaglini@arm.com* Bug/warning fixes. 3413481Sgiacomo.travaglini@arm.com 3513481Sgiacomo.travaglini@arm.comChanges for 1.6.0: 3613481Sgiacomo.travaglini@arm.com 3713481Sgiacomo.travaglini@arm.com* Compilation is much faster and uses much less memory, especially 3813481Sgiacomo.travaglini@arm.com when the constructor and destructor of a mock class are moved out of 3913481Sgiacomo.travaglini@arm.com the class body. 4013481Sgiacomo.travaglini@arm.com* New matchers: Pointwise(), Each(). 4113481Sgiacomo.travaglini@arm.com* New actions: ReturnPointee() and ReturnRefOfCopy(). 4213481Sgiacomo.travaglini@arm.com* CMake support. 4313481Sgiacomo.travaglini@arm.com* Project files for Visual Studio 2010. 4413481Sgiacomo.travaglini@arm.com* AllOf() and AnyOf() can handle up-to 10 arguments now. 4513481Sgiacomo.travaglini@arm.com* Google Mock doctor understands Clang error messages now. 4613481Sgiacomo.travaglini@arm.com* SetArgPointee<> now accepts string literals. 4713481Sgiacomo.travaglini@arm.com* gmock_gen.py handles storage specifier macros and template return 4813481Sgiacomo.travaglini@arm.com types now. 4913481Sgiacomo.travaglini@arm.com* Compatibility fixes. 5013481Sgiacomo.travaglini@arm.com* Bug fixes and implementation clean-ups. 5113481Sgiacomo.travaglini@arm.com* Potentially incompatible changes: disables the harmful 'make install' 5213481Sgiacomo.travaglini@arm.com command in autotools. 5313481Sgiacomo.travaglini@arm.com 5413481Sgiacomo.travaglini@arm.comPotentially breaking changes: 5513481Sgiacomo.travaglini@arm.com 5613481Sgiacomo.travaglini@arm.com* The description string for MATCHER*() changes from Python-style 5713481Sgiacomo.travaglini@arm.com interpolation to an ordinary C++ string expression. 5813481Sgiacomo.travaglini@arm.com* SetArgumentPointee is deprecated in favor of SetArgPointee. 5913481Sgiacomo.travaglini@arm.com* Some non-essential project files for Visual Studio 2005 are removed. 6013481Sgiacomo.travaglini@arm.com 6113481Sgiacomo.travaglini@arm.comChanges for 1.5.0: 6213481Sgiacomo.travaglini@arm.com 6313481Sgiacomo.travaglini@arm.com * New feature: Google Mock can be safely used in multi-threaded tests 6413481Sgiacomo.travaglini@arm.com on platforms having pthreads. 6513481Sgiacomo.travaglini@arm.com * New feature: function for printing a value of arbitrary type. 6613481Sgiacomo.travaglini@arm.com * New feature: function ExplainMatchResult() for easy definition of 6713481Sgiacomo.travaglini@arm.com composite matchers. 6813481Sgiacomo.travaglini@arm.com * The new matcher API lets user-defined matchers generate custom 6913481Sgiacomo.travaglini@arm.com explanations more directly and efficiently. 7013481Sgiacomo.travaglini@arm.com * Better failure messages all around. 7113481Sgiacomo.travaglini@arm.com * NotNull() and IsNull() now work with smart pointers. 7213481Sgiacomo.travaglini@arm.com * Field() and Property() now work when the matcher argument is a pointer 7313481Sgiacomo.travaglini@arm.com passed by reference. 7413481Sgiacomo.travaglini@arm.com * Regular expression matchers on all platforms. 7513481Sgiacomo.travaglini@arm.com * Added GCC 4.0 support for Google Mock Doctor. 7613481Sgiacomo.travaglini@arm.com * Added gmock_all_test.cc for compiling most Google Mock tests 7713481Sgiacomo.travaglini@arm.com in a single file. 7813481Sgiacomo.travaglini@arm.com * Significantly cleaned up compiler warnings. 7913481Sgiacomo.travaglini@arm.com * Bug fixes, better test coverage, and implementation clean-ups. 8013481Sgiacomo.travaglini@arm.com 8113481Sgiacomo.travaglini@arm.com Potentially breaking changes: 8213481Sgiacomo.travaglini@arm.com 8313481Sgiacomo.travaglini@arm.com * Custom matchers defined using MatcherInterface or MakePolymorphicMatcher() 8413481Sgiacomo.travaglini@arm.com need to be updated after upgrading to Google Mock 1.5.0; matchers defined 8513481Sgiacomo.travaglini@arm.com using MATCHER or MATCHER_P* aren't affected. 8613481Sgiacomo.travaglini@arm.com * Dropped support for 'make install'. 8713481Sgiacomo.travaglini@arm.com 8813481Sgiacomo.travaglini@arm.comChanges for 1.4.0 (we skipped 1.2.* and 1.3.* to match the version of 8913481Sgiacomo.travaglini@arm.comGoogle Test): 9013481Sgiacomo.travaglini@arm.com 9113481Sgiacomo.travaglini@arm.com * Works in more environments: Symbian and minGW, Visual C++ 7.1. 9213481Sgiacomo.travaglini@arm.com * Lighter weight: comes with our own implementation of TR1 tuple (no 9313481Sgiacomo.travaglini@arm.com more dependency on Boost!). 9413481Sgiacomo.travaglini@arm.com * New feature: --gmock_catch_leaked_mocks for detecting leaked mocks. 9513481Sgiacomo.travaglini@arm.com * New feature: ACTION_TEMPLATE for defining templatized actions. 9613481Sgiacomo.travaglini@arm.com * New feature: the .After() clause for specifying expectation order. 9713481Sgiacomo.travaglini@arm.com * New feature: the .With() clause for for specifying inter-argument 9813481Sgiacomo.travaglini@arm.com constraints. 9913481Sgiacomo.travaglini@arm.com * New feature: actions ReturnArg<k>(), ReturnNew<T>(...), and 10013481Sgiacomo.travaglini@arm.com DeleteArg<k>(). 10113481Sgiacomo.travaglini@arm.com * New feature: matchers Key(), Pair(), Args<...>(), AllArgs(), IsNull(), 10213481Sgiacomo.travaglini@arm.com and Contains(). 10313481Sgiacomo.travaglini@arm.com * New feature: utility class MockFunction<F>, useful for checkpoints, etc. 10413481Sgiacomo.travaglini@arm.com * New feature: functions Value(x, m) and SafeMatcherCast<T>(m). 10513481Sgiacomo.travaglini@arm.com * New feature: copying a mock object is rejected at compile time. 10613481Sgiacomo.travaglini@arm.com * New feature: a script for fusing all Google Mock and Google Test 10713481Sgiacomo.travaglini@arm.com source files for easy deployment. 10813481Sgiacomo.travaglini@arm.com * Improved the Google Mock doctor to diagnose more diseases. 10913481Sgiacomo.travaglini@arm.com * Improved the Google Mock generator script. 11013481Sgiacomo.travaglini@arm.com * Compatibility fixes for Mac OS X and gcc. 11113481Sgiacomo.travaglini@arm.com * Bug fixes and implementation clean-ups. 11213481Sgiacomo.travaglini@arm.com 11313481Sgiacomo.travaglini@arm.comChanges for 1.1.0: 11413481Sgiacomo.travaglini@arm.com 11513481Sgiacomo.travaglini@arm.com * New feature: ability to use Google Mock with any testing framework. 11613481Sgiacomo.travaglini@arm.com * New feature: macros for easily defining new matchers 11713481Sgiacomo.travaglini@arm.com * New feature: macros for easily defining new actions. 11813481Sgiacomo.travaglini@arm.com * New feature: more container matchers. 11913481Sgiacomo.travaglini@arm.com * New feature: actions for accessing function arguments and throwing 12013481Sgiacomo.travaglini@arm.com exceptions. 12113481Sgiacomo.travaglini@arm.com * Improved the Google Mock doctor script for diagnosing compiler errors. 12213481Sgiacomo.travaglini@arm.com * Bug fixes and implementation clean-ups. 12313481Sgiacomo.travaglini@arm.com 12413481Sgiacomo.travaglini@arm.comChanges for 1.0.0: 12513481Sgiacomo.travaglini@arm.com 12613481Sgiacomo.travaglini@arm.com * Initial Open Source release of Google Mock 127