aboutsummaryrefslogtreecommitdiffstats
path: root/test/gmock-matchers_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* Implements matcher SizeIs().zhanyong.wan2013-03-011-0/+59
|
* Implements matcher IsEmpty(); also pulls in gtest r643.zhanyong.wan2013-03-011-0/+34
|
* Unfortunately, the svn repo is a bit out of date. This commit contains 8jgm2012-11-151-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changes that haven't made it to svn. The descriptions of each change are listed below. - Fixes some python shebang lines. - Add ElementsAreArray overloads to gmock. ElementsAreArray now makes a copy of its input elements before the conversion to a Matcher. ElementsAreArray can now take a vector as input. ElementsAreArray can now take an iterator pair as input. - Templatize MatchAndExplain to allow independent string types for the matcher and matchee. I also templatized the ConstCharPointer version of MatchAndExplain to avoid calls with "char*" from using the new templated MatchAndExplain. - Fixes the bug where the constructor of the return type of ElementsAre() saves a reference instead of a copy of the arguments. - Extends ElementsAre() to accept arrays whose sizes aren't known. - Switches gTest's internal FilePath class from testing::internal::String to std::string. testing::internal::String was introduced when gTest couldn't depend on std::string. It's now deprecated. - Switches gTest & gMock from using testing::internal::String objects to std::string. Some static methods of String are still in use. We may be able to remove some but not all of them. In particular, String::Format() should eventually be removed as it truncates the result at 4096 characters, often causing problems.
* Makes gmock's Pointee() work for optional<T> (by Jeffrey Yasskin).vladlosev2012-08-141-0/+32
|
* Reduced template instantiation depth for the AllOf and AnyOf matchers. Also ↵jgm2012-04-101-24/+68
| | | | some formatting changes.
* Implements matchers WhenSorted() and WhenSortedBy(); pulls in gtest r595.zhanyong.wan2011-09-161-0/+81
|
* Adds support for building Google Mock as a shared library (DLL).vladlosev2011-05-201-1/+1
|
* simplifies TrulyMatcher and adds a test for itzhanyong.wan2011-04-141-0/+23
|
* Changes diagnostic output of the question mark from '\?' to '?'.vladlosev2011-04-011-6/+6
|
* Prints the type of the actual value as part of a match message when appropriate.zhanyong.wan2010-09-271-28/+73
|
* Include gtest and gmock headers as user headers instead of system headers.zhanyong.wan2010-09-141-4/+4
|
* Removes unused scons scripts; picks up gtest r446.zhanyong.wan2010-07-211-2/+2
|
* Increases the maximum arity of AllOf() and AnyOf() to 10, by Marcus Börger.zhanyong.wan2010-06-091-0/+51
|
* Replaces Python-style interpolation with arbitrary C++ string expression in ↵zhanyong.wan2010-06-081-285/+6
| | | | MATCHER* descriptions.
* Implements Pointwise().zhanyong.wan2010-05-171-40/+164
|
* Adds Each(m) (by Wojtek Moczydlowski); removes scripts/test/Makefile (by ↵zhanyong.wan2010-04-221-7/+95
| | | | Zhanyong Wan); pulls in gtest r424.
* Improves matcher messages across the board.zhanyong.wan2010-03-241-124/+313
|
* Fixes the explanation generated by many composite matchers (by Manuel ↵zhanyong.wan2010-03-161-37/+67
| | | | Klimek); publishes the gmock value printer as testing::PrintToString() (by Zhanyong Wan).
* Adds IsInterested() to MatchResultListener; clarifies the format of matcher ↵zhanyong.wan2010-03-151-8/+45
| | | | description and match result explanation; renames the free function MatchAndExplain() to ExplainMatchResult() to avoid it being hidden inside a MATCHER* definition.
* Adds a free function MatchAndExplain().zhanyong.wan2010-03-051-2/+26
|
* BREAKING CHANGE: drops the old matcher API. See ↵zhanyong.wan2010-01-281-31/+30
| | | | http://code.google.com/p/googlemock/wiki/FrequentlyAskedQuestions for details.
* Enables regex matchers on all platforms.zhanyong.wan2010-01-141-9/+4
|
* Allows Field() and Property() to work when the matcher argument is a pointer ↵zhanyong.wan2010-01-131-0/+23
| | | | passed by reference.
* Implements the new matcher API.zhanyong.wan2010-01-081-16/+129
|
* Fixes a slew of compiler warnings and turns on "warning as error" in the ↵zhanyong.wan2009-12-231-9/+22
| | | | scons build.
* Tests NotNull/IsNull with testing::internal::scoped_ptr.vladlosev2009-11-181-0/+19
|
* Updates IsNull and NotNull matchers to work with smart pointers.vladlosev2009-11-181-0/+37
|
* Makes gmock work on Symbian (both 3rd & 5th editions), original patch ↵zhanyong.wan2009-09-251-16/+39
| | | | contributed by Mika Raento.
* Adds the IsNull() matcher.zhanyong.wan2009-09-241-0/+27
|
* Adds new matcher Pair(). Replaces GMOCK_CHECK_ with GTEST_CHECK_ (by Vlad ↵zhanyong.wan2009-09-161-29/+115
| | | | Losev).
* Simplifies the tests using EXPECT_DEATH_IF_SUPPORTED.zhanyong.wan2009-09-111-3/+1
|
* Adds mutable_impl() and impl() to PolymorphicMatcher (by Zhanyong Wan); ↵zhanyong.wan2009-08-311-12/+38
| | | | Enables gMock to compile with VC 7.1 (by Vlad Losev).
* Adds the Key() matcher, by Marcus Borger.zhanyong.wan2009-07-161-0/+49
|
* Implements .With() as a synonym of .WithArguments(); implements AllArgs(m) ↵zhanyong.wan2009-06-091-0/+30
| | | | as a synonym of m; relies on gtest-port to #include tuple; fixes a compatibility with Symbian.
* Implements the Args<k1, ..., kn>(m) matcher.zhanyong.wan2009-06-091-11/+10
|
* Makes all container matchers work with (possibly multi-dimensional) native ↵zhanyong.wan2009-06-041-3/+75
| | | | arrays; makes Contains() accept a matcher; adds Value(x, m); improves gmock doctor to diagnose the Type in Template Base disease.
* Finishes SafeMatcherCast by catching lossy arithmetic conversions at ↵zhanyong.wan2009-05-141-6/+11
| | | | compile-time; uses ACTION_TEMPLATE to simplify the definition of many actions; makes mock object uncopyable; teaches gmock doctor about wrong MOCK_METHODn.
* Partially implemented SafeMatcherCast (by Vlad Losev); updated the ↵zhanyong.wan2009-05-111-3/+110
| | | | implementation of Not, AnyOf, and AllOf to use SafeMatcherCast (by Vlad Losev); implemented ACTION_TEMPLATE (by Zhanyong Wan); worked around bugs on Symbian (by Zhanyong Wan).
* Cleans up macro definitions.zhanyong.wan2009-02-231-1/+1
|
* Implements custom description string for MATCHER*.zhanyong.wan2009-02-191-0/+314
|
* Implements ContainerEq.zhanyong.wan2009-01-161-1/+145
|
* Initial drop of Google Mock. The files are incomplete and thus may not ↵shiqian2008-12-101-0/+2629
build correctly yet.