From bf0d0a44812f97449d7401d0eeb8da954f76ba2a Mon Sep 17 00:00:00 2001 From: "zhanyong.wan" Date: Wed, 29 Apr 2009 23:52:29 +0000 Subject: Turns --gmock_catch_leaked_mocks on by default. --- src/gmock.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/gmock.cc b/src/gmock.cc index dc9d3d22..caafb015 100644 --- a/src/gmock.cc +++ b/src/gmock.cc @@ -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."); -- cgit v1.2.3