aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest-port_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* Move everything in googletest into googletest/googletestBilly Donahue2015-08-251-1304/+0
|
* Inject the name of the Init function using a macro.kosak2015-07-271-3/+5
|
* Do not create an extra default instance of T when constructing a ThreadLocal<T>.kosak2015-07-191-32/+9
|
* Condition some code on !GTEST_HAS_MUTEX_AND_THREAD_LOCAL_kosak2015-07-191-0/+9
|
* Implement GetThreadCount for Linux.kosak2015-07-171-28/+21
|
* Work around some unsigned->signed warnings in our tests/.kosak2015-04-281-2/+2
| | | | Thanks to Diego Barrios Romero <eldruin@gmail.com>.
* Implement threading support for gtest on Windows.kosak2014-03-241-36/+106
| | | | Also, stop using localtime(). Instead, use localtime_r() on most systems, localtime_s() on Windows.
* Unfortunately, the svn repo is a bit out of date. This commit contains 8jgm2012-11-151-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Improves gtest's failure messages. In particulars, char pointers andzhanyong.wan2012-06-071-0/+37
| | | | char arrays are not escapped properly.
* Improves conformance to the Google C++ Style Guide (by Greg Miller).vladlosev2011-11-041-4/+4
|
* Fixes C++0x compatibility problems.vladlosev2011-09-261-28/+30
|
* Fixes a resource leak in gtest-port_test (by Haruka Iwao).vladlosev2011-07-111-0/+1
|
* QNX compatibility patch (by Haruka Iwao).vladlosev2011-06-201-2/+7
|
* Avoids iterator_traits, as it's not available in libCStd when compiled with ↵zhanyong.wan2011-04-121-0/+20
| | | | Sun C++.
* Indents preprocessor directives.zhanyong.wan2011-02-221-5/+9
|
* Adds null check for file locations in XML output printer.vladlosev2011-02-021-0/+38
|
* Renames some internal functions to avoid name clashes.vladlosev2011-01-291-7/+7
|
* Fixes GCC 4.6 warnings (patch by Jeffrey Yasskin).zhanyong.wan2011-01-101-0/+1
|
* Include gtest headers as user headers instead of system headers.zhanyong.wan2010-09-141-3/+3
|
* Casts char to unsigned char before calling isspace() etc to avoid undefined ↵zhanyong.wan2010-08-311-51/+51
| | | | 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).
* Allows Google Test to build on OSes other then a pre-determined set and ↵vladlosev2010-07-221-0/+11
| | | | implements GTEST_HAS_POSIX_REGEX condition for compatibility with them.
* Moves the universal printer from gmock to gtest and refactors the cmake ↵zhanyong.wan2010-05-101-0/+112
| | | | script for reusing in gmock (by Vlad Losev).
* Fixes gtest-port_test on MinGW.vladlosev2010-04-221-1/+3
|
* Fixes a leak in ThreadLocal.zhanyong.wan2010-03-261-17/+64
|
* Adds a smoketest for ThreadWithParam.vladlosev2010-03-051-0/+10
|
* Renames ThreadStartSempahore to Notificaton (by Vlad Losev); adds threading ↵zhanyong.wan2010-03-041-17/+33
| | | | 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).
* Simplifies ThreadStartSemaphore's implementation.zhanyong.wan2010-02-261-12/+7
|
* Simplifies the threading implementation and improves some comments.zhanyong.wan2010-02-251-24/+6
|
* Adds threading support (by Miklos Fazekas, Vlad Losev, and Chandler ↵zhanyong.wan2010-02-241-2/+221
| | | | 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).
* Implements stdout capturing (by Vlad Losev); fixes compiler error on NVCC ↵zhanyong.wan2010-01-271-3/+43
| | | | (by Zhanyong Wan).
* Removes uses of GTEST_HAS_STD_STRING.zhanyong.wan2009-12-161-2/+0
|
* Implements the element_type typedef in testing::internal::scoped_ptr. This ↵vladlosev2009-11-171-0/+8
| | | | is needed to test gmock's IsNull/NotNull with it.
* Improves the scons scripts and run_tests.py (by Vlad Losev); uses typed ↵zhanyong.wan2009-11-131-0/+4
| | | | tests in gtest-port_test.cc only when typed tests are available (by Zhanyong Wan); makes gtest-param-util-generated.h conform to the C++ standard (by Zhanyong Wan).
* Makes gtest compile cleanly with MSVC's /W4 (by Zhanyong Wan).zhanyong.wan2009-09-301-3/+3
| | | | | | Renames EventListenrs to TestEventListeners (by Zhanyong Wan). Fixes invalid characters in XML report (by Vlad Losev). Refacotrs SConscript (by Vlad Losev).
* Improves EXPECT_DEATH_IF_SUPPORTED to allow streaming of messages and ↵zhanyong.wan2009-09-111-3/+4
| | | | 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).
* Implements EXPECT_DEATH_IF_SUPPORTED (by Vlad Losev); Fixes compatibility ↵zhanyong.wan2009-08-071-5/+1
| | | | with Symbian (by Araceli Checa); Removes GetCapturedStderr()'s dependency on std::string (by Vlad Losev).
* Makes gtest compile clean with gcc -Wall -Werror (by Zhanyong Wan); ↵zhanyong.wan2009-07-221-4/+4
| | | | refactors scons script (by Vlad Losev).
* Reduces the flakiness of gtest-port_test on Mac; improves the Python tests; ↵zhanyong.wan2009-07-011-0/+14
| | | | hides methods that we don't want to publish; makes win-dbg8 the default scons configuration (all by Vlad Losev).
* Adds sample4_unittest to scons (by Vlad Losev); adds logic for getting the ↵zhanyong.wan2009-04-071-0/+43
| | | | thread count on Mac (by Vlad Losev); adds HasFailure() and HasNonfatalFailure() (by Zhanyong Wan).
* Implements death tests on Windows (by Vlad Losev); enables POSIX regex on ↵zhanyong.wan2009-03-061-13/+25
| | | | Mac and Cygwin; fixes build issue on some Linux versions due to PATH_MAX.
* Cleans up macro definitions.zhanyong.wan2009-02-231-3/+3
|
* Implements a simple regex matcher (to be used by death tests on Windows).zhanyong.wan2009-01-291-12/+489
|
* Value-parameterized tests and many bugfixesvladlosev2008-11-201-0/+156