gmock-spec-builders_test.cc (googletest-release-1.10.0) | : | gmock-spec-builders_test.cc (googletest-release-1.11.0) | ||
---|---|---|---|---|
skipping to change at line 71 | skipping to change at line 71 | |||
namespace { | namespace { | |||
using testing::_; | using testing::_; | |||
using testing::AnyNumber; | using testing::AnyNumber; | |||
using testing::AtLeast; | using testing::AtLeast; | |||
using testing::AtMost; | using testing::AtMost; | |||
using testing::Between; | using testing::Between; | |||
using testing::Cardinality; | using testing::Cardinality; | |||
using testing::CardinalityInterface; | using testing::CardinalityInterface; | |||
using testing::ContainsRegex; | ||||
using testing::Const; | using testing::Const; | |||
using testing::ContainsRegex; | ||||
using testing::DoAll; | using testing::DoAll; | |||
using testing::DoDefault; | using testing::DoDefault; | |||
using testing::Eq; | using testing::Eq; | |||
using testing::Expectation; | using testing::Expectation; | |||
using testing::ExpectationSet; | using testing::ExpectationSet; | |||
using testing::GMOCK_FLAG(verbose); | using testing::GMOCK_FLAG(verbose); | |||
using testing::Gt; | using testing::Gt; | |||
using testing::IgnoreResult; | using testing::IgnoreResult; | |||
using testing::InSequence; | using testing::InSequence; | |||
using testing::Invoke; | using testing::Invoke; | |||
skipping to change at line 2181 | skipping to change at line 2181 | |||
} | } | |||
// Tests how the flag affects uninteresting calls on a naggy mock. | // Tests how the flag affects uninteresting calls on a naggy mock. | |||
void TestUninterestingCallOnNaggyMock(bool should_print) { | void TestUninterestingCallOnNaggyMock(bool should_print) { | |||
NaggyMock<MockA> a; | NaggyMock<MockA> a; | |||
const std::string note = | const std::string note = | |||
"NOTE: You can safely ignore the above warning unless this " | "NOTE: You can safely ignore the above warning unless this " | |||
"call should not happen. Do not suppress it by blindly adding " | "call should not happen. Do not suppress it by blindly adding " | |||
"an EXPECT_CALL() if you don't mean to enforce the call. " | "an EXPECT_CALL() if you don't mean to enforce the call. " | |||
"See " | "See " | |||
"https://github.com/google/googletest/blob/master/googlemock/docs/" | "https://github.com/google/googletest/blob/master/docs/" | |||
"cook_book.md#" | "gmock_cook_book.md#" | |||
"knowing-when-to-expect for details."; | "knowing-when-to-expect for details."; | |||
// A void-returning function. | // A void-returning function. | |||
CaptureStdout(); | CaptureStdout(); | |||
a.DoA(5); | a.DoA(5); | |||
VerifyOutput( | VerifyOutput( | |||
GetCapturedStdout(), | GetCapturedStdout(), | |||
should_print, | should_print, | |||
"\nGMOCK WARNING:\n" | "\nGMOCK WARNING:\n" | |||
"Uninteresting mock function call - returning directly.\n" | "Uninteresting mock function call - returning directly.\n" | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added |