summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_browser_main_unittest.cc
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-20 20:59:01 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-20 20:59:01 +0000
commit20960e074cf789825155f771e1c035df41cd0e75 (patch)
tree560b967c07210bda790dbeebf6174e3e971b5eb7 /chrome/browser/chrome_browser_main_unittest.cc
parentc4f7571e88637185eb79e598bd3b6301490a2255 (diff)
downloadchromium_src-20960e074cf789825155f771e1c035df41cd0e75.zip
chromium_src-20960e074cf789825155f771e1c035df41cd0e75.tar.gz
chromium_src-20960e074cf789825155f771e1c035df41cd0e75.tar.bz2
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
Diffstat (limited to 'chrome/browser/chrome_browser_main_unittest.cc')
-rw-r--r--chrome/browser/chrome_browser_main_unittest.cc5
1 files changed, 5 insertions, 0 deletions
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<ChromeBrowserMainParts*>(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
}