1. 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
  2. 14 Jul, 2016 2 commits
  3. 17 Feb, 2016 1 commit
  4. 12 Nov, 2015 1 commit
  5. 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
  6. 12 Oct, 2015 2 commits
  7. 17 Sep, 2015 1 commit
  8. 08 Sep, 2015 2 commits
  9. 25 Aug, 2015 1 commit