summaryrefslogtreecommitdiffstats
path: root/googletest/src/gtest.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Googletest exportmisterg2018-10-261-3/+0
| | | | | | Remove linked_ptr and use std::shared_ptr instead PiperOrigin-RevId: 218571466
* Googletest exportdurandal2018-10-241-4/+6
| | | | | | Honor GTEST_SKIP() in SetUp(). PiperOrigin-RevId: 218387359
* Fix incorrect XML file name in help messagerefs/pull/1912/headkakkoko2018-10-171-1/+1
|
* Merge c41b2bf861ef2ac1a975af05ff66d9256f280b01 into ↵KO Myung-Hun2018-10-111-1/+1
| | | | | | | | f203b2db77161fe54846ea9e839ebec81aeeccac Closes #1899 PiperOrigin-RevId: 216719020
* Make GTestColor and ColoredPrintF available as internal APIs from gtest.h. ↵Abseil Team2018-10-051-15/+6
| | | | | | This is for use in abseil exception safety testing. PiperOrigin-RevId: 215920581
* Apply clang-tidy modernize-use-nullptr to googletest.Abseil Team2018-10-051-106/+97
| | | | | | | | | | | Now that googletest has moved to C++11, it should no longer use NULL or 0 for the null pointer. This patch converts all such usages to nullptr using clang-tidy. This prevents LLVM from issuing -Wzero-as-null-pointer-constant warnings. PiperOrigin-RevId: 215814400
* Merge 2ce0685f76a4db403b7b2650433a584c150f2108 into ↵Arseny Aprelev2018-10-021-9/+81
| | | | | | | | | 75e834700d19aa373b428c7c746f951737354c28 Closes #1544 With refinements and changes PiperOrigin-RevId: 215273083
* Make g_argvs staticDominic Sacré2018-08-311-1/+1
| | | | | | Fix Clang warning: | warning: no previous extern declaration for non-static variable 'g_argvs' | [-Wmissing-variable-declarations]
* Googletest exportAbseil Team2018-08-281-1/+243
| | | | | | Breaks Windows builds PiperOrigin-RevId: 210434120
* Googletest exportAbseil Team2018-08-281-243/+1
| | | | | | | | | | | | | | Fix Theta(N^2) memory usage of EXPECT_EQ(string) when the strings don't match. The underlying CalculateOptimalEdits() implementation used a simple dynamic-programming approach that always used N^2 memory and time. This meant that tests for equality of large strings were ticking time bombs: They'd work fine as long as the test passed, but as soon as the strings differed the test would OOM, which is very hard to debug. I switched it out for a Dijkstra search, which is still worst-case O(N^2), but in the usual case of mostly-matching strings, it is much closer to linear. PiperOrigin-RevId: 210405025
* Googletest exportmisterg2018-08-281-6/+1
| | | | | | Code Cleanup PiperOrigin-RevId: 210393771
* Merge 72a2836945e7a3dcee0730166704587e10bf64ee into ↵David Schuldenfrei2018-08-271-71/+139
| | | | | | | | | | 1d9a1912e7f42e8ae66ea365b5b8508fecb31509 Closes #1658 Review and changes, mister@google.com PiperOrigin-RevId: 210374286
* Googletest exportrefs/pull/1779/headmisterg2018-08-231-7/+7
| | | | | | Remove unneeded check for NULL. Note: this started as OSS PR https://github.com/google/googletest/pull/967 but changed PiperOrigin-RevId: 209819732
* Merge branch 'master' into fix_death_test_child_mingw_wer_issue1116refs/pull/1120/headGennadiy Civil2018-08-201-0/+17
|\
| * Minor formatting/style changesGennadiy Civil2018-08-171-8/+7
| |
| * Merge branch 'master' into fix-argcConor Burgess2018-08-171-100/+600
| |\
| * \ Merge branch 'master' into fix-argcConor Burgess2018-02-121-28/+38
| |\ \
| * \ \ Merge branch 'master' into fix-argcConor Burgess2018-01-121-50/+37
| |\ \ \
| * | | | Fix location of `_NSGetArgv` correction.Conor Burgess2017-12-071-10/+11
| | | | |
| * | | | Fix value pointed to by `_NSGetArgc()` on macOSConor Burgess2017-12-071-0/+16
| | | | |
* | | | | Merge branch 'master' into fix_death_test_child_mingw_wer_issue1116Tanzinul Islam2018-08-171-19/+20
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | Comments changes, no functionality changes. Gennadiy Civil2018-08-141-15/+15
| | | | |
| * | | | Comments changes, no functionality changesrefs/pull/1740/headGennadiy Civil2018-08-141-2/+1
| | | | |
| * | | | Merge branch 'master' into deprecaterefs/pull/1665/headGennadiy Civil2018-08-141-0/+1
| |\ \ \ \
| | * | | | code management comments, [ci-skip], no functionality changesGennadiy Civil2018-08-091-0/+1
| | | | | |
| * | | | | Merge branch 'master' into deprecateLoo Rong Jie2018-08-091-0/+1
| |\ \ \ \ \ | | |/ / / /
| | * | | | Merge branch 'master' of https://github.com/google/googletestGennadiy Civil2018-08-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Formatting changes and code sync Merge branch 'master' of https://github.com/google/googletest
| * | | | | Disable MSVC function deprecation when using ClangLoo Rong Jie2018-07-131-2/+2
| |/ / / /
* | | | | Merge branch 'master' into fix_death_test_child_mingw_wer_issue1116Tanzinul Islam2018-08-011-11/+92
|\ \ \ \ \ | |/ / / /
| * | | | Adds stacktrace support from Abseil to Google TestDerek Mauro2018-07-101-3/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds the ability to generate stacktraces in Google Test on both failures of assertions/expectations and on crashes. The stacktrace support is conditionally available only when using Abseil with Google Test. To use this support, run the test under Bazel with a command like this: bazel test --define absl=1 --test_env=GTEST_INSTALL_FAILURE_SIGNAL_HANDLER=1 //path/to/your:test The "--define absl=1" part enables stacktraces on assertion/expectation failures. The "--test_env=GTEST_INSTALL_FAILURE_SIGNAL_HANDLER=1" part enables the signal handler that logs a stacktrace in the event of a crash (this also requires the "--define absl=1" part). This is not the default since it may interfere with existing tests.
| * | | | Eliminate GTEST_TEST_FILTER_ENV_VAR_.refs/pull/1622/headRohan Joyce2018-06-141-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GTEST_TEST_FILTER_ENV_VAR_ was used to specify an environment variable to obtain the default test filter from. By default it was unset which broke "--test_filter" for bazel. This CL eliminates GTEST_TEST_FILTER_ENV_VAR_ and explicitly obtains the default test filter from the environment variable TESTBRIDGE_TEST_ONLY if it exists.
| * | | | Reduce the number of strcmp calling while initializationTakuto Ikuta2018-06-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we do parallel test execution with a process for a test, initialization of gtest become performance bottleneck when the test binary contains many testcases. Especially, some parameterlized test in chromium browser affected by largely when address sanitizer is enabled. Address sanitizer does not allow using optimized strcmp function and test addition in parameterized test require lookup of test case using strcmp. This patch reduces the number of strcmp, it is called when registering parameterized test. Using reverse iterator improves the time to find registered tests in such case. Some tests for chromium browser using address sanitizer finished 2x faster with this patch.
| * | | | Rename AdvancedGuide.md to advanced.md and adjust the links. Gennadiy Civil2018-06-111-1/+1
| | | | | | | | | | | | | | | Part of documentation rationalization work
| * | | | Formatting changes refs/pull/1607/headGennadiy Civil2018-05-231-1/+1
| | | | |
* | | | | Merge branch 'master' into fix_death_test_child_mingw_wer_issue1116Tanzinul Islam2018-05-131-4/+8
|\ \ \ \ \ | |/ / / /
| * | | | Use NULL instead of nullptr, for pre-C++11 builds.refs/pull/1597/headJae Heon Lee2018-05-091-2/+2
| | | | |
| * | | | Fix the bug where ad_hoc_test_result() functions of UnitTest and TestCase ↵Jae Heon Lee2018-05-071-4/+8
| | | | | | | | | | | | | | | | | | | | objects would return failures registered at TestCase and UnitTest scopes, respectively.
* | | | | Merge branch 'master' into fix_death_test_child_mingw_wer_issue1116Tanzinul Islam2018-05-051-0/+5
|\ \ \ \ \ | |/ / / /
| * | | | Tweaking https://github.com/google/googletest/pull/1523 to exclude naclrefs/pull/1542/headGennadiy Civil2018-04-041-1/+3
| | | | |
| * | | | typoRoland Leißa2018-03-291-1/+1
| | | | |
| * | | | provide alternative for DebugBreak()Roland Leißa2018-03-281-0/+3
| | | | | | | | | | | | | | | | | | | | This uses asm("int3") for clang/gcc on x86 as alternative for DebugBreak()
* | | | | Merge branch 'master' into fix_death_test_child_mingw_wer_issue1116Tanzinul Islam2018-04-011-43/+100
|\ \ \ \ \ | |/ / / /
| * | | | more mergesGennadiy Civil2018-03-221-1/+1
| | | | |
| * | | | More mergesGennadiy Civil2018-03-211-1/+7
| | | | |
| * | | | merge, again, IsRecursiveContainerrefs/pull/1507/headGennadiy Civil2018-03-151-2/+2
| | | | |
| * | | | Merging, XML testsrefs/pull/1497/headGennadiy Civil2018-03-071-3/+36
| | | | |
| * | | | merges-8refs/pull/1493/headGennadiy Civil2018-03-051-12/+14
| | | | |
| * | | | merges-7refs/pull/1492/headGennadiy Civil2018-03-051-25/+41
| | | | |
* | | | | Merge branch 'master' into fix_death_test_child_mingw_wer_issue1116Tanzinul Islam2018-03-051-98/+446
|\ \ \ \ \ | |/ / / /
| * | | | Use a full message in the JSON output for failuresrefs/pull/1486/headPetr Hosek2018-03-011-2/+2
| | | | | | | | | | | | | | | | | | | | The full message unlike summary also includes stack trace.