aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Unfortunately, the svn repo is a bit out of date. This commit contains 8jgm2012-11-151-192/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* added defines for iOSjgm2012-07-091-1/+1
|
* Improves gtest's failure messages. In particulars, char pointers andzhanyong.wan2012-06-071-28/+8
| | | | char arrays are not escapped properly.
* Fixes threading annotations and compatibility with C++11, which doesn'tzhanyong.wan2012-05-311-2/+2
| | | | | allow exepctions to be thrown in a destructor.
* Adds file and line information to the "message", which is used as the summaryjgm2012-01-171-7/+8
| | | | of a failure.
* Improves conformance to the Google C++ Style Guide (by Greg Miller).vladlosev2011-11-041-2/+0
|
* Expressed the thread-safety annotations in code, replacing the existing ↵vladlosev2011-10-241-25/+26
| | | | comment-based system (by Aaron Jacobs).
* Implements the timestamp attribute for the testsuites element in the output ↵vladlosev2011-10-051-1/+37
| | | | XML (external contribution by Dirk Meister).
* Simplifies the implementatoin of the test result printer; by Ulfar Erlingssonzhanyong.wan2011-09-161-8/+4
|
* Adds support for building Google Mock as a shared library (DLL).vladlosev2011-05-201-2/+2
|
* makes gtest compatible with HP UX (by Pasi Valminen); fixes a typo in the ↵zhanyong.wan2011-04-071-1/+1
| | | | name of xlC (by Hady Zalek).
* Fixes 'formatting error or buffer exceeded' error when outputting long ↵vladlosev2011-03-301-17/+13
| | | | failure messages in XML.
* Fixes compatibility with Sun C++ (by Hady Zalek); fixes compatibilityzhanyong.wan2011-03-111-3/+3
| | | | with Android (by Zachary Vorhies).
* Fixes compatibility with Borland C++Builder. Original patch by Joshzhanyong.wan2011-03-051-1/+1
| | | | Kelley. Simplified by Zhanyong Wan.
* Indents preprocessor directives.zhanyong.wan2011-02-221-53/+68
|
* Fixes off-by-one error in a message about test sharding (by David Glasser).vladlosev2011-02-121-2/+3
|
* Adds null check for file locations in XML output printer.vladlosev2011-02-021-2/+3
|
* Adds type_param and value_param as <testcase> attributes to the XMLzhanyong.wan2011-02-021-26/+47
| | | | | | report; also removes the comment() and test_case_comment() fields of TestInfo. Proposed and initally implemented by Joey Oravec. Re-implemented by Vlad Losev.
* template selection error in IBM's xIC_r compiler.vladlosev2011-01-291-10/+16
|
* Changes default of --gtest_catch_exceptions to true.vladlosev2010-10-261-3/+4
|
* Fixes compiler warning when built with -std=c++0x.vladlosev2010-10-221-2/+2
|
* Removes uses of deprecated AssertionFailure() API (by Vlad Losev).zhanyong.wan2010-09-271-42/+28
|
* Allows EXPECT_FATAL_FAILURE() and friends to accept a string object as the ↵zhanyong.wan2010-09-271-4/+4
| | | | second argument.
* Include gtest headers as user headers instead of system headers.zhanyong.wan2010-09-141-2/+2
|
* Removes all uses of StrStream; fixes the VC projects and simplifies them by ↵zhanyong.wan2010-09-081-12/+12
| | | | using gtest-all.cc.
* Casts char to unsigned char before calling isspace() etc to avoid undefined ↵zhanyong.wan2010-08-311-32/+61
| | | | behavior (by Zhanyong Wan); removes conditional #includes keyed on GTEST_HAS_PROTOBUF_ (by Zhanyong Wan); publishes GTEST_HAS_STREAM_REDIRECTION (by Vlad Losev); forward declares some classes properly (by Samuel Benzaquen); honors the --gtest_catch_exceptions flag (by Vlad Losev).
* Removes the Windows golden file (by Vlad Losev); implements test result ↵zhanyong.wan2010-08-191-16/+232
| | | | streaming (by Nikhil Jindal and cleaned up by Zhanyong Wan).
* Makes gtest print enums as integers instead of hex dumps (by Zhanyong Wan); ↵zhanyong.wan2010-08-091-237/+189
| | | | improves the hex dump format (by Zhanyong Wan); gets rid of class TestInfoImpl (by Zhanyong Wan); adds exception handling (by Vlad Losev).
* Allows EXPECT_EQ to accept arguments that don't have operator << (by ↵zhanyong.wan2010-07-211-42/+0
| | | | | | | Zhanyong Wan). Allows a user to customize how the universal printer prints a pointer of a specific type by overloading << (by Zhanyong Wan). Works around a bug in Cymbian's C++ compiler (by Vlad Losev).
* Fixes warnings when built by GCC with -Wswitch-default. Original patch by ↵vladlosev2010-07-141-2/+2
| | | | Zhixu Liu (zhixu.liu@gmail.com).
* Makes gtest_break_on_failure_unittest work on minGW (by vladl); improveszhanyong.wan2010-07-081-1/+5
| | | | the NULL-dereferencing hack to work with LLVM (by chandlerc).
* Makes gtest report failures in ad hoc test assertions executed before ↵zhanyong.wan2010-06-161-1/+3
| | | | RUN_ALL_TESTS().
* Implements printing parameters of failed parameterized tests (issue 71).vladlosev2010-05-181-14/+19
|
* Implements color output in GNU Screen sessions (issue 277).vladlosev2010-04-221-0/+1
|
* Enables death tests on AIX, by Hady Zalek.zhanyong.wan2010-03-231-0/+4
|
* Fixes MSVC warnings in 64-bit mode.zhanyong.wan2010-02-251-10/+11
|
* Simplifies the implementation by using std::vector instead of Vector.zhanyong.wan2010-02-251-91/+95
|
* Adds threading support (by Miklos Fazekas, Vlad Losev, and Chandler ↵zhanyong.wan2010-02-241-1/+1
| | | | Carruth); adds wide InitGoogleTest to gtest.def (by Vlad Losev); updates the version number (by Zhanyong Wan); updates the release notes for 1.5.0 (by Vlad Losev); removes scons scripts from the distribution (by Zhanyong Wan); adds the cmake build script to the distribution (by Zhanyong Wan); adds fused source files to the distribution (by Vlad Losev and Chandler Carruth).
* Introduces macro GTEST_HAS_STREAM_REDIRECTION_ (by Vlad Losev); fixes ↵zhanyong.wan2010-01-281-3/+5
| | | | unsynchronized color text output on Windows (by Vlad Losev); fixes the cmake script to work with MSVC 10 (by Manuel Klimek).
* Implements stdout capturing (by Vlad Losev); fixes compiler error on NVCC ↵zhanyong.wan2010-01-271-0/+3
| | | | (by Zhanyong Wan).
* Changes Message() to print double with enough precision by default.zhanyong.wan2010-01-081-10/+8
|
* Removes uses of GTEST_HAS_STD_STRING.zhanyong.wan2009-12-161-14/+0
|
* Turns on -Wshadow (by Preston Jackson).zhanyong.wan2009-12-161-21/+22
|
* Exposes SkipPrefix s.t. it can be used by gmock (by Vlad Losev).zhanyong.wan2009-12-011-12/+12
|
* Prevents Google Test from printing help message upon seeing the ↵vladlosev2009-11-171-5/+7
| | | | --gtest_stack_trace_depth flag. This was breaking gmock_output_test.
* Fixes linker error when used with gMock on Windowsvladlosev2009-10-231-3/+3
|
* Prints help when encountering unrecognized Google Test flags.vladlosev2009-10-221-1/+31
|
* Implements support for AssertionResult in Boolean assertions such as ↵vladlosev2009-10-201-5/+35
| | | | EXPECT_TRUE; Fixes Google Tests's tuple implementation to default-initialize its fields in the default constructor (by Zhanyong Wan); Populates gtest_stress_test.cc with actual tests.
* Fixes: Scons build file broken when used in another SConstruct; warning in ↵vladlosev2009-10-141-1/+2
| | | | VC 8.0 when compiled with /Wp64
* Implements test shuffling (by Zhanyong Wan, based on Josh Kelley's original ↵zhanyong.wan2009-09-301-15/+91
| | | | | | patch). Enables death tests on minGW (by Vlad Losev).