summaryrefslogtreecommitdiffstats
path: root/chrome/test/ui/ui_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/ui/ui_test.cc')
-rw-r--r--chrome/test/ui/ui_test.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc
index 319be79..415533e 100644
--- a/chrome/test/ui/ui_test.cc
+++ b/chrome/test/ui/ui_test.cc
@@ -32,6 +32,10 @@
using base::TimeTicks;
+const wchar_t UITest::kFailedNoCrashService[] =
+ L"NOTE: This test is expected to fail if crash_service.exe is not "
+ L"running. Start it manually before running this test (see the build "
+ L"output directory).";
bool UITest::in_process_renderer_ = false;
bool UITest::in_process_plugins_ = false;
bool UITest::no_sandbox_ = false;
@@ -119,10 +123,10 @@ void UITest::TearDown() {
file_util::CountFilesCreatedAfter(crash_dump_path, test_start_time_) / 2;
std::wstring error_msg =
L"Encountered an unexpected crash in the program during this test.";
- if (expected_crashes_ > 0 && actual_crashes == 0)
- error_msg += L" NOTE: This test is expected to fail if crash_service.exe "
- L"is not running. Start it manually before running this "
- L"test (see the build output directory).";
+ if (expected_crashes_ > 0 && actual_crashes == 0) {
+ error_msg += L" ";
+ error_msg += kFailedNoCrashService;
+ }
EXPECT_EQ(expected_crashes_, actual_crashes) << error_msg;
}