summaryrefslogtreecommitdiff
path: root/test/gtest_unittest.cc
Commit message (Collapse)AuthorAge
* Implements support for calling Test::RecordProperty() outside of a test.vladlosev2013-04-05
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@648 861a406c-534a-0410-8894-cb66d6ee9925
* Fixes some compatibility issues with STLport.zhanyong.wan2013-04-04
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@647 861a406c-534a-0410-8894-cb66d6ee9925
* Supports colored output on term type screen-256color.zhanyong.wan2013-03-11
| | | | | | | | | Proposed as a one-line patch by Tom Jakubowski (tom@crystae.net); finished by Zhanyong Wan. git-svn-id: http://googletest.googlecode.com/svn/trunk@644 861a406c-534a-0410-8894-cb66d6ee9925
* Fixes gUnit streaming output format.kosak@google.com2013-02-22
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@637 861a406c-534a-0410-8894-cb66d6ee9925
* Removes testing::internal::String::Format(), which causes problems as it ↵kosak@google.com2013-02-22
| | | | | | truncates the result at 4096 chars. Also update an obsolete link in comment. git-svn-id: http://googletest.googlecode.com/svn/trunk@636 861a406c-534a-0410-8894-cb66d6ee9925
* Unfortunately, the svn repo is a bit out of date. This commit contains 8jgm@google.com2012-11-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: http://googletest.googlecode.com/svn/trunk@628 861a406c-534a-0410-8894-cb66d6ee9925
* Improves Android support (by David Turner).vladlosev2012-09-19
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@625 861a406c-534a-0410-8894-cb66d6ee9925
* Improves gtest's failure messages. In particulars, char pointers andzhanyong.wan2012-06-07
| | | | | | | char arrays are not escapped properly. git-svn-id: http://googletest.googlecode.com/svn/trunk@616 861a406c-534a-0410-8894-cb66d6ee9925
* Misc small updates to some debug death code, and to messages streaming to macrosjgm@google.com2012-03-09
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@612 861a406c-534a-0410-8894-cb66d6ee9925
* Improves conformance to the Google C++ Style Guide (by Greg Miller).vladlosev2011-11-04
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@607 861a406c-534a-0410-8894-cb66d6ee9925
* Implements the timestamp attribute for the testsuites element in the output ↵vladlosev2011-10-05
| | | | | | XML (external contribution by Dirk Meister). git-svn-id: http://googletest.googlecode.com/svn/trunk@600 861a406c-534a-0410-8894-cb66d6ee9925
* Removes commas from last items in enums (a C++ standard compliance fix).vladlosev2011-04-08
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@564 861a406c-534a-0410-8894-cb66d6ee9925
* makes gtest compatible with HP UX (by Pasi Valminen); fixes a typo in the ↵zhanyong.wan2011-04-07
| | | | | | name of xlC (by Hady Zalek). git-svn-id: http://googletest.googlecode.com/svn/trunk@563 861a406c-534a-0410-8894-cb66d6ee9925
* Fixes compatibility with Borland C++Builder. Original patch by Joshzhanyong.wan2011-03-05
| | | | | | | Kelley. Simplified by Zhanyong Wan. git-svn-id: http://googletest.googlecode.com/svn/trunk@553 861a406c-534a-0410-8894-cb66d6ee9925
* Fixes non-conforming uses of commas in enums s.t. the code compiles onzhanyong.wan2011-03-05
| | | | | | | Sun OS. Patch by Hady Zalek. git-svn-id: http://googletest.googlecode.com/svn/trunk@552 861a406c-534a-0410-8894-cb66d6ee9925
* Indents preprocessor directives.zhanyong.wan2011-02-22
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@544 861a406c-534a-0410-8894-cb66d6ee9925
* Fixes GCC 4.6 warnings (patch by Jeffrey Yasskin).zhanyong.wan2011-01-10
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@531 861a406c-534a-0410-8894-cb66d6ee9925
* Suppresses self-assignment warnings.zhanyong.wan2011-01-07
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@529 861a406c-534a-0410-8894-cb66d6ee9925
* Fixes compiler warning when built with -std=c++0x.vladlosev2010-10-22
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@503 861a406c-534a-0410-8894-cb66d6ee9925
* Makes gtest wokr on MinGW (by Vlad Losev); removes unused ↵zhanyong.wan2010-10-11
| | | | | | linked_ptr::release() method (by Zhanyong Wan). git-svn-id: http://googletest.googlecode.com/svn/trunk@492 861a406c-534a-0410-8894-cb66d6ee9925
* Allows EXPECT_FATAL_FAILURE() and friends to accept a string object as the ↵zhanyong.wan2010-09-27
| | | | | | second argument. git-svn-id: http://googletest.googlecode.com/svn/trunk@485 861a406c-534a-0410-8894-cb66d6ee9925
* Implements GTEST_ASSERT_XY as alias of ASSERT_XY.zhanyong.wan2010-09-15
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@484 861a406c-534a-0410-8894-cb66d6ee9925
* Include gtest headers as user headers instead of system headers.zhanyong.wan2010-09-14
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@482 861a406c-534a-0410-8894-cb66d6ee9925
* Casts char to unsigned char before calling isspace() etc to avoid undefined ↵zhanyong.wan2010-08-31
| | | | | | 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). git-svn-id: http://googletest.googlecode.com/svn/trunk@480 861a406c-534a-0410-8894-cb66d6ee9925
* Removes the Windows golden file (by Vlad Losev); implements test result ↵zhanyong.wan2010-08-19
| | | | | | streaming (by Nikhil Jindal and cleaned up by Zhanyong Wan). git-svn-id: http://googletest.googlecode.com/svn/trunk@478 861a406c-534a-0410-8894-cb66d6ee9925
* Makes gtest print enums as integers instead of hex dumps (by Zhanyong Wan); ↵zhanyong.wan2010-08-09
| | | | | | improves the hex dump format (by Zhanyong Wan); gets rid of class TestInfoImpl (by Zhanyong Wan); adds exception handling (by Vlad Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@453 861a406c-534a-0410-8894-cb66d6ee9925
* Adds ADD_FAILURE_AT (by Zhanyong Wan); disables -Wswitch-default (by Vlad ↵zhanyong.wan2010-07-26
| | | | | | Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@451 861a406c-534a-0410-8894-cb66d6ee9925
* Allows EXPECT_EQ to accept arguments that don't have operator << (by ↵zhanyong.wan2010-07-21
| | | | | | | | | | 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). git-svn-id: http://googletest.googlecode.com/svn/trunk@446 861a406c-534a-0410-8894-cb66d6ee9925
* Adds tests for SkipPrefix().zhanyong.wan2010-06-08
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@440 861a406c-534a-0410-8894-cb66d6ee9925
* Adds GTEST_REMOVE_REFERENCE_AND_CONST_.zhanyong.wan2010-05-17
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@433 861a406c-534a-0410-8894-cb66d6ee9925
* Moves the universal printer from gmock to gtest and refactors the cmake ↵zhanyong.wan2010-05-10
| | | | | | script for reusing in gmock (by Vlad Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@425 861a406c-534a-0410-8894-cb66d6ee9925
* Implements color output in GNU Screen sessions (issue 277).vladlosev2010-04-22
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@421 861a406c-534a-0410-8894-cb66d6ee9925
* Adds alternative spellings for FAIL, SUCCEED, and TEST.zhanyong.wan2010-04-13
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@414 861a406c-534a-0410-8894-cb66d6ee9925
* C++ Builder compatibility patch by Josh Kelley.vladlosev2010-04-07
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@410 861a406c-534a-0410-8894-cb66d6ee9925
* Adds missing gtest DLL exports.zhanyong.wan2010-03-22
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@399 861a406c-534a-0410-8894-cb66d6ee9925
* Solaris and AIX patch by Hady Zalekvladlosev2010-03-17
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@395 861a406c-534a-0410-8894-cb66d6ee9925
* Renames ThreadStartSempahore to Notificaton (by Vlad Losev); adds threading ↵zhanyong.wan2010-03-04
| | | | | | tests for SCOPED_TRACE() (by Vlad Losev); replaces native pthread calls with gtest's threading constructs (by Vlad Losev); fixes flakiness in CountedDestructor (by Vlad Losev); minor MSVC 7.1 clean-up (by Zhanyong Wan). git-svn-id: http://googletest.googlecode.com/svn/trunk@386 861a406c-534a-0410-8894-cb66d6ee9925
* Fixes MSVC warnings in 64-bit mode.zhanyong.wan2010-02-25
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@379 861a406c-534a-0410-8894-cb66d6ee9925
* Simplifies the implementation by using std::vector instead of Vector.zhanyong.wan2010-02-25
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@377 861a406c-534a-0410-8894-cb66d6ee9925
* Adds threading support (by Miklos Fazekas, Vlad Losev, and Chandler ↵zhanyong.wan2010-02-24
| | | | | | 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). git-svn-id: http://googletest.googlecode.com/svn/trunk@376 861a406c-534a-0410-8894-cb66d6ee9925
* Adds Solaris support (by Hady Zalek)vladlosev2010-02-03
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@371 861a406c-534a-0410-8894-cb66d6ee9925
* Introduces macro GTEST_HAS_STREAM_REDIRECTION_ (by Vlad Losev); fixes ↵zhanyong.wan2010-01-28
| | | | | | unsynchronized color text output on Windows (by Vlad Losev); fixes the cmake script to work with MSVC 10 (by Manuel Klimek). git-svn-id: http://googletest.googlecode.com/svn/trunk@369 861a406c-534a-0410-8894-cb66d6ee9925
* Changes Message() to print double with enough precision by default.zhanyong.wan2010-01-08
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@365 861a406c-534a-0410-8894-cb66d6ee9925
* Removes uses of GTEST_HAS_STD_STRING.zhanyong.wan2009-12-16
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@353 861a406c-534a-0410-8894-cb66d6ee9925
* Moves mis-placed tests.zhanyong.wan2009-12-16
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@351 861a406c-534a-0410-8894-cb66d6ee9925
* Turns on -Wshadow (by Preston Jackson).zhanyong.wan2009-12-16
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@350 861a406c-534a-0410-8894-cb66d6ee9925
* Prevents Google Test from printing help message upon seeing the ↵vladlosev2009-11-17
| | | | | | --gtest_stack_trace_depth flag. This was breaking gmock_output_test. git-svn-id: http://googletest.googlecode.com/svn/trunk@342 861a406c-534a-0410-8894-cb66d6ee9925
* Implements support for AssertionResult in Boolean assertions such as ↵vladlosev2009-10-20
| | | | | | 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. git-svn-id: http://googletest.googlecode.com/svn/trunk@331 861a406c-534a-0410-8894-cb66d6ee9925
* Implements test shuffling (by Zhanyong Wan, based on Josh Kelley's original ↵zhanyong.wan2009-09-30
| | | | | | | | | patch). Enables death tests on minGW (by Vlad Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@322 861a406c-534a-0410-8894-cb66d6ee9925
* Makes gtest compile cleanly with MSVC's /W4 (by Zhanyong Wan).zhanyong.wan2009-09-30
| | | | | | | | | Renames EventListenrs to TestEventListeners (by Zhanyong Wan). Fixes invalid characters in XML report (by Vlad Losev). Refacotrs SConscript (by Vlad Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@321 861a406c-534a-0410-8894-cb66d6ee9925