diff options
author | ace@google.com <ace@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-14 00:09:45 +0000 |
---|---|---|
committer | ace@google.com <ace@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-14 00:09:45 +0000 |
commit | 849a62a1aa77e5d7887bc310233d86cf33ebf393 (patch) | |
tree | 5b14921e439ef80f41bfff8b650d21363914bd82 /chrome/test/reliability/page_load_test.cc | |
parent | de5ac688f055a78d448717e698a0e3eff0a1ff04 (diff) | |
download | chromium_src-849a62a1aa77e5d7887bc310233d86cf33ebf393.zip chromium_src-849a62a1aa77e5d7887bc310233d86cf33ebf393.tar.gz chromium_src-849a62a1aa77e5d7887bc310233d86cf33ebf393.tar.bz2 |
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
Diffstat (limited to 'chrome/test/reliability/page_load_test.cc')
-rw-r--r-- | chrome/test/reliability/page_load_test.cc | 11 |
1 files changed, 11 insertions, 0 deletions
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 = |