1. 03 Jan, 2018 1 commit
    • David Benjamin's avatar
      Pass the -Wmissing-declarations warning. · b3d9be5c
      David Benjamin authored
      This makes it easier to use GTest in projects that build with the
      -Wmissing-declarations warning. This fixes the warning in headers and
      source files, though not GTest's own tests as it is rather noisy there.
      b3d9be5c
  2. 25 Oct, 2017 2 commits
  3. 22 Aug, 2017 1 commit
  4. 15 May, 2017 1 commit
    • 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
  5. 14 Jul, 2016 2 commits
  6. 12 Nov, 2015 1 commit
  7. 11 Nov, 2015 3 commits
    • Mark Mentovai's avatar
      Use a templated helper to wrap the cast · cfe466a0
      Mark Mentovai authored
      The helper needs to be templated because its argument type can’t be
      known. FloatingPointTest is instantiated with RawType = float and
      RawType = double, so Bits will be an unsigned 32-bit or 64-bit type.
      size_t will be either 32 or 64 bits depending on the system’s
      definition, typically based on pointer size.
      cfe466a0
    • Mark Mentovai's avatar
    • Mark Mentovai's avatar
      Fix warnings encountered in MSVC build of gtest/gmock tests · 8b085f0d
      Mark Mentovai authored
      This fixes these warnings:
      
      …\gtest\googletest\test\gtest-port_test.cc(78) : error C2220: warning treated as error - no 'object' file generated
      …\gtest\googletest\test\gtest-port_test.cc(78) : warning C4309: 'static_cast' : truncation of constant value
      …\gtest\googletest\test\gtest-port_test.cc(79) : warning C4309: 'static_cast' : truncation of constant value
      
      …\gtest\googlemock\test\gmock-matchers_test.cc(2712) : error C2220: warning treated as error - no 'object' file generated
              …\gtest\googlemock\test\gmock-matchers_test.cc(2706) : while compiling class template member function 'testing::gmock_matchers_test::FloatingPointTest<float>::FloatingPointTest(void)'
              …\gtest\googlemock\test\gmock-matchers_test.cc(2896) : see reference to function template instantiation 'testing::gmock_matchers_test::FloatingPointTest<float>::FloatingPointTest(void)' being compiled
              …\gtest\googlemock\test\gmock-matchers_test.cc(2896) : see reference to class template instantiation 'testing::gmock_matchers_test::FloatingPointTest<float>' being compiled
      …\gtest\googlemock\test\gmock-matchers_test.cc(2712) : warning C4267: 'argument' : conversion from 'size_t' to 'const unsigned int', possible loss of data
      …\gtest\googlemock\test\gmock-matchers_test.cc(2714) : warning C4267: 'argument' : conversion from 'size_t' to 'const unsigned int', possible loss of data
      …\gtest\googlemock\test\gmock-matchers_test.cc(2716) : warning C4267: 'argument' : conversion from 'size_t' to 'const unsigned int', possible loss of data
      …\gtest\googlemock\test\gmock-matchers_test.cc(2717) : warning C4267: 'argument' : conversion from 'size_t' to 'const unsigned int', possible loss of data
      …\gtest\googlemock\test\gmock-matchers_test.cc(2718) : warning C4267: 'argument' : conversion from 'size_t' to 'const unsigned int', possible loss of data
      …\gtest\googlemock\test\gmock-matchers_test.cc(2721) : warning C4267: 'argument' : conversion from 'size_t' to 'const unsigned int', possible loss of data
      …\gtest\googlemock\test\gmock-matchers_test.cc(2723) : warning C4267: 'argument' : conversion from 'size_t' to 'const unsigned int', possible loss of data
      8b085f0d
  8. 12 Oct, 2015 2 commits
  9. 25 Aug, 2015 1 commit
  10. 19 Jul, 2015 1 commit
  11. 28 Apr, 2015 2 commits
  12. 08 Jan, 2015 1 commit
  13. 17 Nov, 2014 3 commits
  14. 28 Jul, 2014 2 commits
  15. 19 May, 2014 1 commit
    • billydonahue's avatar
      Push several shanges: · 1f5fdea4
      billydonahue authored
          Make single argument constructors explicit in macros.
      
          Remove NOMINMAX macro.
      
          Add macros for disabling Microsoft Visual C++ warnings.
      
          Add WhenDynamicCastTo<T> matcher.
          A matcher that matches a pointer that matches inner_matcher when
          dynamic_cast<T> is applied.
      
          Add IWYU export pragmas to the tuple include lines.
      
          Fix NativeArray to not require a copy constructor unless we ask for one.
          This allows ElementsAre() to support non-copyable types.
      
          Examine WINAPI_FAMILY_PARTITION macros to better distinguish windows platforms.
          Author: martin@martin.st
          From: https://codereview.appspot.com/57220043/
      1f5fdea4
  16. 02 Apr, 2014 1 commit
  17. 24 Mar, 2014 1 commit
  18. 12 Mar, 2014 1 commit
  19. 04 Dec, 2013 1 commit
  20. 03 Dec, 2013 2 commits
  21. 18 Sep, 2013 1 commit
  22. 08 Aug, 2013 1 commit
  23. 30 Jul, 2013 1 commit
  24. 28 Jul, 2013 1 commit
  25. 18 Jun, 2013 1 commit
  26. 24 Apr, 2013 1 commit
  27. 27 Mar, 2013 1 commit
  28. 25 Mar, 2013 1 commit
  29. 01 Mar, 2013 2 commits