From 849a62a1aa77e5d7887bc310233d86cf33ebf393 Mon Sep 17 00:00:00 2001 From: "ace@google.com" Date: Thu, 14 May 2009 00:09:45 +0000 Subject: Handle log report events so that reliability_tests.exe isn't inturrupted by dcheck failures when running page load tests with --enable-dcheck. Review URL: http://codereview.chromium.org/113314 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16019 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/reliability/page_load_test.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'chrome/test/reliability/page_load_test.cc') diff --git a/chrome/test/reliability/page_load_test.cc b/chrome/test/reliability/page_load_test.cc index 1dc71be..412f9b0 100644 --- a/chrome/test/reliability/page_load_test.cc +++ b/chrome/test/reliability/page_load_test.cc @@ -604,9 +604,20 @@ TEST_F(PageLoadTest, Reliability) { log_file.close(); } +namespace { + void ReportHandler(const std::string& str) { + // Ignore report events. + } +} + void SetPageRange(const CommandLine& parsed_command_line) { // If calling into this function, we are running as a standalone program. stand_alone = true; + + // Since we use --enable-dcheck for reliability tests, suppress the error + // dialog in the test process. + logging::SetLogReportHandler(ReportHandler); + if (parsed_command_line.HasSwitch(kStartPageSwitch)) { ASSERT_TRUE(parsed_command_line.HasSwitch(kEndPageSwitch)); start_page = -- cgit v1.1