1. 05 Jul, 2017 1 commit
  2. 23 Jun, 2017 2 commits
  3. 21 Jun, 2017 1 commit
  4. 11 Jun, 2017 2 commits
  5. 08 Jun, 2017 1 commit
  6. 23 May, 2017 1 commit
  7. 18 May, 2017 2 commits
  8. 16 May, 2017 3 commits
  9. 15 May, 2017 5 commits
    • Nico Weber's avatar
      Gender-neutralize comments in gtest.h. · e1466ba4
      Nico Weber authored
      This merges a Google-internal change.
      e1466ba4
    • Nico Weber's avatar
      Use std::string and ::string explicitly in gtest and gmock code. · 09fd5b3e
      Nico Weber authored
      This merges a Google-internal change (117235625).
      
      Original CL description:
      This CL was created manually in about an hour with sed, a Python script
      to find all the places unqualified 'string' was mentioned, and some help
      from Emacs to add the "std::" qualifications, plus a few manual tweaks.
      09fd5b3e
    • Nico Weber's avatar
      Fix -Wmicrosoft-cast warnings when using gtest with clang on Windows. · b2cbbec0
      Nico Weber authored
      This upstreams a Google-internal change.
      
      Original CL description:
      The C++ standard says that function pointers are not implicitly
      convertible to object pointers. Visual Studio disregards that and allows
      implicit conversion between function pointers and object points, and
      enough code relies on this that clang follows suit in
      Microsoft-compatibility mode.
      
      However, clang emits a -Wmicrosoft-cast warning when such a conversion
      is done:
      
      E:\b\c\b\win_clang\src\sandbox\win\src\sync_dispatcher.cc(42,7):
          warning: implicit conversion between pointer-to-function and
                   pointer-to-object is a Microsoft extension [-Wmicrosoft-cast]
      
      This change fixes this warning in gtest, while hopefully not changing
      any behavior. The change does two things:
      
      1. It replaces the if in DefaultPrintTo with SFINAE
      2. In C++11 mode, it uses enable_if<is_function<>> instead of
         ImplicitlyConvertible<T*, const void*> to check if the
         explicit cast is needed.
      
      With this change, functions will use the branch with the reintpret_casts
      with Visual Studio and clang/win, and clang no longer needs to warn
      that it implicitly converts a function pointer to a void pointer.
      b2cbbec0
    • Nico Weber's avatar
      Fixing typo in documentation. · 6c0c8a7e
      Nico Weber authored
      This upstreams a Google-internal change.
      6c0c8a7e
    • Billy Donahue's avatar
      Merge pull request #725 from donhuff/xcode-headers · 294f72bc
      Billy Donahue authored
      Add missing headers to Xcode framework target.
      294f72bc
  10. 11 May, 2017 1 commit
  11. 07 May, 2017 1 commit
  12. 06 May, 2017 1 commit
    • Kamil Rytarowski's avatar
      Add NetBSD support · fac0dfbe
      Kamil Rytarowski authored
      NetBSD is a modern UNIX-like Operating System.
      
      Enable GTEST_HAS_PTHREAD and GTEST_HAS_DEATH_TEST on NetBSD.
      fac0dfbe
  13. 04 May, 2017 1 commit
  14. 02 May, 2017 3 commits
  15. 02 Mar, 2017 1 commit
    • Dan Kegel's avatar
      Minimal changes to fix build failures on Microsoft Visual Studio 2015 · 518e0519
      Dan Kegel authored
      Fixes the following errors:
      
      hash_map(17): error C2338: <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning. [googlemock\gtest\gtest-printers_test.vcxproj]
      hash_set(17): error C2338: <hash_set> is deprecated and will be REMOVED. Please use <unordered_set>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning. [googlemock\gtest\gtest-printers_test.vcxproj]
      googletest\test\gtest_catch_exceptions_test_.cc(152): error C2220: warning treated as error - no 'object' file generated
      googletest\test\gtest_catch_exceptions_test_.cc(152): warning C4297: 'CxxExceptionInDestructorTest::~CxxExceptionInDestructorTest': function assumed not to throw an exception but does
        googletest\test\gtest_catch_exceptions_test_.cc(152): note: destructor or deallocator has a (possibly implicit) non-throwing exception specification
      
      There were already some checks for _MSC_VER in the code, so this commit
      continues in that vein.
      518e0519
  16. 26 Feb, 2017 2 commits
  17. 17 Feb, 2017 1 commit
  18. 02 Feb, 2017 1 commit
  19. 31 Jan, 2017 1 commit
  20. 23 Jan, 2017 2 commits
  21. 10 Jan, 2017 1 commit
  22. 22 Dec, 2016 1 commit
    • David Benjamin's avatar
      Annotate ColoredPrintf with the format attribute and fix bugs. · 53c478d6
      David Benjamin authored
      googletest doesn't currently build with clang's very aggressive
      -Wformat-nonliteral warning. It requires that all non-literal format
      strings come from the argument of a function annotated with a compatible
      format attribute.
      
      Fixing that reports that ColoredPrintf's callers weren't passing the
      normal -Wformat warning. Some messages were passed directly into the
      format string rather than via "%s".
      53c478d6
  23. 18 Dec, 2016 2 commits
  24. 17 Dec, 2016 1 commit
    • Craig Scott's avatar
      Added CMake configure-time download instructions to docs · cb502b7a
      Craig Scott authored
      Adds instructions for how to add gtest and gmock to
      another CMake project directly. Downloading of the
      googletest sources happens as configure time, allowing
      it to be added to the main build directly via the
      add_subdirectory() command. This ensures googletest is
      built with the same compiler settings, etc. and will
      typically result in a more robust and more convenient
      build arrangement.
      cb502b7a
  25. 03 Nov, 2016 1 commit
  26. 02 Nov, 2016 1 commit