aboutsummaryrefslogtreecommitdiffstats
path: root/test/gmock-internal-utils_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* Unfortunately, the svn repo is a bit out of date. This commit contains 8jgm2012-11-151-12/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Pulls in gtest r615.zhanyong.wan2012-05-311-17/+17
| | | | | | Renames internal enums to the kFoo naming style. Fixes gmock doctor to work with newer versions of Clang.
* Indents preprocessor directives.zhanyong.wan2011-02-241-4/+7
|
* 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-4/+4
| | | | unsigned char before calling isspace() etc to avoid undefined behavior (by Zhanyong Wan); fixes the VC projects (by Fredrik Roubert).
* Moves the universal printer from gmock to gtest (by Vlad Losev).zhanyong.wan2010-05-101-307/+2
|
* Fixes tests leaking altered values of GMOCK_FLAG(verbose) (issue 110).vladlosev2010-05-051-0/+2
|
* Enables tests depending on stdout capturing (by Vlad Losev).zhanyong.wan2010-02-021-29/+27
|
* Fixes a slew of compiler warnings and turns on "warning as error" in the ↵zhanyong.wan2009-12-231-7/+7
| | | | scons build.
* Makes gmock work on Symbian (both 3rd & 5th editions), original patch ↵zhanyong.wan2009-09-251-1/+2
| | | | contributed by Mika Raento.
* Simplifies the definition of NativeArray. Works around a VC bug in ↵zhanyong.wan2009-09-161-26/+11
| | | | StrictMock & NiceMock.
* Simplifies the tests using EXPECT_DEATH_IF_SUPPORTED.zhanyong.wan2009-09-111-6/+2
|
* Improves protobuf print format.zhanyong.wan2009-08-141-0/+7
|
* 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.
* Switches from Boost TR1 tuple to gtest's TR1 tuple.zhanyong.wan2009-06-171-2/+4
|
* Implements the Args<k1, ..., kn>(m) matcher.zhanyong.wan2009-06-091-1/+1
|
* Makes all container matchers work with (possibly multi-dimensional) native ↵zhanyong.wan2009-06-041-0/+231
| | | | arrays; makes Contains() accept a matcher; adds Value(x, m); improves gmock doctor to diagnose the Type in Template Base disease.
* Avoids unnecessary printing of call into to internal buffers;zhanyong.wan2009-05-291-0/+28
| | | | | | Made the universal value printer safer when printing char[]; Removed duplicated code in InvokeWith; Improved gmock_doctor.py.
* Finishes SafeMatcherCast by catching lossy arithmetic conversions at ↵zhanyong.wan2009-05-141-2/+144
| | | | compile-time; uses ACTION_TEMPLATE to simplify the definition of many actions; makes mock object uncopyable; teaches gmock doctor about wrong MOCK_METHODn.
* Cleans up macro definitions.zhanyong.wan2009-02-231-1/+1
|
* Makes sure all internal macros are named GMOCK_*_. No functionality is changed.zhanyong.wan2009-02-191-12/+13
|
* Implements the MATCHER* macros.zhanyong.wan2009-02-121-0/+34
|
* Initial drop of Google Mock. The files are incomplete and thus may not ↵shiqian2008-12-101-0/+521
build correctly yet.