summaryrefslogtreecommitdiff
path: root/src/gtest-internal-inl.h
Commit message (Collapse)AuthorAge
* When --gtest_filter is specified, XML report now doesn't contain information ↵vladlosev2013-04-25
| | | | | | about tests that are filtered out (issue 141). git-svn-id: http://googletest.googlecode.com/svn/trunk@654 861a406c-534a-0410-8894-cb66d6ee9925
* 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
* Removes an unused variable; also refactors to support an up-comingzhanyong.wan2013-02-28
| | | | | | | googlemock change. git-svn-id: http://googletest.googlecode.com/svn/trunk@640 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
* Adds file and line information to the "message", which is used as the summaryjgm@google.com2012-01-17
| | | | | | | of a failure. git-svn-id: http://googletest.googlecode.com/svn/trunk@609 861a406c-534a-0410-8894-cb66d6ee9925
* Removes spurious semicolon.vladlosev2011-11-28
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@608 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
* Expressed the thread-safety annotations in code, replacing the existing ↵vladlosev2011-10-24
| | | | | | comment-based system (by Aaron Jacobs). git-svn-id: http://googletest.googlecode.com/svn/trunk@604 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
* Fixes Sun C++ compiler errors (by Pasi Valminen)zhanyong.wan2011-04-12
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@569 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
* Adds type_param and value_param as <testcase> attributes to the XMLzhanyong.wan2011-02-02
| | | | | | | | | report; also removes the comment() and test_case_comment() fields of TestInfo. Proposed and initally implemented by Joey Oravec. Re-implemented by Vlad Losev. git-svn-id: http://googletest.googlecode.com/svn/trunk@537 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
* Makes gtest report failures in ad hoc test assertions executed before ↵zhanyong.wan2010-06-16
| | | | | | RUN_ALL_TESTS(). git-svn-id: http://googletest.googlecode.com/svn/trunk@441 861a406c-534a-0410-8894-cb66d6ee9925
* Fixes a typo in comments.vladlosev2010-05-17
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@432 861a406c-534a-0410-8894-cb66d6ee9925
* Improves support for building Google Test as Windows DLL.vladlosev2010-05-05
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@423 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
* 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
* 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
* Refactors the scons script (by Vlad Losev).zhanyong.wan2009-09-30
| | | | | | | Fixes a typo in __GNUC__ (by Zhanyong Wan). git-svn-id: http://googletest.googlecode.com/svn/trunk@323 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
* Publishes the even listener API (by Vlad Losev); adds OS-indicating macros ↵zhanyong.wan2009-09-24
| | | | | | to simplify gtest code (by Zhanyong Wan). git-svn-id: http://googletest.googlecode.com/svn/trunk@320 861a406c-534a-0410-8894-cb66d6ee9925
* More implementation of the event listener interface (by Vlad Losev); Reduces ↵zhanyong.wan2009-09-04
| | | | | | 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). git-svn-id: http://googletest.googlecode.com/svn/trunk@301 861a406c-534a-0410-8894-cb66d6ee9925
* Fixes an uninitialized field in class OsStackTraceGetter.zhanyong.wan2009-08-26
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@297 861a406c-534a-0410-8894-cb66d6ee9925
* Makes gtest compile clean with gcc -Wall -Werror (by Zhanyong Wan); ↵zhanyong.wan2009-07-22
| | | | | | refactors scons script (by Vlad Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@287 861a406c-534a-0410-8894-cb66d6ee9925
* More refactoring for the event listener API, by Vlad Losev.zhanyong.wan2009-07-16
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@284 861a406c-534a-0410-8894-cb66d6ee9925
* Adds the command line flags needed for test shuffling. Most code by Josh ↵zhanyong.wan2009-07-14
| | | | | | Kelley. git-svn-id: http://googletest.googlecode.com/svn/trunk@282 861a406c-534a-0410-8894-cb66d6ee9925
* Adds color support for TERM=linux (by Alexander Demin); renames List to ↵zhanyong.wan2009-07-13
| | | | | | Vector (by Zhanyong Wan); implements Vector::Erase (by Vlad Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@281 861a406c-534a-0410-8894-cb66d6ee9925
* Makes List a random-access data structure. This simplifies the ↵zhanyong.wan2009-07-01
| | | | | | implementation and makes it easier to implement test shuffling. git-svn-id: http://googletest.googlecode.com/svn/trunk@280 861a406c-534a-0410-8894-cb66d6ee9925
* Reduces the flakiness of gtest-port_test on Mac; improves the Python tests; ↵zhanyong.wan2009-07-01
| | | | | | hides methods that we don't want to publish; makes win-dbg8 the default scons configuration (all by Vlad Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@278 861a406c-534a-0410-8894-cb66d6ee9925
* Makes list traversal O(N) instead of O(N^2) (by Zhanyong Wan).zhanyong.wan2009-06-25
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@277 861a406c-534a-0410-8894-cb66d6ee9925
* Makes gtest's tuple implementation work with Symbian 5th edition by ↵zhanyong.wan2009-06-24
| | | | | | bypassing 2 compiler bugs (by Zhanyong Wan); refactors for the event listener API (by Vlad Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@275 861a406c-534a-0410-8894-cb66d6ee9925
* Turns on exceptions when compiling gtest_output_test (by Vlad Losev); moves ↵zhanyong.wan2009-06-22
| | | | | | TestCase to gtest.h to prepare for the event listener API (by Vlad Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@273 861a406c-534a-0410-8894-cb66d6ee9925
* Moves TestResult from gtest-internal-inl.h to gtest.h to prepare for the ↵zhanyong.wan2009-06-19
| | | | | | even listener API work (by Vlad Losev); cleans up the scons script (by Zhanyong Wan). git-svn-id: http://googletest.googlecode.com/svn/trunk@271 861a406c-534a-0410-8894-cb66d6ee9925
* Fixes compatibility with Windows CE and Symbian (By Tim Baverstock and Mika).zhanyong.wan2009-06-19
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@270 861a406c-534a-0410-8894-cb66d6ee9925
* Fixes broken gtest_unittest on Cygwin and cleans it up (by Vlad Losev); ↵zhanyong.wan2009-06-19
| | | | | | 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). git-svn-id: http://googletest.googlecode.com/svn/trunk@269 861a406c-534a-0410-8894-cb66d6ee9925
* Makes --gtest_list_tests honor the test filter (by Jay Campan).zhanyong.wan2009-04-24
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@243 861a406c-534a-0410-8894-cb66d6ee9925
* Adds sample4_unittest to scons (by Vlad Losev); adds logic for getting the ↵zhanyong.wan2009-04-07
| | | | | | thread count on Mac (by Vlad Losev); adds HasFailure() and HasNonfatalFailure() (by Zhanyong Wan). git-svn-id: http://googletest.googlecode.com/svn/trunk@236 861a406c-534a-0410-8894-cb66d6ee9925
* Cleans up death test implementation (by Vlad Losev); changes the XML format ↵zhanyong.wan2009-03-24
| | | | | | to be closer to junitreport (by Zhanyong Wan). git-svn-id: http://googletest.googlecode.com/svn/trunk@224 861a406c-534a-0410-8894-cb66d6ee9925
* Fixes death-test-related tests on Windows, by Vlad Losev.zhanyong.wan2009-03-11
| | | | git-svn-id: http://googletest.googlecode.com/svn/trunk@201 861a406c-534a-0410-8894-cb66d6ee9925
* Implements --gtest_throw_on_failure for using gtest with other testing ↵zhanyong.wan2009-03-06
| | | | | | frameworks. git-svn-id: http://googletest.googlecode.com/svn/trunk@199 861a406c-534a-0410-8894-cb66d6ee9925