From 1b4a0b4f5d4158891ab280196745dd91d356d039 Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Tue, 16 Mar 2010 18:43:49 +0000 Subject: Linux: Fix test crash expectations for MetricsServiceTest.CrashRenderers. BUG=none TEST=MetricsServiceTest.CrashRenderers passes on Linux with and without breakpad. Review URL: http://codereview.chromium.org/1010001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41738 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/metrics/metrics_service_uitest.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/browser/metrics') diff --git a/chrome/browser/metrics/metrics_service_uitest.cc b/chrome/browser/metrics/metrics_service_uitest.cc index 9ae51eb..7465e17 100644 --- a/chrome/browser/metrics/metrics_service_uitest.cc +++ b/chrome/browser/metrics/metrics_service_uitest.cc @@ -93,8 +93,9 @@ TEST_F(MetricsServiceTest, CrashRenderers) { scoped_refptr tab(window->GetTab(1)); ASSERT_TRUE(tab.get()); -// Only windows implements the crash service for now. -#if defined(OS_WIN) +// We should get a crash dump on Windows. +// Also on Linux with Breakpad enabled. +#if defined(OS_WIN) || defined(USE_LINUX_BREAKPAD) expected_crashes_ = 1; #endif ASSERT_TRUE(tab->NavigateToURLAsync(GURL("about:crash"))); -- cgit v1.1