What's new in Google Mock 1.7.0
Feb 19, 2014
- All new improvements in Google Test 1.7.0.
- New feature: matchers DoubleNear(), FloatNear(), NanSensitiveDoubleNear(), NanSensitiveFloatNear(), UnorderedElementsAre(), UnorderedElementsAreArray(), WhenSorted(), WhenSortedBy(), IsEmpty(), and SizeIs().
- Improvement: Google Mock can now be built as a DLL.
- Improvement: when compiled by a C++11 compiler, matchers AllOf() and AnyOf() can accept an arbitrary number of matchers.
- Improvement: when compiled by a C++11 compiler, matchers ElementsAreArray() can accept an initializer list.
- Improvement: when exceptions are enabled, a mock method with no default action now throws instead crashing the test.
- Improvement: added class testing::StringMatchResultListener to aid definition of composite matchers.
- Improvement: function return types used in MOCK_METHOD*() macros can now contain unprotected commas.
- Improvement (potentially breaking): EXPECT_THAT() and ASSERT_THAT() are now more strict in ensuring that the value type and the matcher type are compatible, catching potential bugs in tests.
- Improvement: Pointee() now works on an optional.
- Improvement: the ElementsAreArray() matcher can now take a vector or iterator range as input, and makes a copy of its input elements before the conversion to a Matcher.
- Improvement: the Google Mock Generator can now generate mocks for some class templates.
- Bug fix: mock object destruction triggerred by another mock object's destruction no longer hangs.
- Improvement: Google Mock Doctor works better with newer Clang and GCC now.
- Compatibility fixes.
- Bug/warning fixes.