aboutsummaryrefslogtreecommitdiffstats
path: root/test/gmock-spec-builders_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* Adds a note in the "uninteresting mock method call" warning to advise people ↵kosak2014-01-121-4/+12
| | | | | | | how to handle the warning. Clarifies the purpose of utilities in gmock-port.h and adds guidance w.r.t. gmock-port.h vs gtest-port.h. Pulls in gtest r674.
* fixes the bug reported by Andrzej Jarzabek where 2 gmock tests fail when ↵zhanyong.wan2013-09-161-2/+2
| | | | built with VS
* Fixes some compatibility issues with STLport.zhanyong.wan2013-04-041-3/+3
|
* Improves the tests for nice, naggy, and strict mocks.zhanyong.wan2013-03-011-18/+22
|
* Makes googlemock throw a runtime_error instead of abort when a mockzhanyong.wan2013-02-281-92/+173
| | | | | method with no default value is invoked (if exceptions are enabled).
* Unfortunately, the svn repo is a bit out of date. This commit contains 8jgm2012-11-151-18/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fixes a lock reentrancy when destroying a mock causes destruction of another ↵vladlosev2011-10-241-1/+52
| | | | mock (issue 79) (by Aaron Jacobs).
* Indents preprocessor directives.zhanyong.wan2011-02-241-8/+11
|
* Makes Google Mock compile much faster and use much less memory; reviewed by ↵zhanyong.wan2011-02-231-4/+53
| | | | Nico Weber. This fixes issue 68.
* Improves cross-platform compatibility of gmock output. This fixes issue 135.vladlosev2011-02-111-10/+38
|
* Include gtest and gmock headers as user headers instead of system headers.zhanyong.wan2010-09-141-5/+5
|
* Publishes GTEST_HAS_STREAM_REDIRECTION (by Vlad Losev); casts char to ↵zhanyong.wan2010-08-311-8/+8
| | | | unsigned char before calling isspace() etc to avoid undefined behavior (by Zhanyong Wan); fixes the VC projects (by Fredrik Roubert).
* Picks up gtest r453.zhanyong.wan2010-08-091-1/+1
|
* Fixes tests leaking altered values of GMOCK_FLAG(verbose) (issue 110).vladlosev2010-05-051-15/+21
|
* Adds a synchronization test.vladlosev2010-05-041-2/+16
|
* Enables tests depending on stdout capturing (by Vlad Losev).zhanyong.wan2010-02-021-77/+82
|
* Enables regex matchers on all platforms.zhanyong.wan2010-01-141-13/+14
|
* Fixes a slew of compiler warnings and turns on "warning as error" in the ↵zhanyong.wan2009-12-231-1/+39
| | | | scons build.
* Enables more verbose output for expectations (by Sverre Sundsdal); Fixes ↵vladlosev2009-10-211-34/+40
| | | | information loss warning when compiled by VC8.0 with /Wp64; Skips two tests on Windows Mobile that don't work there.
* Picks up gtest r314.zhanyong.wan2009-09-181-1/+1
|
* Simplifies the tests using EXPECT_DEATH_IF_SUPPORTED.zhanyong.wan2009-09-111-28/+8
|
* Adds mutable_impl() and impl() to PolymorphicMatcher (by Zhanyong Wan); ↵zhanyong.wan2009-08-311-9/+9
| | | | Enables gMock to compile with VC 7.1 (by Vlad Losev).
* Removes duplicated definition of SetArgumentPointee (by Vlad Losev); Makes ↵zhanyong.wan2009-08-071-0/+15
| | | | gmock compilable on platforms that don't have ::abort() (by Acadeli Checa); Fixes compatibility with Symbian's STLport (by Acadeli Checa).
* Implements Expectation, ExpectationSet, and After for specifying expectation ↵zhanyong.wan2009-07-011-2/+320
| | | | orders.
* Makes gmock-spec-builders_test.cc and gmock-internal-utils_test.cc work ↵zhanyong.wan2009-06-221-1/+10
| | | | where both ::string and ::std::string are defined.
* Removes the .WithArguments() clause from ON_CALL and EXPECT_CALL.zhanyong.wan2009-06-111-28/+0
|
* Implements .With() as a synonym of .WithArguments(); implements AllArgs(m) ↵zhanyong.wan2009-06-091-20/+47
| | | | as a synonym of m; relies on gtest-port to #include tuple; fixes a compatibility with Symbian.
* Avoids unnecessary printing of call into to internal buffers;zhanyong.wan2009-05-291-0/+47
| | | | | | Made the universal value printer safer when printing char[]; Removed duplicated code in InvokeWith; Improved gmock_doctor.py.
* Implements --gmock_catch_leaked_mocks and Mock::AllowLeak.zhanyong.wan2009-04-221-0/+48
|
* Allows a mock object to delete itself in an action. By Simon Bowden.zhanyong.wan2009-03-031-2/+19
|
* Cleans up macro definitions.zhanyong.wan2009-02-231-3/+3
|
* Improves error messages for undefined return value (by Sverre Sundsdal); ↵zhanyong.wan2009-01-271-0/+12
| | | | improves gmock_doctor.
* Initial drop of Google Mock. The files are incomplete and thus may not ↵shiqian2008-12-101-0/+1889
build correctly yet.