- 09 Nov, 2020 1 commit
-
-
Abseil Team authored
Change ACTION{,_Pn,_TEMPLATE} macros to build functors rather than ActionInterface<> subclasses, thus changing the Action<> wrappers they create to use the modernized (non-const) argument tuple type, allowing these macros to mutate their arguments. Functor-based Action<>s deep-copy the implementing object, so have the functors use a shared_ptr to the non-trivial state of bound value parameters. No longer specialize that shared state to the particular action signature, encoding that information instead only in the instantiation of the implementation function. PiperOrigin-RevId: 341116208
-
- 05 Nov, 2020 1 commit
-
-
ofats authored
Rewrite InvokeArgument action without using pump. PiperOrigin-RevId: 340861582
-
- 10 Sep, 2020 1 commit
-
-
Abseil Team authored
Mark ACTION_Pn()-generated functions as must-use-result. This catches when a client creates an action and discards it, thinking that the action has actually been applied to something. This will help people who make the mistake of defining, for example, both `void Use(Foo*)` and `ACTION(Use) { Use(arg); }` for later application to a Foo. With such an overload, a client may then write `Use();`, forgetting the param and being confused why nothing happens. This also catches when a client defines their own action in terms of an ACTION()-generated one, invokes the ACTION's builder, and then fails to invoke the resulting action, thinking it's operating on the outer action's parameters. PiperOrigin-RevId: 330614454
-
- 28 Jul, 2020 1 commit
-
-
ofats authored
Stop using ADL for InvokeArgument action. PiperOrigin-RevId: 323234396
-
- 28 May, 2020 2 commits
-
-
dmauro authored
Rollback of warning on unused ACTION result change PiperOrigin-RevId: 313380971
-
Abseil Team authored
Mark ACTION_Pn()-generated functions as must-use-result. This catches when a client creates an action and discards it, thinking that the action has actually been applied to something. This will help people who make the mistake of defining, for example, both `void Use(Foo*)` and `ACTION(Use) { Use(arg); }` for later application to a Foo. With such an overload, a client may then write `Use();`, forgetting the param and being confused why nothing happens. This also catches when a client defines their own action in terms of an ACTION()-generated one, invokes the ACTION's builder, and then fails to invoke the resulting action, thinking it's operating on the outer action's parameters. PiperOrigin-RevId: 312108101
-
- 01 May, 2020 1 commit
-
-
Abseil Team authored
Rewrite ReturnNew action without using pump. PiperOrigin-RevId: 308219616
-
- 24 Apr, 2020 1 commit
-
-
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.
-
- 16 Jan, 2020 2 commits
-
-
Abseil Team authored
Use GMOCK_PP to create GMOCK_INTERNAL_ACTION macro. Create GMOCK_INTERNAL_ACTION macro that generates ACTION_P* macroses using GMOCK_PP. PiperOrigin-RevId: 289815906
-
Abseil Team authored
Use GMOCK_PP to generate args boilerplate. Move common args describing part to separate macroses that uses GMOCK_PP to generate sequences. PiperOrigin-RevId: 289655624
-
- 09 Jan, 2020 2 commits
-
-
Abseil Team authored
Move part of functionality of Action* class to the base one. Reduce copypaste. Make constructor and conversion operator of Action* class independent of pump. PiperOrigin-RevId: 288907005
-
Abseil Team authored
Use C++11 variadic templates for Invoke in gmock-generated-actions.h. Replace InvokeArgumentAdl with Invoke that uses C++11 variadic templates. PiperOrigin-RevId: 288449236
-
- 02 Jan, 2020 2 commits
-
-
Abseil Team authored
Use C++11 variadic templates for InvokeArgumentAdl in gmock-generated-actions.h. Make InvokeArgumentAdl use variadic templates to generate its overloads instead of using pump.py syntax. PiperOrigin-RevId: 286267615
-
Abseil Team authored
Use C++11 variadic templates for InvokeArgumentAdl in gmock-generated-actions.h. Make InvokeArgumentAdl use variadic templates to generate its overloads instead of using pump.py syntax. PiperOrigin-RevId: 286148805
-
- 13 Dec, 2019 1 commit
-
-
Abseil Team authored
Use C++11 variadic templates for ActionHelper in gmock-generated-actions.h. Make ActionHelper use variadic templates to generate Perform static member function specializations instead of using pump.py syntax. PiperOrigin-RevId: 284988441
-
- 19 Nov, 2019 1 commit
-
-
Abseil Team authored
Update stale comments to point to proper location. PiperOrigin-RevId: 281157036
-
- 11 Oct, 2019 1 commit
-
-
Robert Luberda authored
Mark more functions with "override" keyword, just like it was done in commit 2460f971. This should prevent compiler from complaining while compiling both user code, and the googletest code itself with the -Wsuggest-override option turned on; with the exception of: * calls to new MOCK_METHOD() in test/gmock-function-mocker_test.cc * calls to old MOCK_METHODx()/MOCK_CONST_METHODx() in other unit test files. Closes #2493
-
- 31 Jul, 2019 1 commit
-
-
Krystian Kuzniarek authored
-
- 16 Jul, 2019 2 commits
-
-
misterg authored
Fix documentation links PiperOrigin-RevId: 258389329
-
Abseil Team authored
Update a broken link in a comment. PiperOrigin-RevId: 257493975
-
- 19 Jun, 2019 1 commit
-
-
Gennadiy Civil authored
Renaming doc files to make the file names more palatable and in preparation for including documentation in sync process
-
- 21 Mar, 2019 1 commit
-
-
Abseil Team authored
Action helpers need to pass by const& so that they can work with unique_ptr. PiperOrigin-RevId: 239062671
-
- 17 Jan, 2019 1 commit
-
-
Abseil Team authored
Refactor the `Invoke` and `InvokeWithoutArgs` actions: - Replace pump'd classes and functions with templates. - Make the polymorphic actions be polymorphic functors instead. - Fix Invoke(Callback*) to work with subclasses of the callbacks, instead of trying to diagnose that in gmock_doctor. PiperOrigin-RevId: 229604112
-
- 17 Dec, 2018 1 commit
-
-
Abseil Team authored
Replace pump'd code for DoAll with variadic templates. PiperOrigin-RevId: 225584656
-
- 13 Dec, 2018 1 commit
-
-
misterg authored
Internal Change PiperOrigin-RevId: 225231727
-
- 20 Nov, 2018 2 commits
-
-
misterg authored
Internal Change PiperOrigin-RevId: 222123106
-
Abseil Team authored
Upgrade WithArgs family of actions to C++11. PiperOrigin-RevId: 221671690
-
- 29 Oct, 2018 1 commit
-
-
misterg authored
Remove linked_ptr and use std::shared_ptr instead PiperOrigin-RevId: 219129336
-
- 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
-
- 09 Oct, 2018 1 commit
-
-
Abseil Team authored
Remove all mention of TR1 tuple and our own implementation of tuple. PiperOrigin-RevId: 216395043
-
- 14 Aug, 2018 2 commits
-
-
Gennadiy Civil authored
Comments changes, no functionality changes
-
Gennadiy Civil authored
-
- 27 Jul, 2018 1 commit
-
-
Gennadiy Civil authored
Formatting changes for automatic code management
-
- 10 Apr, 2018 2 commits
-
-
Gennadiy Civil authored
RE-Doing the merge, this time with gcc on mac in the PR so I can catch errors before merging the PR
-
Gennadiy Civil authored
-
- 09 Apr, 2018 1 commit
-
-
Gennadiy Civil authored
continued
-
- 31 Aug, 2017 1 commit
-
-
Herbert Thielen authored
-
- 25 Aug, 2015 1 commit
-
-
Billy Donahue authored
-