zhanyong.wan
c10a35a26a
Fixes some compatibility issues with STLport.
12 years ago
zhanyong.wan
a9a59e06dd
Makes WhenSorted() support associative containers (by billydonahue@google.com).
12 years ago
zhanyong.wan
1f122a06e6
Adds special support for matching StringPiece. Pulls in gtest r646.
12 years ago
zhanyong.wan
a1a98f840e
Adds a cmake target for gmock_ex_test; also fixes name shadowing warnings.
12 years ago
zhanyong.wan
c896504e41
Improves the tests for nice, naggy, and strict mocks.
12 years ago
zhanyong.wan
20d1a235bc
Allows the return type of a mock method to contain unprotected commas.
12 years ago
zhanyong.wan
29be92385e
Removes unused variables and functions.
12 years ago
zhanyong.wan
844fa94976
Implements NaggyMock.
12 years ago
zhanyong.wan
a31d9ce290
Implements matcher SizeIs().
12 years ago
zhanyong.wan
320814aca0
Implements matcher IsEmpty(); also pulls in gtest r643.
12 years ago
zhanyong.wan
edd4ab4945
Makes googlemock throw a runtime_error instead of abort when a mock
...
method with no default value is invoked (if exceptions are enabled).
12 years ago
jgm
38513a8bb1
Unfortunately, the svn repo is a bit out of date. This commit contains 8
...
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.
12 years ago
vladlosev
ada23475e2
Makes gmock's Pointee() work for optional<T> (by Jeffrey Yasskin).
13 years ago
zhanyong.wan
2fd619edd3
Pulls in gtest r615.
...
Renames internal enums to the kFoo naming style.
Fixes gmock doctor to work with newer versions of Clang.
13 years ago
jgm
79a367eb21
Reduced template instantiation depth for the AllOf and AnyOf matchers. Also some formatting changes.
13 years ago
vladlosev
9bcb5f9146
Fixes a lock reentrancy when destroying a mock causes destruction of another mock (issue 79) (by Aaron Jacobs).
14 years ago
zhanyong.wan
898725cf47
Implements matchers WhenSorted() and WhenSortedBy(); pulls in gtest r595.
14 years ago
vladlosev
587c1b37c2
Adds support for building Google Mock as a shared library (DLL).
14 years ago
vladlosev
47be72a952
A test to verify correcteness of Google Mock on multiple threads.
14 years ago
zhanyong.wan
8d3dc0cdd8
simplifies TrulyMatcher and adds a test for it
14 years ago
vladlosev
aa43220fe5
Changes diagnostic output of the question mark from '\?' to '?'.
14 years ago
zhanyong.wan
86d2eeb112
Prevents ADL in AllOf() and AnyOf() (by Manuel Klimek).
14 years ago
zhanyong.wan
fc8c6c479a
Disables SetArgPointee("string literal") for GCC 4.0- and Symbian, and
...
adds support for SetArgPointee(L"wide string literal") -- by Vlad Losev.
14 years ago
zhanyong.wan
658ac0b71a
Indents preprocessor directives.
14 years ago
zhanyong.wan
ed6c9277bb
Makes Google Mock compile much faster and use much less memory; reviewed by Nico Weber. This fixes issue 68.
14 years ago
vladlosev
e5121b5a82
Improves cross-platform compatibility of gmock output. This fixes issue 135.
14 years ago
zhanyong.wan
a684b5a526
Enables SetArgPointee<>() to accept a string literal; removes a self-assignment warning; teaches gmock doctor to diagnose TTB with Clang; picks up gtest r525.
14 years ago
zhanyong.wan
2321b2a675
Adds action SaveArgPointee.
15 years ago
zhanyong.wan
5921483640
Adds SetArgPointee to replace SetArgumentPointee.
15 years ago
zhanyong.wan
736baa8ac0
Prints the type of the actual value as part of a match message when appropriate.
15 years ago
zhanyong.wan
53e08c44dd
Include gtest and gmock headers as user headers instead of system headers.
15 years ago
zhanyong.wan
2516f60da9
Publishes GTEST_HAS_STREAM_REDIRECTION (by Vlad Losev); casts char to unsigned char before calling isspace() etc to avoid undefined behavior (by Zhanyong Wan); fixes the VC projects (by Fredrik Roubert).
15 years ago
zhanyong.wan
c6333dca1c
Picks up gtest r453.
15 years ago
zhanyong.wan
d60c5f41c2
Removes unused scons scripts; picks up gtest r446.
15 years ago
zhanyong.wan
e3bd0981ca
Implements ReturnPointee() and ReturnRefOfCopy().
15 years ago
zhanyong.wan
02c1505ebf
Increases the maximum arity of AllOf() and AnyOf() to 10, by Marcus Börger.
15 years ago
zhanyong.wan
b4140808f9
Replaces Python-style interpolation with arbitrary C++ string expression in MATCHER* descriptions.
15 years ago
zhanyong.wan
ab5b77c179
Implements Pointwise().
15 years ago
vladlosev
e2e8ba401d
Renames test script flags.
15 years ago
zhanyong.wan
02f7106557
Moves the universal printer from gmock to gtest (by Vlad Losev).
15 years ago
vladlosev
76c1c612e2
Fixes tests leaking altered values of GMOCK_FLAG(verbose) (issue 110).
15 years ago
vladlosev
54af9ba50a
Adds a synchronization test.
15 years ago
zhanyong.wan
33605ba454
Adds Each(m) (by Wojtek Moczydlowski); removes scripts/test/Makefile (by Zhanyong Wan); pulls in gtest r424.
15 years ago
zhanyong.wan
b1c7f93c52
Improves matcher messages across the board.
15 years ago
zhanyong.wan
676e8cc609
Fixes the explanation generated by many composite matchers (by Manuel Klimek); publishes the gmock value printer as testing::PrintToString() (by Zhanyong Wan).
15 years ago
zhanyong.wan
a862f1de30
Adds IsInterested() to MatchResultListener; clarifies the format of matcher description and match result explanation; renames the free function MatchAndExplain() to ExplainMatchResult() to avoid it being hidden inside a MATCHER* definition.
15 years ago
zhanyong.wan
34b034c21e
Adds a free function MatchAndExplain().
15 years ago
zhanyong.wan
470df42bad
Enables tests depending on stdout capturing (by Vlad Losev).
15 years ago
zhanyong.wan
db22c22782
BREAKING CHANGE: drops the old matcher API. See http://code.google.com/p/googlemock/wiki/FrequentlyAskedQuestions for details.
15 years ago
zhanyong.wan
d14aaed74b
Enables regex matchers on all platforms.
15 years ago