1. 13 May, 2021 1 commit
    • Abseil Team's avatar
      Googletest export · 662fe38e
      Abseil Team authored
      Support templating MockFunction over function objects besides std::function.
      
      PiperOrigin-RevId: 373586967
      662fe38e
  2. 16 Mar, 2021 1 commit
  3. 18 Feb, 2021 1 commit
  4. 11 Feb, 2021 2 commits
  5. 22 Dec, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · ca4b7c9f
      Abseil Team authored
      Give each of Naggy/Nice/StrictMock a base class whose constructor runs before
      the mocked class's constructor, and a destructor that runs after the mocked
      class's destructor, so that any mock methods run in either the constructor or
      destructor use the same strictness as other calls.
      
      PiperOrigin-RevId: 348511612
      ca4b7c9f
  6. 24 Apr, 2020 2 commits
    • Arthur O'Dwyer's avatar
      Fix a -Wdeprecated warning. · 11b3cec1
      Arthur O'Dwyer authored
          gmock-spec-builders.h:503:3: error:
          definition of implicit copy constructor for 'Expectation' is deprecated
          because it has a user-declared destructor [-Werror,-Wdeprecated]
              ~Expectation();
              ^
      11b3cec1
    • Arthur O'Dwyer's avatar
      Remove all uses of GTEST_DISALLOW_{MOVE_,}ASSIGN_. · 766ac2e1
      Arthur O'Dwyer authored
      None of these are strictly needed for correctness.
      A large number of them (maybe all of them?) trigger `-Wdeprecated`
      warnings on Clang trunk as soon as you try to use the implicitly
      defaulted (but deprecated) copy constructor of a class that has
      deleted its copy assignment operator.
      
      By declaring a deleted copy assignment operator, the old code
      also caused the move constructor and move assignment operator
      to be non-declared. This means that the old code never got move
      semantics -- "move-construction" would simply call the defaulted
      (but deprecated) copy constructor instead. With the new code,
      "move-construction" calls the defaulted move constructor, which
      I believe is what we want to happen. So this is a runtime
      performance optimization.
      
      Unfortunately we can't yet physically remove the definitions
      of these macros from gtest-port.h, because they are being used
      by other code internally at Google (according to zhangxy988).
      But no new uses should be added going forward.
      766ac2e1
  7. 18 Mar, 2020 1 commit
  8. 22 Nov, 2019 1 commit
  9. 06 Sep, 2019 1 commit
  10. 20 Aug, 2019 1 commit
  11. 14 Aug, 2019 1 commit
  12. 01 Aug, 2019 1 commit
  13. 30 Jul, 2019 1 commit
  14. 16 Jul, 2019 1 commit
    • Adam Badura's avatar
      Add missing <functional> include · 1f809607
      Adam Badura authored
      gmock-spec-builders.h uses std::function (in MockFunction) but did
      not include <functional> to provide it. Apparently, it worked since
      the header must have been included by something else but better be
      safe than sorry.
      1f809607
  15. 22 Jan, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · 569fba4d
      Abseil Team authored
      Make internal FunctionMocker class final
      
      PiperOrigin-RevId: 230332778
      569fba4d
  16. 18 Jan, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · 9518a574
      Abseil Team authored
      Fix mocking method arguments with templated copy constructors.
      
      A previous change removed workarounds for old compilers from googletest and googlemock. Unfortunately, a bit of code that started as a workaround for Symbian's C++ compiler is still needed to avoid copy/move constructor ambiguity when mocking functions with certain argument types.
      
      The test case added by this CL is extracted from Chrome's codebase, and was discovered while attempting to roll googletest.
      
      PiperOrigin-RevId: 229801765
      9518a574
  17. 02 Jan, 2019 2 commits
    • misterg's avatar
      Googletest export · 14c2fba7
      misterg authored
      Internal Change
      
      PiperOrigin-RevId: 227575279
      14c2fba7
    • Abseil Team's avatar
      Googletest export · f8b1c1af
      Abseil Team authored
      Remove the #ifs for old, unsupported and buggy compilers:
      * old versions of GCC & MSVC
      * Symbian
      
      PiperOrigin-RevId: 227116941
      f8b1c1af
  18. 03 Dec, 2018 1 commit
    • Abseil Team's avatar
      Googletest export · 26743363
      Abseil Team authored
      Applied fixes for ClangTidy modernize-use-override and modernize-use-using.
      
      PiperOrigin-RevId: 223800219
      26743363
  19. 08 Nov, 2018 1 commit
    • Abseil Team's avatar
      Googletest export · de5be0eb
      Abseil Team authored
      Move FunctionMocker and MockFunction out of the pump file and implement with variadic templates.
      
      PiperOrigin-RevId: 220640265
      de5be0eb
  20. 31 Oct, 2018 1 commit
    • misterg's avatar
      Googletest export · e857f9cd
      misterg authored
      Remove scoped_ptr replace with std::unique_ptr
      
      PiperOrigin-RevId: 219291284
      e857f9cd
  21. 29 Oct, 2018 1 commit
    • misterg's avatar
      Googletest export · 80b43d90
      misterg authored
      Remove linked_ptr and use std::shared_ptr instead
      
      PiperOrigin-RevId: 219129336
      80b43d90
  22. 28 Oct, 2018 1 commit
  23. 26 Oct, 2018 2 commits
    • Abseil Team's avatar
      Googletest export · b57c7039
      Abseil Team authored
      Remove linked_ptr and use std::shared_ptr instead
      
      PiperOrigin-RevId: 218618184
      b57c7039
    • misterg's avatar
      Googletest export · a50e4f05
      misterg authored
      Remove linked_ptr and use std::shared_ptr instead
      
      PiperOrigin-RevId: 218571466
      a50e4f05
  24. 18 Oct, 2018 1 commit
  25. 16 Oct, 2018 1 commit
  26. 12 Oct, 2018 1 commit
  27. 05 Oct, 2018 1 commit
    • Abseil Team's avatar
      Apply clang-tidy modernize-use-nullptr to googletest. · 4bb49ed6
      Abseil Team authored
      Now that googletest has moved to C++11, it should no longer
      use NULL or 0 for the null pointer. This patch converts all
      such usages to nullptr using clang-tidy.
      
      This prevents LLVM from issuing -Wzero-as-null-pointer-constant
      warnings.
      
      PiperOrigin-RevId: 215814400
      4bb49ed6
  28. 20 Aug, 2018 1 commit
  29. 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
  30. 27 Jul, 2018 1 commit
    • Gennadiy Civil's avatar
      · 984cba30
      Gennadiy Civil authored
      Formatting changes for automatic code management
      984cba30
  31. 17 Jul, 2018 1 commit
  32. 25 Apr, 2018 1 commit
  33. 18 Apr, 2018 1 commit
  34. 12 Apr, 2018 1 commit
    • Victor Costan's avatar
      Remove multiple inheritance from "unintesting call" mock classes. · 1324e2d7
      Victor Costan authored
      Internal CL 156157936, which was published in commit
      fe402c27, introduced undefined behavior
      by casting a base class (internal::{Naggy,Nice,Strict}Base<MockClass>,
      using the curiously recurring template pattern) pointer to a derived
      class ({Naggy,Nice,Strict}Mock<MockClass>), in the base class'
      constructor. At that point, the object isn't guaranteed to have taken on
      the shape of the derived class, and casting is undefined behavior.
      
      The undefined behavior was caught by Chrome's CFI build bot [1], and
      prevents rolling googletest past that commit / CL.
      
      This commit simplifies the {Naggy,Nice,Strict}Mock class hierarchy in
      a way that removes the undefined behavior.
      
      [1] https://www.chromium.org/developers/testing/control-flow-integrity
      1324e2d7
  35. 05 Apr, 2018 1 commit