Skip to content
Snippets Groups Projects
  1. Jun 13, 2020
  2. Jun 11, 2020
    • Abseil Team's avatar
      Googletest export · 13a433a9
      Abseil Team authored
      Change string matchers, like HasSubstr, to accept `string_view` input if available.
      
      PiperOrigin-RevId: 315726484
      13a433a9
    • Abseil Team's avatar
      Googletest export · 9f287b46
      Abseil Team authored
      Make visible ParseInt32 in case users have separate gmock/gtest libraries and hidden-by-default symbols.
      
      This function is still considered an internal implementation detail and is subject to change without notice. It is still unsafe/unsupported to link together libraries built at different commits.
      
      PiperOrigin-RevId: 315405429
      9f287b46
    • Abseil Team's avatar
      Googletest export · ec94d9f2
      Abseil Team authored
      Fail TEST_Ps or TYPED_TEST_Ps that are defined but are not instantiated, as well as the opposite case, where INSTANTIATE_TEST_SUITE_P or INSTANTIATE_TYPED_TEST_SUITE_P is used but without any matching TEST_P or TYPED_TEST_P.
      
      PiperOrigin-RevId: 315255779
      ec94d9f2
    • dmauro's avatar
      Googletest export · 1b0cdaae
      dmauro authored
      Add missing static_cast to char32_t printer
      
      PiperOrigin-RevId: 314925583
      1b0cdaae
  3. Jun 05, 2020
    • dmauro's avatar
      Googletest export · 4fe01803
      dmauro authored
      Adds support for printing the types char8_t, char16_t, and char32_t
      
      This changes prints these types as Unicode code points. It is possible
      that there is a better way of printing these types, but that change is
      more complex, and the format in which Googletest prints these types is
      subject to change if someone implements a better way of printing them.
      
      This fixes the C++20 build, which removed support for printing these types.
      https://en.cppreference.com/w/cpp/io/basic_ostream/operator_ltlt2
      
      Fixes #2854
      
      PiperOrigin-RevId: 314826912
      4fe01803
    • Gennadiy Rozental's avatar
      Merge pull request #2742 from kuzkry:c++17-type-printers · 07d4a6e9
      Gennadiy Rozental authored
      PiperOrigin-RevId: 314593695
      07d4a6e9
    • Abseil Team's avatar
      Googletest export · 210aab09
      Abseil Team authored
      gMock Cookbook: Slight rewording
      
      Remove "I" because documentation can have multiple authors. And remove unnecessary "guy".
      
      PiperOrigin-RevId: 314533746
      210aab09
  4. Jun 03, 2020
  5. May 29, 2020
  6. May 25, 2020
  7. May 20, 2020
  8. May 14, 2020
    • Abseil Team's avatar
      Googletest export · 011959aa
      Abseil Team authored
      Remove broken URL.
      
      PiperOrigin-RevId: 311377660
      011959aa
    • Abseil Team's avatar
      Googletest export · 8a32680c
      Abseil Team authored
      Fixed #2823 - Make it so that a semicolon appearing after an invocation of GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_ does not trigger a redundant semicolon warning.
      
      This works by introducing an else block with a statement that intentionally does not end with a semicolon, forcing users to place the semicolon after the expansion. The approach here is preferred as opposed to removing semicolons that appear after each invocation because complete statements that do not have a visible semicolon or braces confuse users and code formatters, since the macro invocation looks superficially like an expression.
      
      PiperOrigin-RevId: 311327491
      8a32680c
  9. May 13, 2020
  10. May 08, 2020
    • Martin Storsjö's avatar
      Remove an explicit include of debugapi.h · d86e9e23
      Martin Storsjö authored
      The documentation for IsDebuggerPresent says that one just should
      include windows.h, as that one is an umbrella header that includes
      the header that declares IsDebuggerPresent. In older Windows SDKs,
      debugapi.h didn't exist and IsDebuggerPresent was declared in
      winbase.h (also included by windows.h).
      
      This should fix issue #2822 properly.
      d86e9e23
    • Martin Storsjö's avatar
      Revert "Googletest export" · 09f58751
      Martin Storsjö authored
      This reverts commit a9f6c1ed.
      
      That commit cannot fix the issue it sets out to fix.
      
      The original issue, #2822, was that building with a toolset
      targeting XP compatibility is missing the debugapi.h header -
      as debugapi.h didn't exist in older Windows SDKs.
      
      Commit a9f6c1ed misinterpreted
      the Microsoft documentation about IsDebuggerPresent. The information
      about which header to use, "debugapi.h (include Windows.h)" means
      that the function declaration currently lives in debugapi.h, but
      for compatibility, just include the Windows.h umbrella header.
      In older Windows SDKs (e.g. the v6.0a SDK), IsDebuggerPresent
      is declared in winbase.h, and debugapi.h doesn't exist at all in those
      versions.
      
      Including Windows.h with a different capitalization than the existing
      include won't help finding headers that don't exist.
      
      Including Windows.h with a capital W breaks cross compilation with mingw
      toolchains, where the header always has been spelled with a lower case
      W. When building on native windows, the file system is case insensitive
      and the capitalization doesn't matter.
      
      This fixes issue #2840.
      09f58751
Loading