diff options
author | kosak <kosak@google.com> | 2014-01-12 23:42:34 +0000 |
---|---|---|
committer | kosak <kosak@google.com> | 2014-01-12 23:42:34 +0000 |
commit | 04ce8521f481d857db1aa00a206278759b9b0381 (patch) | |
tree | dfe2a98ae208ef6686fd8d424d5836ba98a32752 /src | |
parent | 18489fa4f81a65ab5f42a6705c28ca2f80eab3bd (diff) | |
download | googletest-04ce8521f481d857db1aa00a206278759b9b0381.tar.gz googletest-04ce8521f481d857db1aa00a206278759b9b0381.tar.bz2 googletest-04ce8521f481d857db1aa00a206278759b9b0381.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/gmock-spec-builders.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gmock-spec-builders.cc b/src/gmock-spec-builders.cc index abaae3ad..cefb580f 100644 --- a/src/gmock-spec-builders.cc +++ b/src/gmock-spec-builders.cc @@ -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); |