- 26 May, 2022 1 commit
-
-
Aaron Jacobs authored
In order to make the diff more readable in an upcoming commit that requires the method to be templated on the action's result type. PiperOrigin-RevId: 451157029 Change-Id: I57beb7544efccd0459efb3a1f039ea45cd7c7602
-
- 26 Apr, 2022 1 commit
-
-
Aaron Jacobs authored
This is necessary for generic support of these actions, since `DoAll` is a frequently-used action wrapper. PiperOrigin-RevId: 444561964 Change-Id: I02edb55e35ab4207fbd71e371255a319c8253136
-
- 22 Apr, 2022 1 commit
-
-
Derek Mauro authored
PiperOrigin-RevId: 443715444 Change-Id: I3ffd54b63d2728ae4a668ee7875c8c3c8188087c
-
- 09 Apr, 2022 1 commit
-
-
Abseil Team authored
This provides a type-safe way for an action to express that it wants to be called only once, or to capture move-only objects. It is a generalization of the type system-evading hack in ByMove, with the improvement that it works for _any_ action (including user-defined ones), and correctly expresses that the action can only be used with WillOnce. I'll make existing actions benefit in a future commit. PiperOrigin-RevId: 440496139 Change-Id: I4145d191cca5655995ef41360bb126c123cb41d3
-
- 15 Mar, 2022 1 commit
-
-
Abseil Team authored
A few tests are examining code locations and looking af the resulting line numbers to verify that GoogleTest shows those to users correctly. Some of those locations change when clang-format is run. For those locations, I've wrapped portions in: // clang-format off ... // clang-format on There may be other locations that are currently not tickled by running clang-format. PiperOrigin-RevId: 434844712 Change-Id: I3a9f0a6f39eff741c576b6de389bef9b1d11139d
-
- 18 Jan, 2022 1 commit
-
-
Abseil Team authored
PiperOrigin-RevId: 422559250 Change-Id: I9f630f2186724950e5e9fbd7093d5264e8bf0a71
-
- 24 Sep, 2021 1 commit
-
-
Christian Clauss authored
-
- 24 Jul, 2021 1 commit
-
-
slowy07 authored
-
- 22 Jul, 2021 1 commit
-
-
Abseil Team authored
Delete GOOGLETEST_CM.* tags from C++ code. PiperOrigin-RevId: 386268534
-
- 13 May, 2021 1 commit
-
-
Abseil Team authored
Support templating MockFunction over function objects besides std::function. PiperOrigin-RevId: 373586967
-
- 16 Mar, 2021 1 commit
-
-
Abseil Team authored
Internal change PiperOrigin-RevId: 362040448
-
- 18 Feb, 2021 1 commit
-
-
Abseil Team authored
Make include guards conform with https://google.github.io/styleguide/cppguide.html#The__define_Guard, attempt #2 PiperOrigin-RevId: 357056902
-
- 11 Feb, 2021 2 commits
-
-
Abseil Team authored
Revert include guard fix PiperOrigin-RevId: 356588893
-
Abseil Team authored
Make include guards conform with https://google.github.io/styleguide/cppguide.html#The__define_Guard PiperOrigin-RevId: 355882793
-
- 22 Dec, 2020 1 commit
-
-
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
-
- 24 Apr, 2020 2 commits
-
-
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(); ^ -
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.
-
- 18 Mar, 2020 1 commit
-
-
Adam Badura authored
-
- 22 Nov, 2019 1 commit
-
-
Krystian Kuzniarek authored
-
- 06 Sep, 2019 1 commit
-
-
kuzkry authored
Merge 7f4f58da20e1066a888d3e4bcbef541db798a605 into 90a443f9 Closes #2395 COPYBARA_INTEGRATE_REVIEW=https://github.com/google/googletest/pull/2395 from kuzkry:custom-type-traits-remove_reference 7f4f58da20e1066a888d3e4bcbef541db798a605 PiperOrigin-RevId: 266189044
-
- 20 Aug, 2019 1 commit
-
-
Krystian Kuzniarek authored
Due to confusion arisen from "iff" standing for "if and only if", this commit uses the latter.
-
- 14 Aug, 2019 1 commit
-
-
Krystian Kuzniarek authored
-
- 01 Aug, 2019 1 commit
-
-
Krystian Kuzniarek authored
MockFunction's private member cannot be reached from outside and all its non-static member functions are not const.
-
- 30 Jul, 2019 1 commit
-
-
Krystian Kuzniarek authored
-
- 16 Jul, 2019 1 commit
-
-
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.
-
- 22 Jan, 2019 1 commit
-
-
Abseil Team authored
Make internal FunctionMocker class final PiperOrigin-RevId: 230332778
-
- 18 Jan, 2019 1 commit
-
-
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
-
- 02 Jan, 2019 2 commits
-
-
misterg authored
Internal Change PiperOrigin-RevId: 227575279
-
Abseil Team authored
Remove the #ifs for old, unsupported and buggy compilers: * old versions of GCC & MSVC * Symbian PiperOrigin-RevId: 227116941
-
- 03 Dec, 2018 1 commit
-
-
Abseil Team authored
Applied fixes for ClangTidy modernize-use-override and modernize-use-using. PiperOrigin-RevId: 223800219
-
- 08 Nov, 2018 1 commit
-
-
Abseil Team authored
Move FunctionMocker and MockFunction out of the pump file and implement with variadic templates. PiperOrigin-RevId: 220640265
-
- 31 Oct, 2018 1 commit
-
-
misterg authored
Remove scoped_ptr replace with std::unique_ptr PiperOrigin-RevId: 219291284
-
- 29 Oct, 2018 1 commit
-
-
misterg authored
Remove linked_ptr and use std::shared_ptr instead PiperOrigin-RevId: 219129336
-
- 28 Oct, 2018 1 commit
-
-
Vadim Barkov authored
-
- 26 Oct, 2018 2 commits
-
-
Abseil Team authored
Remove linked_ptr and use std::shared_ptr instead PiperOrigin-RevId: 218618184
-
misterg authored
Remove linked_ptr and use std::shared_ptr instead PiperOrigin-RevId: 218571466
-
- 18 Oct, 2018 1 commit
-
-
Abseil Team authored
C++11 code cleanup. PiperOrigin-RevId: 217364243
-
- 16 Oct, 2018 1 commit
-
-
Jonathan Wendeborn authored
-
- 12 Oct, 2018 1 commit
-
-
Robert Woldberg authored
-
- 05 Oct, 2018 1 commit
-
-
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
-