Adds new matcher Pair(). Replaces GMOCK_CHECK_ with GTEST_CHECK_ (by Vlad Losev).

This commit is contained in:
zhanyong.wan
2009-09-16 07:02:02 +00:00
parent c53b3dca1b
commit f5e1ce5b92
5 changed files with 219 additions and 140 deletions

View File

@@ -203,8 +203,8 @@ class MockObjectRegistry {
// This can help the user identify the leaked object.
std::cout << "\n";
const MockObjectState& state = it->second;
internal::FormatFileLocation(
state.first_used_file, state.first_used_line, &std::cout);
std::cout << internal::FormatFileLocation(state.first_used_file,
state.first_used_line);
std::cout << " ERROR: this mock object";
if (state.first_used_test != "") {
std::cout << " (used in test " << state.first_used_test_case << "."