- 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
-
- 12 Dec, 2020 1 commit
-
-
Abseil Team authored
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
-
- 07 Oct, 2020 1 commit
-
-
Aralox authored
Issue 2135: Change template args in NiceMock, NaggyMock and StrictMock from A1, A2, ... to TArg1, TArg2,... to avoid clash with legacy header files
-
- 21 Dec, 2018 1 commit
-
-
Abseil Team authored
Get rid of code generation for NiceMock / StrictMock. They got small enough that it doesn't make sense to generate them. PiperOrigin-RevId: 226455689
-
- 20 Dec, 2018 1 commit
-
-
Abseil Team authored
Unifdef c++11-related macros from googletest now that it requires C++11. PiperOrigin-RevId: 225905601
-
- 03 Dec, 2018 1 commit
-
-
Abseil Team authored
Applied fixes for ClangTidy modernize-use-override and modernize-use-using. PiperOrigin-RevId: 223800219
-
- 14 Aug, 2018 1 commit
-
-
Gennadiy Civil authored
Comments changes, no functionality changes
-
- 27 Jul, 2018 1 commit
-
-
Gennadiy Civil authored
Formatting changes for automatic code management
-
- 12 Apr, 2018 2 commits
-
-
Gennadiy Civil authored
merging
-
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
-
- 05 Apr, 2018 1 commit
-
-
Gennadiy Civil authored
-
- 25 Aug, 2015 1 commit
-
-
Billy Donahue authored
-
- 01 Mar, 2013 1 commit
-
-
zhanyong.wan authored
-
- 01 Feb, 2011 1 commit
-
-
zhanyong.wan authored
Picks up gtest r536; renames implicit_cast and down_cast to reduce the chance of clash (by Roman Perepelitsa); enables gmock_gen.py to handle storage specifiers (by Steve Fox).
-
- 14 Sep, 2010 1 commit
-
-
zhanyong.wan authored
-
- 23 Dec, 2009 1 commit
-
-
zhanyong.wan authored
-
- 16 Sep, 2009 1 commit
-
-
zhanyong.wan authored
-
- 10 Dec, 2008 1 commit
-
-
shiqian authored
-