aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Removes uses of GTEST_HAS_STD_STRING.zhanyong.wan2009-12-161-18/+0
|
* Moves mis-placed tests.zhanyong.wan2009-12-161-49/+0
|
* Turns on -Wshadow (by Preston Jackson).zhanyong.wan2009-12-161-5/+5
|
* Prevents Google Test from printing help message upon seeing the ↵vladlosev2009-11-171-43/+95
| | | | --gtest_stack_trace_depth flag. This was breaking gmock_output_test.
* Implements support for AssertionResult in Boolean assertions such as ↵vladlosev2009-10-201-0/+132
| | | | 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.
* Implements test shuffling (by Zhanyong Wan, based on Josh Kelley's original ↵zhanyong.wan2009-09-301-6/+295
| | | | | | patch). Enables death tests on minGW (by Vlad Losev).
* Makes gtest compile cleanly with MSVC's /W4 (by Zhanyong Wan).zhanyong.wan2009-09-301-82/+74
| | | | | | Renames EventListenrs to TestEventListeners (by Zhanyong Wan). Fixes invalid characters in XML report (by Vlad Losev). Refacotrs SConscript (by Vlad Losev).
* Publishes the even listener API (by Vlad Losev); adds OS-indicating macros ↵zhanyong.wan2009-09-241-24/+22
| | | | to simplify gtest code (by Zhanyong Wan).
* Adds a Random class to support --gtest_shuffle (by Josh Kelley); Makes the ↵zhanyong.wan2009-09-211-0/+44
| | | | scons script build in a deterministic order (by Zhanyong Wan).
* Renames the TestPartResult type enums and adjusts the order of methods in ↵zhanyong.wan2009-09-181-17/+21
| | | | the event listener interface (by Vlad Losev).
* Makes gtest compile cleanly with MSVC's warning 4511 & 4512 (copy ctor /zhanyong.wan2009-09-181-0/+2
| | | | assignment operator cannot be generated) enabled.
* Renames the methods in the event listener API, and changes the order of *End ↵zhanyong.wan2009-09-171-27/+72
| | | | events (by Vlad Losev).
* Improves EXPECT_DEATH_IF_SUPPORTED to allow streaming of messages and ↵zhanyong.wan2009-09-111-3/+1
| | | | enforcing the validity of arguments (by Vlad Losev); adds samples for the event listener API (by Vlad Losev); simplifies the tests using EXPECT_DEATH_IF_SUPPORTED (by Zhanyong Wan).
* More implementation of the event listener interface (by Vlad Losev); Reduces ↵zhanyong.wan2009-09-041-4/+335
| | | | the stack space usage of assertions by moving AssertHelper's fields to the heap (by Jorg Brown); Makes String faster, smaller, and simpler (by Zhanyong Wan); Fixes a bug in String::Format() (by Chandler); Adds the /MD version of VC projects to the distribution (by Vlad Losev).
* Enables String to contain NUL (by Zhanyong Wan); Adds scons scripts (by Vlad ↵zhanyong.wan2009-09-011-15/+139
| | | | Losev).
* Implements EXPECT_DEATH_IF_SUPPORTED (by Vlad Losev); Fixes compatibility ↵zhanyong.wan2009-08-071-29/+15
| | | | with Symbian (by Araceli Checa); Removes GetCapturedStderr()'s dependency on std::string (by Vlad Losev).
* More refactoring for the event listener API, by Vlad Losev.zhanyong.wan2009-07-161-64/+73
|
* Adds the command line flags needed for test shuffling. Most code by Josh ↵zhanyong.wan2009-07-141-3/+141
| | | | Kelley.
* Adds color support for TERM=linux (by Alexander Demin); renames List to ↵zhanyong.wan2009-07-131-54/+118
| | | | Vector (by Zhanyong Wan); implements Vector::Erase (by Vlad Losev).
* Makes List a random-access data structure. This simplifies the ↵zhanyong.wan2009-07-011-128/+182
| | | | implementation and makes it easier to implement test shuffling.
* Reduces the flakiness of gtest-port_test on Mac; improves the Python tests; ↵zhanyong.wan2009-07-011-77/+98
| | | | hides methods that we don't want to publish; makes win-dbg8 the default scons configuration (all by Vlad Losev).
* Refactors for the event listener API (by Vlad Losev): hides some methods in ↵zhanyong.wan2009-06-251-4/+3
| | | | UnitTest; implements the result printers using the public API.
* Makes gtest's tuple implementation work with Symbian 5th edition by ↵zhanyong.wan2009-06-241-9/+95
| | | | bypassing 2 compiler bugs (by Zhanyong Wan); refactors for the event listener API (by Vlad Losev).
* Fixes compatibility with Windows CE and Symbian (By Tim Baverstock and Mika).zhanyong.wan2009-06-191-0/+6
|
* Fixes broken gtest_unittest on Cygwin and cleans it up (by Vlad Losev); ↵zhanyong.wan2009-06-191-20/+12
| | | | fixes the wrong usage of os.environ.clear() in gtest_output_test.py (by Vlad Losev); fixes the logic for detecting Symbian (by Zhanyong Wan); moves TestProperty for event listener (by Vlad Losev).
* Change a few visibilities to work around a bug in g++ 3.4.2.tsunanet2009-05-181-2/+2
| | | | | | | | | | | | | | | It looks like this version of g++ is confused by the local class generated by the TEST_F macro and it can't tell that we're in a method that inherits the class we want to access. This bug causes the following kind of error: ../samples/../test/gtest_unittest.cc: In static member function `static void <unnamed>::ExpectFatalFailureTest_CatchesFatalFaliure_Test::TestBody()::GTestExpectFatalFailureHelper::Execute()': ../samples/../test/gtest_unittest.cc:799: error: `static void <unnamed>::ScopedFakeTestPartResultReporterTest::AddFailure(<unnamed>::ScopedFakeTestPartResultReporterTest::FailureMode)' is protected ../samples/../test/gtest_unittest.cc:883: error: within this context Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
* Ports gtest to C++Builder, by Josh Kelley.zhanyong.wan2009-04-281-167/+289
|
* Makes gtest print elapsed time by default.zhanyong.wan2009-04-141-5/+5
|
* Adds sample4_unittest to scons (by Vlad Losev); adds logic for getting the ↵zhanyong.wan2009-04-071-0/+85
| | | | thread count on Mac (by Vlad Losev); adds HasFailure() and HasNonfatalFailure() (by Zhanyong Wan).
* Cleans up the use of GTEST_OS_WINDOWS and _MSC_VER.zhanyong.wan2009-03-311-4/+4
|
* Implements --gtest_throw_on_failure for using gtest with other testing ↵zhanyong.wan2009-03-061-2/+69
| | | | frameworks.
* Cleans up macro definitions.zhanyong.wan2009-02-231-98/+98
|
* Adds gtest_all_test.cc. Also cleans up gtest_unittest.cc.zhanyong.wan2009-02-091-19/+0
|
* Implements the test sharding protocol. By Eric Fellheimer.zhanyong.wan2009-02-091-0/+158
|
* Fixes the definition of GTEST_HAS_EXCEPTIONS, allowing exception assertions ↵zhanyong.wan2009-02-081-27/+35
| | | | to be used with gcc.
* Adds tests for EXPECT_FATAL_FAILURE and reduces the golden file bloat (by ↵zhanyong.wan2009-02-061-16/+72
| | | | Zhanyong Wan). Fixes more warnings on Windows (by Vlad Losev).
* Exposes gtest flags to user code access. By Alexander Demin.zhanyong.wan2009-02-021-0/+19
|
* Fixes some warnings when compiled with MSVC at warning level 4.zhanyong.wan2009-01-291-6/+6
|
* Implements --gtest_also_run_disabled_tests. By Eric Roman.shiqian2009-01-101-1/+66
|
* Implements the --gtest_death_test_use_fork flag and StaticAssertTypeEq.shiqian2009-01-081-0/+59
|
* Allow Google Mock to initialize Google Testvladlosev2008-11-261-1/+67
|
* Enables the Python tests to run with 2.3 (necessary for testing on Mac OS X ↵shiqian2008-11-241-0/+28
| | | | Tiger); also fixes gtest_output_test when built with xcode.
* Value-parameterized tests and many bugfixesvladlosev2008-11-201-0/+17
|
* Many changes:shiqian2008-10-111-133/+308
| | | | | | | | | | | | - appends "_" to internal macro names (by Markus Heule). - makes Google Test work with newer versions of tools on Symbian and Windows CE (by Mika Raento). - adds the (ASSERT|EXPECT)_NO_FATAL_FAILURE macros (by Markus Heule). - changes EXPECT_(NON|)FATAL_FAILURE to catch failures in the current thread only (by Markus Heule). - adds the EXPECT_(NON|)FATAL_FAILURE_ON_ALL_THREADS macros (by Markus Heule). - adds GTEST_HAS_PTHREAD and GTEST_IS_THREADSAFE to indicate the availability of <pthread.h> and Google Test's thread-safety (by Zhanyong Wan). - adds scons/SConscript for building with scons (by Joi Sigurdsson). - adds src/gtest-all.cc for building Google Test from a single file (by Markus Heule). - updates the xcode project to include new tests (by Preston Jackson).
* Lots of changes:shiqian2008-09-261-0/+24
| | | | | | | | * changes the XML report format to match JUnit/Ant's. * improves file path handling. * allows the user to disable RTTI using the GTEST_HAS_RTTI macro. * makes the code compile with -Wswitch-enum.
* Adds suffix 'd' to gtest's libs on Windows. Also fixes gtest_unittest on ↵shiqian2008-09-131-57/+12
| | | | non-English Windows. By balazs.dan@gmail.com.
* Adds exception assertions. By balaz.dan@gmail.com.shiqian2008-09-121-0/+185
|
* Improves thread-safe death tests by changing to the original working ↵shiqian2008-09-121-1/+7
| | | | directory before they are executed; also fixes out-dated comments about death tests.
* Adds support for type-parameterized tests (by Zhanyong Wan); also adds ↵shiqian2008-09-081-1/+75
| | | | case-insensitive wide string comparison to the String class (by Vlad Losev).
* Implement wide->UTF-8 string conversion more correctlyvladlosev2008-08-251-26/+146
|