1. 22 Jul, 2021 2 commits
  2. 09 Jul, 2021 2 commits
    • Abseil Team's avatar
      Googletest export · 8d51ffdf
      Abseil Team authored
      Remove unneeded using ::std::get;
      
      PiperOrigin-RevId: 383688097
      8d51ffdf
    • Abseil Team's avatar
      Googletest export · 43cf5291
      Abseil Team authored
      Suppress a clang-tidy warning in the MATCHER(name, description) macro.
      
      PiperOrigin-RevId: 383587271
      43cf5291
  3. 07 Jul, 2021 4 commits
    • Abseil Team's avatar
      Googletest export · 8306020a
      Abseil Team authored
      Add `Conditional` wrapper to gtest
      
      This follows an initial proposal for an 'EqIff` matcher. `Conditional` was considered more precise as an EqIff() matcher may suffer from `Iff` not being universally understood.
      
      PiperOrigin-RevId: 383407665
      8306020a
    • Abseil Team's avatar
      Googletest export · 977cffc4
      Abseil Team authored
      Introduce GTEST_FLAG_GET and GTEST_FLAG_SET macros.
      
      PiperOrigin-RevId: 382808313
      977cffc4
    • Abseil Team's avatar
      Googletest export · 4cfd1498
      Abseil Team authored
      gtest: Add a flag to only set up/tear down test environments once when repeating
      
      Currently when running a test multiple times using `--gtest_repeat` the global
      test environment(s) are set up and torn down for each iteration of the test.
      When checking for flakes in tests that have expensive dependencies that are set
      up in the test environment (subprocesses, external dependencies, etc) this can
      become expensive.
      
      To support finding flakes in tests that fit into this category, where the setup
      phase is expensive but each test case is fast, allow callers to specify via
      `--gtest_recreate_environments_when_repeating=false` that the test environments
      should only be set up once, for the first iteration, and only torn down once, on
      the last iteration. This makes running a test with `--gtest_repeat=1000` a much
      faster and more pleasant experience.
      
      PiperOrigin-RevId: 382748942
      4cfd1498
    • Manuel Binna's avatar
      Link -lregex on QNX · f0ff512b
      Manuel Binna authored
      According to the 2nd point on [1], -lregex is required on QNX.
      
      [1] https://www.qnx.com/developers/docs/7.1/#com.qnx.doc.ide.userguide/topic/writing_test_programs.html
      f0ff512b
  4. 30 Jun, 2021 5 commits
  5. 26 Jun, 2021 1 commit
  6. 23 Jun, 2021 1 commit
  7. 22 Jun, 2021 2 commits
    • dinord's avatar
      Merge pull request #3443 from hyukmyeong:typo · 355d57d9
      dinord authored
      PiperOrigin-RevId: 380705469
      355d57d9
    • dmauro's avatar
      Googletest export · f7902802
      dmauro authored
      Remove -Werror from the CMake compiler flags
      
      We should not force warnings as errors on users.
      Sometimes compilers introduce new warnings which
      will break builds.
      
      Instead, we manually turn this flag on in our continuous integration
      scripts so we can catch these errors, but not force them on our users.
      
      Fixes #3447
      
      PiperOrigin-RevId: 380241852
      f7902802
  8. 17 Jun, 2021 3 commits
  9. 15 Jun, 2021 1 commit
  10. 13 Jun, 2021 1 commit
  11. 11 Jun, 2021 5 commits
  12. 09 Jun, 2021 2 commits
  13. 08 Jun, 2021 4 commits
  14. 03 Jun, 2021 2 commits
    • Florin Crișan's avatar
      #3420 Declare MarkAsIgnored as a DLL export · 26a1569c
      Florin Crișan authored
      This was causing the following linker error on Microsoft Visual C++ when compiling as a DLL:
      
      ```
      googletest-param-test-test.cc.obj : error LNK2019: unresolved external symbol "public: __cdecl testing::internal::MarkAsIgnored::MarkAsIgnored(char const *)" (??0MarkAsIgnored@internal@testing@@QEAA@PEBD@Z) referenced in function "void __cdecl works_here::`dynamic initializer for 'gtest_allow_ignore_NotInstantiatedTest''(void)" (??__Egtest_allow_ignore_NotInstantiatedTest@works_here@@YAXXZ)
      ```
      26a1569c
    • Florin Crișan's avatar
      #3420 Properly declare all overloads of testing::internal::PrintTo as DLL exports · e1cc005f
      Florin Crișan authored
      This was causing the following linker error on Microsoft Visual C++ when compiling as a DLL:
      
      ```
      googletest-printers-test.cc.obj : error LNK2019: unresolved external symbol "void __cdecl testing::internal::PrintTo(char16_t const *,class std::basic_ostream<char,struct std::char_traits<char> > *)" (?PrintTo@internal@testing@@YAXPEB_SPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) referenced in function "public: static void __cdecl testing::internal::UniversalPrinter<char16_t const *>::Print(char16_t const * const &,class std::basic_ostream<char,struct std::char_traits<char> > *)" (?Print@?$UniversalPrinter@PEB_S@internal@testing@@SAXAEBQEB_SPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
      googletest-printers-test.cc.obj : error LNK2019: unresolved external symbol "void __cdecl testing::internal::PrintTo(char32_t const *,class std::basic_ostream<char,struct std::char_traits<char> > *)" (?PrintTo@internal@testing@@YAXPEB_UPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) referenced in function "public: static void __cdecl testing::internal::UniversalPrinter<char32_t const *>::Print(char32_t const * const &,class std::basic_ostream<char,struct std::char_traits<char> > *)" (?Print@?$UniversalPrinter@PEB_U@internal@testing@@SAXAEBQEB_UPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
      ```
      e1cc005f
  15. 02 Jun, 2021 5 commits
    • Abseil Team's avatar
      Googletest export · 53495a2a
      Abseil Team authored
      Create new Testing API reference
      
      PiperOrigin-RevId: 376969148
      53495a2a
    • Abseil Team's avatar
      Googletest export · 5f6a14c8
      Abseil Team authored
      Create new Mocking Reference
      
      PiperOrigin-RevId: 376951575
      5f6a14c8
    • Abseil Team's avatar
      Googletest export · 2bd34816
      Abseil Team authored
      Fix broken link
      
      PiperOrigin-RevId: 375995669
      2bd34816
    • Abseil Team's avatar
      Googletest export · d5d6ff94
      Abseil Team authored
      Create Assertions Reference
      
      PiperOrigin-RevId: 375824718
      d5d6ff94
    • dmauro's avatar
      Googletest export · 8ceecc27
      dmauro authored
      Updates Linux docker image to use Bazel 4.1.0 and GCC 11.1
      Updates Bazel dependencies
      Removes the last usage of the deprecated and removed Python2
      
      PiperOrigin-RevId: 375759184
      8ceecc27