| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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. |
| 11 // | 11 // |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 } | 662 } |
| 663 | 663 |
| 664 FilePath GetSampleDataDir() { | 664 FilePath GetSampleDataDir() { |
| 665 FilePath test_dir; | 665 FilePath test_dir; |
| 666 PathService::Get(chrome::DIR_TEST_DATA, &test_dir); | 666 PathService::Get(chrome::DIR_TEST_DATA, &test_dir); |
| 667 test_dir = test_dir.AppendASCII("reliability"); | 667 test_dir = test_dir.AppendASCII("reliability"); |
| 668 test_dir = test_dir.AppendASCII("sample_pages"); | 668 test_dir = test_dir.AppendASCII("sample_pages"); |
| 669 return test_dir; | 669 return test_dir; |
| 670 } | 670 } |
| 671 | 671 |
| 672 NotificationService notification_service_; | |
| 673 | |
| 674 // The pathname of Chrome's crash dumps directory. | 672 // The pathname of Chrome's crash dumps directory. |
| 675 FilePath crash_dumps_dir_path_; | 673 FilePath crash_dumps_dir_path_; |
| 676 | 674 |
| 677 // The set of all the crash dumps we have seen. Each crash generates a | 675 // The set of all the crash dumps we have seen. Each crash generates a |
| 678 // .dmp and a .txt file in the crash dumps directory. We only store the | 676 // .dmp and a .txt file in the crash dumps directory. We only store the |
| 679 // .dmp files in this set. | 677 // .dmp files in this set. |
| 680 // | 678 // |
| 681 // The set is implemented as a std::map. The key is the file name, and | 679 // The set is implemented as a std::map. The key is the file name, and |
| 682 // the value is false (the file is not in the set) or true (the file is | 680 // the value is false (the file is not in the set) or true (the file is |
| 683 // in the set). The initial value for any key in std::map is 0 (false), | 681 // in the set). The initial value for any key in std::map is 0 (false), |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 } | 819 } |
| 822 } | 820 } |
| 823 | 821 |
| 824 if (parsed_command_line.HasSwitch(kStressOptSwitch)) { | 822 if (parsed_command_line.HasSwitch(kStressOptSwitch)) { |
| 825 g_stress_opt = true; | 823 g_stress_opt = true; |
| 826 } | 824 } |
| 827 if (parsed_command_line.HasSwitch(kStressDeoptSwitch)) { | 825 if (parsed_command_line.HasSwitch(kStressDeoptSwitch)) { |
| 828 g_stress_deopt = true; | 826 g_stress_deopt = true; |
| 829 } | 827 } |
| 830 } | 828 } |
| OLD | NEW |