summaryrefslogtreecommitdiffstats
path: root/googlemock/test/gmock-nice-strict_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* Use '=default' to define trivial constructor/destructorsrefs/pull/4221/headTom Hughes2023-04-211-4/+4
| | | | | | | https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html PiperOrigin-RevId: 526079054 Change-Id: Ia4db21e3e5f58b90de05d52fd94b291ed06d785d
* Remove the legacy internal GTEST_DISALLOW_* macrosDerek Mauro2022-04-221-3/+6
| | | | | PiperOrigin-RevId: 443715444 Change-Id: I3ffd54b63d2728ae4a668ee7875c8c3c8188087c
* Running clang-format over all of GoogleTestAbseil Team2022-03-151-10/+10
| | | | | | | | | | | | | | | | 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
* Googletest exportAbseil Team2021-09-151-22/+21
| | | | | | Introduce GMOCK_FLAG_GET and GMOCK_FLAG_SET macros. PiperOrigin-RevId: 396649214
* Googletest exportAbseil Team2020-12-221-0/+39
| | | | | | | | | 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 Team2019-01-021-27/+3
| | | | | | | | Remove the #ifs for old, unsupported and buggy compilers: * old versions of GCC & MSVC * Symbian PiperOrigin-RevId: 227116941
* Googletest exportAbseil Team2018-12-211-2/+1
| | | | | | | Get rid of code generation for NiceMock / StrictMock. They got small enough that it doesn't make sense to generate them. PiperOrigin-RevId: 226455689
* Googletest exportAbseil Team2018-12-201-20/+7
| | | | | | Unifdef c++11-related macros from googletest now that it requires C++11. PiperOrigin-RevId: 225905601
* Merge pull request #1911 from BrukerJWD:isniceGennadiy Civil2018-10-231-0/+28
|\ | | | | | | PiperOrigin-RevId: 218384341
| * Removed last reference to internal::kDefaultrefs/pull/1911/headJonathan Wendeborn2018-10-161-1/+0
| |
| * Merge branch 'master' into isniceBrukerJWD2018-10-161-17/+103
| |\ | |/ |/|
| * Don't fully qualify enum memberJonathan Wendeborn2018-10-161-2/+1
| |
| * Added Mock::IsNaggy, IsNice, and IsStrictJonathan Wendeborn2018-10-161-0/+30
| |
* | Comments changes, no functionality changesrefs/pull/1740/headGennadiy Civil2018-08-141-2/+1
| |
* | merging refs/pull/1567/headGennadiy Civil2018-04-121-3/+47
| |
* | Remove multiple inheritance from "unintesting call" mock classes.refs/pull/1557/headVictor Costan2018-04-121-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Internal CL 156157936, which was published in commit fe402c27790ff1cc9a7e17c5d0aea4ebe7fd8a71, 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
* | Remove unused variablerefs/pull/1206/headMaurice Gilden2017-08-211-1/+0
| |
* | Added "explicit" as per compiler suggestionGennadiy Civil2017-08-201-1/+1
| |
* | Proposing these changes, please reviewGennadiy Civil2017-08-201-12/+9
| | | | | | | | Slightly better names and cleaner tests. Please review
* | Change tabs to spaces in test caseMaurice Gilden2017-08-181-11/+11
| |
* | Switch return type to class without default constructorMaurice Gilden2017-08-181-1/+7
| |
* | Fix test if exceptions are not supportedMaurice Gilden2017-08-181-0/+6
| |
* | adds test for NiceMock with unknown return valueMaurice Gilden2017-08-181-0/+15
| |
* | Use std::string and ::string explicitly in gtest and gmock code.refs/pull/1089/headNico Weber2017-05-151-14/+13
|/ | | | | | | | | This merges a Google-internal change (117235625). Original CL description: This CL was created manually in about an hour with sed, a Python script to find all the places unqualified 'string' was mentioned, and some help from Emacs to add the "std::" qualifications, plus a few manual tweaks.
* move googlemock files into googlemock/ subdirBilly Donahue2015-08-251-0/+424