aboutsummaryrefslogtreecommitdiffstats
path: root/googletest/include/gtest/gtest.h
Commit message (Collapse)AuthorAgeFilesLines
* Googletest exportAbseil Team2020-03-241-0/+10
| | | | | | | | | | Add --gtest_fail_fast support to googletest. - Analogous functionality to to golang -test.failfast and python --failfast - Stops test execution upon first test failure. - Also add support Bazel equivalent env var (TESTBRIDGE_TEST_RUNNER_FAIL_FAST) PiperOrigin-RevId: 302488880
* Googletest exportAbseil Team2020-03-171-6/+0
| | | | | | Move internal function out of header because Hyrum's law always wins. PiperOrigin-RevId: 301446904
* Googletest exportAbseil Team2020-02-281-1/+1
| | | | | | | Rename internal color enumerators to avoid conflicts with curses.h macro definitions. Fixes #2685 PiperOrigin-RevId: 297639382
* Googletest exportAbseil Team2020-02-071-2/+6
| | | | | | | | | | Disable warning C4800 for Visual Studio 2019. The compiler warning C4800 is disabled by default in Visual Studio 2019, but it can be enabled on the command line. The only version of Visual Studio that does not support warning C4800 is Visual Studio 2017. PiperOrigin-RevId: 292624510
* Googletest exportAbseil Team2020-02-071-0/+2
| | | | | | Adds missing `#define` guard around `TEST_F(...)` PiperOrigin-RevId: 291703056
* Googletest exportAbseil Team2020-01-161-0/+2
| | | | | | | | | | Add GTEST_ALLOW_UNINSTANTIATED_PARAMTERIZED_TEST to mark a paramaterized test as allowed to be un-instantiated. This allows test suites, that are defined in libraries and, for other reasons, get linked in (which should probably be avoided, but isn't always possible) to be marked as allowed to go uninstantiated. This can also be used to grandfather existing issues and expedite adoption of the checks with regards to new cases before they can be fixed. PiperOrigin-RevId: 289581573
* Googletest exportAbseil Team2019-12-061-5/+3
| | | | | | | | | | Change googletest to notice failures during SetUpTestSuite() and TearDownTestSuite(). Previously, errors that occurred during those functions were logged but otherwise ignored. After this change, such failures will cause the test to fail and a brief summary will be printed at the bottom of the test log. See https://github.com/google/googletest/issues/2330. PiperOrigin-RevId: 284033342
* Merge pull request #2453 from kuzkry:gtest-port-clean-up_kMaxBiggestIntXiaoyi Zhang2019-11-041-22/+26
|\ | | | | | | PiperOrigin-RevId: 278008286
* | Merge pull request #2453 from kuzkry:gtest-port-clean-up_kMaxBiggestIntvslashg2019-11-011-26/+22
|\| | | | | | | PiperOrigin-RevId: 277979766
| * remove BiggestIntKrystian Kuzniarek2019-10-241-14/+11
| |
* | [googletest] Output skip messageAlexey Spiridonov2019-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #2208 Previously, skip messages were invisible, so debugging skips was hard. Now we have this: ``` $ ./googletest/gtest_skip_test Running main() from /home/lesha/github/snarkmaster/googletest/googletest/src/gtest_main.cc [==========] Running 3 tests from 2 test suites. [----------] Global test environment set-up. [----------] 1 test from SkipTest [ RUN ] SkipTest.DoesSkip /home/lesha/github/snarkmaster/googletest/googletest/test/gtest_skip_test.cc:38: Skipped skipping single test [ SKIPPED ] SkipTest.DoesSkip (0 ms) [----------] 1 test from SkipTest (1 ms total) ... ```
* | square away the stuff that hasn't been merged in a manual reviewKrystian Kuzniarek2019-09-161-2/+1
| | | | | | | | | | This fixes up f2fb48c3 (a manual merge) that has abandoned some things from PR #2407.
* | Googletest exportkuzkry2019-09-161-2/+3
| | | | | | | | | | | | | | | | | | Merge 3bdefdb473d304803d2a38e2a2cd5cdc1827c3bd into fb49e6c164490a227bbb7cf5223b846c836a0305 Closes #2407 COPYBARA_INTEGRATE_REVIEW=https://github.com/google/googletest/pull/2407 from kuzkry:StaticAssertTypeEq 3bdefdb473d304803d2a38e2a2cd5cdc1827c3bd PiperOrigin-RevId: 269255328
* | Merge pull request #2387 from kuzkry:iffShaindel Schwartz2019-09-121-35/+35
|\ \ | |/ |/| | | PiperOrigin-RevId: 268693457
| * restore mistakenly removed iffs in their explicit formKrystian Kuzniarek2019-08-201-34/+35
| | | | | | | | | | Due to confusion arisen from "iff" standing for "if and only if", this commit uses the latter.
* | remove a custom implementation of std::enable_ifKrystian Kuzniarek2019-08-141-1/+1
|/
* Googletest exportmisterg2019-08-051-1/+1
| | | | | | Internal Change PiperOrigin-RevId: 261683482
* Googletest exportAbseil Team2019-08-011-0/+4
| | | | | | Document the fact that {Setup,TearDown}TestSuite failures are currently being dropped. PiperOrigin-RevId: 260962695
* fix typosKrystian Kuzniarek2019-07-301-26/+26
|
* Googletest exportAbseil Team2019-07-251-0/+15
| | | | | | | | Adds ISO8601 timestamps to XML output and RFC3339 timestamps to JSON output. Adds timestamps to testsuites, testsuite and testcases structured JSON/XML output for better reporting how/where time is spent on tests. PiperOrigin-RevId: 260039817
* Googletest exportmisterg2019-06-051-1/+1
| | | | | | comment change PiperOrigin-RevId: 251231524
* Googletest exportAbseil Team2019-04-241-0/+5
| | | | | | | | Add GTEST_FAIL_AT, an equivalent to ADD_FAILURE_AT but that spawns a fatal failure rather than a non-fatal, eg. the equivalent of an ASSERT* failure rather than an EXPECT* failure. PiperOrigin-RevId: 244746609
* Googletest exportmisterg2019-04-181-2/+2
| | | | | | Expose more information in SuiteApiResolver diagnostic output PiperOrigin-RevId: 244179347
* Googletest exportAbseil Team2019-04-011-21/+0
| | | | | | | | Remove support for "global" ::string and ::wstring types. This support existed for legacy codebases that existed from before namespaces where a thing. It is no longer necessary. PiperOrigin-RevId: 241335738
* Googletest exportAbseil Team2019-03-051-49/+14
| | | | | | | | | | | | | | | | | | | | | | | | Fix emission of -Wzero-as-null-pointer-constant when comparing integers. The following code fails to compile: #pragma clang diagnostic error "-Wzero-as-null-pointer-constant" void foo() { EXPECT_EQ(0, 0); } This happens because gtest checks the first argument to EXPECT_EQ and ASSERT_EQ is a null pointer constant. The magic it does to do this causes the warning to be emitted. This patch removes that check. It replaces the explicit check with a Compare overload that can only be selected when 0 or nullptr is passed on the LHS with a pointer on the right. This patch does not suppress -Wzero-as-null-pointer-constant when users are actually using it as NULL. PiperOrigin-RevId: 236654634
* Googletest exportAbseil Team2019-02-121-1/+2
| | | | | | Internal changes. PiperOrigin-RevId: 232953166
* Googletest exportAbseil Team2019-02-041-4/+4
| | | | | | | Update example code in gtest.h to prefer override over virtual now that it is widely available in C++11. PiperOrigin-RevId: 232057792
* Merge pull request #2041 from ciband:chore/fix_library_jsonGennadiy Civil2019-01-231-0/+4
|\ | | | | | | PiperOrigin-RevId: 230554814
| * misc: Reapply Arduino functionsChris2019-01-031-0/+14
| |
| * misc: Revert formatting changes.Chris2019-01-031-157/+176
| |
| * Merge branch 'master' into chore/fix_library_jsonChris Johnson2019-01-031-123/+258
| |\
| * | fix: Remove Arduino entry pointsChris2019-01-031-194/+169
| | | | | | | | | | | | | | | | | | Improved flexibility by removing the Arduino entry points in favor of manual calls to setup/loop that the user can call from their entry point. This is the more common use case for Arudino. Also added the gtest/gmock_main files to the PlatformIO ignore list since we are not supporting that feature.
* | | Merge pull request #2051 from enptfb55:mastergennadiycivil2019-01-081-6/+6
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 228337465
| * | | fixing build errors for unused parameterSal Amato2019-01-061-6/+6
| | |/ | |/|
* / | Googletest exportmisterg2019-01-081-1/+1
|/ / | | | | | | | | | | | | Replace testing::internal::ImplicitlyConvertible with std::is_convertible Fixes #2054 PiperOrigin-RevId: 228334305
* | Googletest exportmisterg2019-01-031-142/+186
| | | | | | | | | | | | TestCase->TestSuite refactoring PiperOrigin-RevId: 227702164
* | Googletest exportmisterg2019-01-021-1/+0
| | | | | | | | | | | | Internal Change PiperOrigin-RevId: 227575279
* | Googletest exportAbseil Team2019-01-021-1/+1
| | | | | | | | | | | | | | | | Remove the #ifs for old, unsupported and buggy compilers: * old versions of GCC & MSVC * Symbian PiperOrigin-RevId: 227116941
* | Googletest exportAbseil Team2018-12-201-0/+86
|/ | | | | | Add public entry point testing::RegisterTest. PiperOrigin-RevId: 226350937
* Googletest exportAbseil Team2018-12-031-15/+15
| | | | | | Applied fixes for ClangTidy modernize-use-override and modernize-use-using. PiperOrigin-RevId: 223800219
* Googletest exportdurandal2018-11-201-0/+1
| | | | | | Move the Matcher<T> interface to googletest so I can use it to extend death test regex matching in a subsequent change. PiperOrigin-RevId: 221675910
* Googletest exportmisterg2018-10-301-5/+6
| | | | | | Remove scoped_ptr replace with std::unique_ptr PiperOrigin-RevId: 219291284
* Googletest exportmisterg2018-10-291-0/+7
| | | | | | Remove linked_ptr and use std::shared_ptr instead PiperOrigin-RevId: 219129336
* Make GTestColor and ColoredPrintF available as internal APIs from gtest.h. ↵Abseil Team2018-10-051-0/+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-23/+18
| | | | | | | | | | | 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 d830440d48a9502161448bc78be33a53388dd1f4 into ↵1camper2018-10-031-5/+2
| | | | | | | | f5260ae757a681566d8f7d0558b8dc0551036506 Closes #1830 PiperOrigin-RevId: 215563532
* Merge 2ce0685f76a4db403b7b2650433a584c150f2108 into ↵Arseny Aprelev2018-10-021-1/+23
| | | | | | | | | 75e834700d19aa373b428c7c746f951737354c28 Closes #1544 With refinements and changes PiperOrigin-RevId: 215273083
* Add missing declarations for Google Tests flagsDominic Sacré2018-08-311-0/+8
| | | | | | | | | | Add declarations for install_failure_signal_handler and flagfile. Fix Clang warnings: | warning: no previous extern declaration for non-static variable | 'FLAGS_gtest_install_failure_signal_handler' [-Wmissing-variable-declarations] | warning: no previous extern declaration for non-static variable | 'FLAGS_gtest_flagfile' | [-Wmissing-variable-declarations]
* googletest exportmisterg2018-08-201-0/+5
| | | | | | - 209457654 Import of OSS PR, https://github.com/google/googletest/pu... by misterg <misterg@google.com> PiperOrigin-RevId: 209457654
* Comments changes, no functionality changes. Gennadiy Civil2018-08-141-2/+2
|