Adds a note in the "uninteresting mock method call" warning to advise people how to handle the warning.

Clarifies the purpose of utilities in gmock-port.h and adds guidance w.r.t. gmock-port.h vs gtest-port.h.
Pulls in gtest r674.
This commit is contained in:
kosak
2014-01-12 23:42:34 +00:00
parent 18489fa4f8
commit 04ce8521f4
4 changed files with 36 additions and 9 deletions

View File

@@ -250,7 +250,14 @@ void ReportUninterestingCall(CallReaction reaction, const string& msg) {
Log(kInfo, msg, 3);
break;
case kWarn:
Log(kWarning, msg, 3);
Log(kWarning,
msg +
"\nNOTE: You can safely ignore the above warning unless this "
"call should not happen. Do not suppress it by blindly adding "
"an EXPECT_CALL() if you don't mean to enforce the call. "
"See http://code.google.com/p/googlemock/wiki/CookBook#"
"Knowing_When_to_Expect for details.",
3);
break;
default: // FAIL
Expect(false, NULL, -1, msg);