| OLD | NEW |
| 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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 EXPECT_EQ(0, metrics.crash_dump_count); | 498 EXPECT_EQ(0, metrics.crash_dump_count); |
| 499 EXPECT_TRUE(metrics.browser_clean_exit); | 499 EXPECT_TRUE(metrics.browser_clean_exit); |
| 500 EXPECT_EQ(1, metrics.browser_launch_count); | 500 EXPECT_EQ(1, metrics.browser_launch_count); |
| 501 // Both starting page and test_url_1 are loaded. | 501 // Both starting page and test_url_1 are loaded. |
| 502 EXPECT_EQ(2, metrics.page_load_count); | 502 EXPECT_EQ(2, metrics.page_load_count); |
| 503 EXPECT_EQ(0, metrics.browser_crash_count); | 503 EXPECT_EQ(0, metrics.browser_crash_count); |
| 504 EXPECT_EQ(0, metrics.renderer_crash_count); | 504 EXPECT_EQ(0, metrics.renderer_crash_count); |
| 505 EXPECT_EQ(0, metrics.plugin_crash_count); | 505 EXPECT_EQ(0, metrics.plugin_crash_count); |
| 506 | 506 |
| 507 // Go to "about:crash" | 507 // Go to "about:crash" |
| 508 NavigateToURLLogResult(chrome::kAboutCrashURL, | 508 NavigateToURLLogResult(chrome::kChromeUICrashURL, |
| 509 log_file, | 509 log_file, |
| 510 &metrics, | 510 &metrics, |
| 511 g_continuous_load, | 511 g_continuous_load, |
| 512 false); | 512 false); |
| 513 // Found a crash dump | 513 // Found a crash dump |
| 514 EXPECT_EQ(1, metrics.crash_dump_count) << kFailedNoCrashService; | 514 EXPECT_EQ(1, metrics.crash_dump_count) << kFailedNoCrashService; |
| 515 // Browser did not crash, and exited cleanly. | 515 // Browser did not crash, and exited cleanly. |
| 516 EXPECT_TRUE(metrics.browser_clean_exit); | 516 EXPECT_TRUE(metrics.browser_clean_exit); |
| 517 EXPECT_EQ(1, metrics.browser_launch_count); | 517 EXPECT_EQ(1, metrics.browser_launch_count); |
| 518 // Only the renderer should have crashed. | 518 // Only the renderer should have crashed. |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 if (!g_end_url.empty()) { | 802 if (!g_end_url.empty()) { |
| 803 NavigateToURLLogResult( | 803 NavigateToURLLogResult( |
| 804 g_end_url, log_file, NULL, g_continuous_load, false); | 804 g_end_url, log_file, NULL, g_continuous_load, false); |
| 805 } | 805 } |
| 806 | 806 |
| 807 log_file.close(); | 807 log_file.close(); |
| 808 } | 808 } |
| 809 | 809 |
| 810 } // namespace | 810 } // namespace |
| 811 | 811 |
| OLD | NEW |