Turns --gmock_catch_leaked_mocks on by default.

This commit is contained in:
zhanyong.wan
2009-04-29 23:52:29 +00:00
parent df35a763b9
commit bf0d0a4481
2 changed files with 4 additions and 6 deletions

View File

@@ -37,9 +37,7 @@ namespace testing {
// TODO(wan@google.com): support using environment variables to
// control the flag values, like what Google Test does.
// TODO(wan@google.com): change the default value to true after people
// have a chance to fix their leaked mocks.
GMOCK_DEFINE_bool_(catch_leaked_mocks, false,
GMOCK_DEFINE_bool_(catch_leaked_mocks, true,
"true iff Google Mock should report leaked mock objects "
"as failures.");