From 20960e074cf789825155f771e1c035df41cd0e75 Mon Sep 17 00:00:00 2001 From: "nsylvain@chromium.org" Date: Tue, 20 Sep 2011 20:59:01 +0000 Subject: Add a gyp flag to enable dcheck by default in release without having the pass a flag. This will be used on the try bots. BUG=96753 Review URL: http://codereview.chromium.org/7719007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102017 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/chrome_browser_main_unittest.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/browser/chrome_browser_main_unittest.cc') diff --git a/chrome/browser/chrome_browser_main_unittest.cc b/chrome/browser/chrome_browser_main_unittest.cc index c6bbe96..8dee45f 100644 --- a/chrome/browser/chrome_browser_main_unittest.cc +++ b/chrome/browser/chrome_browser_main_unittest.cc @@ -77,6 +77,11 @@ TEST_F(BrowserMainTest, WarmConnectionFieldTrial_Invalid) { bw.reset(ccbc.CreateBrowserMainParts(*params)); } ChromeBrowserMainParts* cbw = static_cast(bw.get()); +#if defined(NDEBUG) && defined(DCHECK_ALWAYS_ON) + EXPECT_DEATH(cbw->WarmConnectionFieldTrial(), + "Not a valid socket reuse policy group"); +#else EXPECT_DEBUG_DEATH(cbw->WarmConnectionFieldTrial(), "Not a valid socket reuse policy group"); +#endif } -- cgit v1.1