summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-21 19:03:07 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-21 19:03:07 +0000
commit6a7f280677f1c440e7268984ba1f220e09f87a99 (patch)
treeeec7fe33fd74013609c65067c81cda0e926966e1
parent03626c0de3fcf0deac6c51585af7accfcffba294 (diff)
downloadchromium_src-6a7f280677f1c440e7268984ba1f220e09f87a99.zip
chromium_src-6a7f280677f1c440e7268984ba1f220e09f87a99.tar.gz
chromium_src-6a7f280677f1c440e7268984ba1f220e09f87a99.tar.bz2
Enable stack dumps in DRT.
This matches what's happening in test_shell. Review URL: http://codereview.chromium.org/3049003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53225 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/support/webkit_support.cc4
-rw-r--r--webkit/support/webkit_support.gypi5
2 files changed, 8 insertions, 1 deletions
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc
index d44d390..3374181 100644
--- a/webkit/support/webkit_support.cc
+++ b/webkit/support/webkit_support.cc
@@ -117,6 +117,7 @@ namespace webkit_support {
static TestEnvironment* test_environment;
static void SetUpTestEnvironmentImpl(bool unit_test_mode) {
+ base::EnableInProcessStackDumping();
base::EnableTerminationOnHeapCorruption();
// Initialize the singleton CommandLine with fixed values. Some code refer to
@@ -398,7 +399,8 @@ WebURL GetDevToolsPathAsURL() {
DCHECK(false);
return WebURL();
}
- FilePath devToolsPath = dirExe.AppendASCII("resources/inspector/devtools.html");
+ FilePath devToolsPath = dirExe.AppendASCII(
+ "resources/inspector/devtools.html");
return net::FilePathToFileURL(devToolsPath);
}
diff --git a/webkit/support/webkit_support.gypi b/webkit/support/webkit_support.gypi
index da9313b..b402fed 100644
--- a/webkit/support/webkit_support.gypi
+++ b/webkit/support/webkit_support.gypi
@@ -20,6 +20,11 @@
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/webkit', # for a header generated by grit
],
+ 'defines': [
+ # Technically not a unit test but require functions available only to
+ # unit tests.
+ 'UNIT_TEST'
+ ],
'sources': [
'platform_support.h',
'platform_support_gtk.cc',