Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Side by Side Diff: chrome/test/reliability/page_load_test.cc

Issue 12387070: content: Move more constants from url_constants.h into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file provides reliablity test which runs under UI test framework. The 5 // This file provides reliablity test which runs under UI test framework. The
6 // test is intended to run within QEMU environment. 6 // test is intended to run within QEMU environment.
7 // 7 //
8 // Usage 1: reliability_test 8 // Usage 1: reliability_test
9 // Upon invocation, it visits a hard coded list of sample URLs. This is mainly 9 // Upon invocation, it visits a hard coded list of sample URLs. This is mainly
10 // used by buildbot, to verify reliability_test itself runs ok. 10 // used by buildbot, to verify reliability_test itself runs ok.
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 EXPECT_EQ(0, metrics.crash_dump_count); 510 EXPECT_EQ(0, metrics.crash_dump_count);
511 EXPECT_TRUE(metrics.browser_clean_exit); 511 EXPECT_TRUE(metrics.browser_clean_exit);
512 EXPECT_EQ(1, metrics.browser_launch_count); 512 EXPECT_EQ(1, metrics.browser_launch_count);
513 // Both starting page and test_url_1 are loaded. 513 // Both starting page and test_url_1 are loaded.
514 EXPECT_EQ(2, metrics.page_load_count); 514 EXPECT_EQ(2, metrics.page_load_count);
515 EXPECT_EQ(0, metrics.browser_crash_count); 515 EXPECT_EQ(0, metrics.browser_crash_count);
516 EXPECT_EQ(0, metrics.renderer_crash_count); 516 EXPECT_EQ(0, metrics.renderer_crash_count);
517 EXPECT_EQ(0, metrics.plugin_crash_count); 517 EXPECT_EQ(0, metrics.plugin_crash_count);
518 518
519 // Go to "about:crash" 519 // Go to "about:crash"
520 NavigateToURLLogResult(chrome::kChromeUICrashURL, 520 NavigateToURLLogResult(content::kChromeUICrashURL,
521 log_file, 521 log_file,
522 &metrics, 522 &metrics,
523 g_continuous_load, 523 g_continuous_load,
524 false); 524 false);
525 // Found a crash dump 525 // Found a crash dump
526 EXPECT_EQ(1, metrics.crash_dump_count) << kFailedNoCrashService; 526 EXPECT_EQ(1, metrics.crash_dump_count) << kFailedNoCrashService;
527 // Browser did not crash, and exited cleanly. 527 // Browser did not crash, and exited cleanly.
528 EXPECT_TRUE(metrics.browser_clean_exit); 528 EXPECT_TRUE(metrics.browser_clean_exit);
529 EXPECT_EQ(1, metrics.browser_launch_count); 529 EXPECT_EQ(1, metrics.browser_launch_count);
530 // Only the renderer should have crashed. 530 // Only the renderer should have crashed.
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 if (!g_end_url.empty()) { 830 if (!g_end_url.empty()) {
831 NavigateToURLLogResult( 831 NavigateToURLLogResult(
832 g_end_url, log_file, NULL, g_continuous_load, false); 832 g_end_url, log_file, NULL, g_continuous_load, false);
833 } 833 }
834 834
835 log_file.close(); 835 log_file.close();
836 } 836 }
837 837
838 } // namespace 838 } // namespace
839 839
OLDNEW
« no previous file with comments | « chrome/test/reliability/automated_ui_tests.cc ('k') | content/browser/browser_url_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698