1. 16 Aug, 2018 1 commit
  2. 14 Aug, 2018 2 commits
    • Gennadiy Civil's avatar
      · 265efde9
      Gennadiy Civil authored
      Comments changes, no functionality changes. 
      265efde9
    • Gennadiy Civil's avatar
      · a3c0dd0f
      Gennadiy Civil authored
      Comments changes, no functionality changes
      a3c0dd0f
  3. 25 Jul, 2018 1 commit
  4. 13 Jul, 2018 1 commit
  5. 03 May, 2018 3 commits
  6. 01 May, 2018 1 commit
  7. 26 Mar, 2018 1 commit
  8. 22 Mar, 2018 1 commit
  9. 21 Mar, 2018 1 commit
  10. 05 Mar, 2018 1 commit
  11. 13 Feb, 2018 1 commit
  12. 03 Jan, 2018 2 commits
  13. 30 Jun, 2017 1 commit
    • Scott Slack-Smith's avatar
      *Silence false positive memory leaks reported by Microsoft's debug CRT* · c958e26f
      Scott Slack-Smith authored
      Add a new RAII MemoryIsNotDeallocated class that excludes memory allocations from Microsoft’s debug CRT leak detection report.
      We use this RAII class to silence 2 false positive leaks that are caused by memory allocations that are intentionally never deallocated.
      
      *Background*
      The MS debug CRT has a lightweight memory leak detection mechanism that can only detect if a memory allocation is missing a matching deallocation.
      Consequently, it will report a false positive leak for memory that’s intentionally never deallocated. For example, memory that’s reachable for the entire lifetime of a app.
      Note the MS debug CRT is always tracking memory allocations but the final memory leak report is disabled by default. As you can’t avoid paying for its cost, you may as well use it.
      
      The memory leak report can be enabled by calling the following function
        #ifdef _MSC_VER
        _CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);
        #endif // _MSC_VER
      anywhere before exiting main.
      
      For example, the following are the false positive leaks reported before this change;
      
      Detected memory leaks!
      Dumping objects ->
      {750} normal block at 0x015DF938, 8 bytes long.
      Data: <  ]     > 00 F9 5D 01 00 00 00 00
      {749} normal block at 0x015DEE60, 32 bytes long.
      Data: <` ] ` ] ` ]     > 60 EE 5D 01 60 EE 5D 01 60 EE 5D 01 01 01 CD CD
      {748} normal block at 0x015DF900, 12 bytes long.
      Data: <8 ] ` ]     > 38 F9 5D 01 60 EE 5D 01 00 00 00 00
      {747} normal block at 0x015DA0F8, 24 bytes long.
      Data: <                > FF FF FF FF FF FF FF FF 00 00 00 00 00 00 00 00
      Object dump complete.
      
      As you can see from above it’s not easy to identify the above are false positives. Consequently, if false positive leaks are not fixed or silenced, then it becomes impractical to identify real memory leaks.
      c958e26f
  14. 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
  15. 02 May, 2017 1 commit
  16. 27 Apr, 2016 1 commit
  17. 26 Feb, 2016 1 commit
  18. 24 Feb, 2016 1 commit
  19. 02 Oct, 2015 2 commits
  20. 25 Aug, 2015 1 commit
  21. 27 Jul, 2015 1 commit
  22. 24 Jul, 2015 2 commits
  23. 17 Jul, 2015 3 commits
  24. 18 Jun, 2014 1 commit
  25. 15 May, 2014 1 commit
  26. 24 Mar, 2014 1 commit
  27. 12 Mar, 2014 1 commit
  28. 22 Feb, 2013 1 commit
  29. 15 Nov, 2012 1 commit
    • jgm's avatar
      Unfortunately, the svn repo is a bit out of date. This commit contains 8 · 87fdda2c
      jgm authored
      changes that haven't made it to svn. The descriptions of each change are listed
      below.
      
      - Fixes some python shebang lines.
      
      - Add ElementsAreArray overloads to gmock. ElementsAreArray now makes a copy of
        its input elements before the conversion to a Matcher. ElementsAreArray can
        now take a vector as input. ElementsAreArray can now take an iterator pair as
        input.
      
      - Templatize MatchAndExplain to allow independent string types for the matcher
        and matchee. I also templatized the ConstCharPointer version of
        MatchAndExplain to avoid calls with "char*" from using the new templated
        MatchAndExplain.
      
      - Fixes the bug where the constructor of the return type of ElementsAre() saves
        a reference instead of a copy of the arguments.
      
      - Extends ElementsAre() to accept arrays whose sizes aren't known.
      
      - Switches gTest's internal FilePath class from testing::internal::String to
        std::string. testing::internal::String was introduced when gTest couldn't
        depend on std::string.  It's now deprecated.
      
      - Switches gTest & gMock from using testing::internal::String objects to
        std::string. Some static methods of String are still in use.  We may be able
        to remove some but not all of them.  In particular, String::Format() should
        eventually be removed as it truncates the result at 4096 characters, often
        causing problems.
      87fdda2c
  30. 19 Sep, 2012 1 commit
  31. 09 Mar, 2012 1 commit
  32. 04 Nov, 2011 1 commit