1. 08 Apr, 2021 5 commits
    • Abseil Team's avatar
      Googletest export · 6a5eb807
      Abseil Team authored
      Update the example for Notify to use a lambda.
      It is much less boilerplate and easier to remember.
      
      PiperOrigin-RevId: 367284222
      6a5eb807
    • Abseil Team's avatar
      Googletest export · 8a65bc03
      Abseil Team authored
      Docs: Add examples for `FieldsAre` matcher
      PiperOrigin-RevId: 367263024
      8a65bc03
    • Abseil Team's avatar
      Googletest export · d0303e40
      Abseil Team authored
      Migrate away from deprecated --heap_check=strict
      
      PiperOrigin-RevId: 367226846
      d0303e40
    • Abseil Team's avatar
      Googletest export · 601a6815
      Abseil Team authored
      This is part of a soft transition over to having ZX_INFO_PROCESS
      populate a new struct. See fxbug.dev/30751 for more details.
      
      PiperOrigin-RevId: 367083068
      601a6815
    • Abseil Team's avatar
      Googletest export · 54689b19
      Abseil Team authored
      Docs: Clarifying matcher in `Pointwise` and `UnorderedPointwise`
      PiperOrigin-RevId: 367059198
      54689b19
  2. 05 Apr, 2021 2 commits
    • Abseil Team's avatar
      Googletest export · 5c8ca58e
      Abseil Team authored
      Disable blank issue template, delete question template
      
      PiperOrigin-RevId: 366874747
      5c8ca58e
    • Abseil Team's avatar
      Googletest export · 4048829d
      Abseil Team authored
      Add macros to omit {EXPECT,ASSERT}_{TRUE,FALSE}
      
      PiperOrigin-RevId: 366455905
      4048829d
  3. 30 Mar, 2021 1 commit
  4. 25 Mar, 2021 9 commits
  5. 22 Mar, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · 1a8ecf18
      Abseil Team authored
      Print std::u8string, std::u16string, and std::u32string as string literals
      
      Previously, these types were printed as "{ U+123, U+456, U+789 }". However,
      printed output in that form is difficult to compare against any literals that
      might be defined in code. Instead, just treat these types like std::string
      and std::wstring, escaping non-ASCII characters with a hexadecimal escape
      sequence.
      
      The tests have also been updated to cover the new functionality: as a bonus,
      the tests now also pass with the MSVC toolchain.
      
      Internally, the code has been reorganized to primarily operate in terms of
      char32_t, under the assumption that char32_t will always be at least as big
      as wchar_t. While that assumption is currently true, perhaps it won't be in
      the future...
      
      PiperOrigin-RevId: 364033132
      1a8ecf18
  6. 18 Mar, 2021 1 commit
  7. 16 Mar, 2021 5 commits
  8. 15 Mar, 2021 1 commit
  9. 10 Mar, 2021 2 commits
    • Abseil Team's avatar
      Googletest export · e8512bc3
      Abseil Team authored
      Add missing period and use "that" in restrictive clause.
      
      PiperOrigin-RevId: 361941663
      e8512bc3
    • Abseil Team's avatar
      Googletest export · 861d535e
      Abseil Team authored
      Update READMEs and issue template
      
      PiperOrigin-RevId: 361931644
      861d535e
  10. 09 Mar, 2021 5 commits
    • Abseil Team's avatar
      Googletest export · 763eaa43
      Abseil Team authored
      Use monotonic time to measure test duration
      
      System time may be updated while a test is running. When this occurs a
      duration measured using system time may appear to move backwards, or
      jump far forwards.
      This change updates the duration measurement to use monotonic time
      instead. Timestamps for the test start still use system time.
      
      PiperOrigin-RevId: 361700881
      763eaa43
    • Abseil Team's avatar
      Googletest export · bb4f87e6
      Abseil Team authored
      gtest.cc: Split out functions for printing `TestResult` objects
      
      This will make it possible to reuse this code for outputting the "ad_hoc" `TestResult` objects in structured form in XML/JSON.
      
      PiperOrigin-RevId: 361604860
      bb4f87e6
    • Abseil Team's avatar
      Internal change · bf465ff0
      Abseil Team authored
      PiperOrigin-RevId: 361213113
      bf465ff0
    • Dino Radaković's avatar
      Merge pull request #3184 from N-Dekker:PrintTo-type_index-overload · bcfcf75e
      Dino Radaković authored
      PiperOrigin-RevId: 361175466
      bcfcf75e
    • Abseil Team's avatar
      Googletest export · 79b556ef
      Abseil Team authored
      Add CI test scripts
      
      PiperOrigin-RevId: 360931988
      79b556ef
  11. 04 Mar, 2021 3 commits
    • Abseil Team's avatar
      Googletest export · e7e59176
      Abseil Team authored
      Format WORKSPACE and googlemock/test/BUILD.bazel using buildifier
      
      PiperOrigin-RevId: 360913861
      e7e59176
    • Abseil Team's avatar
      Googletest export · 32983d21
      Abseil Team authored
      Fix enum names in a value-parameterized test example.
      
      PiperOrigin-RevId: 360559723
      32983d21
    • Abseil Team's avatar
      Googletest export · de41f822
      Abseil Team authored
      Add Supported Platforms page to docs
      
      PiperOrigin-RevId: 360307129
      de41f822
  12. 26 Feb, 2021 3 commits
    • Abseil Team's avatar
      Googletest export · e8b478a7
      Abseil Team authored
      Update gtest doc link
      
      PiperOrigin-RevId: 359622286
      e8b478a7
    • Abseil Team's avatar
      Googletest export · 3832a41e
      Abseil Team authored
      Update links in index.md
      
      PiperOrigin-RevId: 358956598
      3832a41e
    • Be's avatar
      remove -Zi from MSVC compiler options · 497db77a
      Be authored
      This is incompatible with compiler caches such as sccache and
      clcache. If a project including Google Test specifies /Z7 instead,
      building fails with:
      
      sccache C:\PROGRA~2\MICROS~1\2019\ENTERP~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x64\cl.exe  /nologo /TP -D__SSE2__ -D__SSE__ -I..\lib\googletest-1.10.x\googlemock\include -I..\lib\googletest-1.10.x\googlemock -I..\lib\googletest-1.10.x\googletest\include -I..\lib\googletest-1.10.x\googletest /DWIN32 /D_WINDOWS /W4 /GR  /MD /Z7 /O2 /Ob1 /DNDEBUG -GS -W4 -WX -wd4251 -wd4275 -nologo -J -Zi -D_UNICODE -DUNICODE -DWIN32 -D_WIN32 -DSTRICT -DWIN32_LEAN_AND_MEAN -wd4702 -DGTEST_HAS_PTHREAD=0 -EHsc -D_HAS_EXCEPTIONS=1  /Gy /showIncludes /Folib\googletest-1.10.x\googlemock\CMakeFiles\gmock_main.dir\src\gmock-all.cc.obj /Fdbin\gmock_main.pdb /FS -c ..\lib\googletest-1.10.x\googlemock\src\gmock-all.cc
      FAILED: lib/googletest-1.10.x/googlemock/CMakeFiles/gmock_main.dir/src/gmock-all.cc.obj
      ..\lib\googletest-1.10.x\googletest\src\gtest-all.cc: fatal error C1041: cannot open program database 'D:\a\mixxx\mixxx\build\bin\gmock_main.pdb'; if multiple CL.EXE write to the same .PDB file, please use /FS
      cl : Command line warning D9025 : overriding '/Z7' with '/Zi'
      497db77a
  13. 25 Feb, 2021 1 commit
    • Niels Dekker's avatar
      overload PrintTo for std::type_info and std::type_index · ac3c2a8d
      Niels Dekker authored
      Included the string returned by their `name()` member function with the output of `PrintTo`.
      
      Typical use case:
      
          std::unique_ptr<AbstractProduct> product = FactoryMethod();
          // Assert that the product is of type X:
          ASSERT_EQ(std::type_index{typeid(*product)},
                    std::type_index{typeid(ProductX)});
      
      Possible output in case of a test assert failure, now including the names of the compared type indices:
      
      > error: Expected equality of these values:
      >  std::type_index(typeid(*product))
      >    Which is: 8-byte object <D0-65 54-8C F6-7F 00-00> ("class ProductY")
      >  std::type_index(typeid(ProductX))
      >    Which is: 8-byte object <40-64 54-8C F6-7F 00-00> ("class ProductX")
      
      With help from Krystian Kuzniarek.
      ac3c2a8d
  14. 22 Feb, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · 1de637fb
      Abseil Team authored
      Remove anchors from page titles in docs
      
      PiperOrigin-RevId: 358474917
      1de637fb