summaryrefslogtreecommitdiffstats
path: root/googlemock/include/gmock/gmock-nice-strict.h
Commit message (Collapse)AuthorAgeFilesLines
* Use "#ifdef GTEST_OS_..." instead of "#if GTEST_OS_..."Tom Hughes2023-03-061-1/+1
| | | | | | | This is compatible with compiling with "-Wundef" (#3267). PiperOrigin-RevId: 513943378 Change-Id: I47cf5fabbb77be061c4483a0adc54511af6b191c
* Work around a maybe-uninitialized warning under GCC 12Derek Mauro2022-06-011-6/+19
| | | | | | | | | | | Some Mock constructors insert the pointer to the Mock itself into a global registry. Since GCC cannot see how the pointer is used (only as an identifier), it cannot tell that the object doesn't need to be initialized at that point at all. Work around this by using uintptr_t instead. PiperOrigin-RevId: 452380347 Change-Id: Ia5a493057ed90719de1d0efab71de9a8a08ddf8b
* Remove the legacy internal GTEST_DISALLOW_* macrosDerek Mauro2022-04-221-3/+6
| | | | | PiperOrigin-RevId: 443715444 Change-Id: I3ffd54b63d2728ae4a668ee7875c8c3c8188087c
* Consistently apply IWYU pragmas across googletest and googlemock headersAbseil Team2022-01-181-1/+3
| | | | | PiperOrigin-RevId: 422559250 Change-Id: I9f630f2186724950e5e9fbd7093d5264e8bf0a71
* Googletest exportAbseil Team2021-07-221-2/+0
| | | | | | Delete GOOGLETEST_CM.* tags from C++ code. PiperOrigin-RevId: 386268534
* Googletest exportAbseil Team2021-04-131-14/+12
| | | | | | Update docs to point to the github.io pages. PiperOrigin-RevId: 367711335
* Update nicestrictnaggy gmock cook_book linksrefs/pull/3319/headAustin Sullivan2021-03-171-6/+6
| | | An incorrect link is output to the user when these conditions are met.
* Googletest exportAbseil Team2021-03-161-3/+3
| | | | | | Internal change PiperOrigin-RevId: 362040448
* Googletest exportAbseil Team2021-02-181-3/+3
| | | | | | Make include guards conform with https://google.github.io/styleguide/cppguide.html#The__define_Guard, attempt #2 PiperOrigin-RevId: 357056902
* Googletest exportAbseil Team2021-02-111-3/+3
| | | | | | Revert include guard fix PiperOrigin-RevId: 356588893
* Googletest exportAbseil Team2021-02-111-1/+2
| | | | | | | | | | Fix build for MinGW + clang In [1], empty_bases "is only supported when using the Microsoft C++ ABI." Disable it for MinGW. https://clang.llvm.org/docs/AttributeReference.html#empty-bases PiperOrigin-RevId: 356373782
* Googletest exportAbseil Team2021-02-111-3/+3
| | | | | | Make include guards conform with https://google.github.io/styleguide/cppguide.html#The__define_Guard PiperOrigin-RevId: 355882793
* Googletest exportAbseil Team2020-12-221-36/+68
| | | | | | | | | 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
* Googletest exportAbseil Team2020-12-121-28/+43
| | | | | | | | Add static_asserts that verify that no class hierarchy contains more than one of {NiceMock, NaggyMock, StrictMock}. This sort of nesting has always been disallowed, but this CL adds a compile-time check to prevent it. PiperOrigin-RevId: 347037822
* Issue 2135: Change template args in NiceMock, NaggyMock and StrictMock from ↵refs/pull/3042/headAralox2020-10-071-9/+9
| | | | A1, A2, ... to TArg1, TArg2,... to avoid clash with legacy header files
* Googletest exportAbseil Team2018-12-211-0/+215
Get rid of code generation for NiceMock / StrictMock. They got small enough that it doesn't make sense to generate them. PiperOrigin-RevId: 226455689