| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 metrics->crash_dump_count = num_dumps; | 518 metrics->crash_dump_count = num_dumps; |
| 519 } | 519 } |
| 520 | 520 |
| 521 // Get a PrefService whose contents correspond to the Local State file | 521 // Get a PrefService whose contents correspond to the Local State file |
| 522 // that was saved by the app as it closed. The caller takes ownership of the | 522 // that was saved by the app as it closed. The caller takes ownership of the |
| 523 // returned PrefService object. | 523 // returned PrefService object. |
| 524 PrefService* GetLocalState() { | 524 PrefService* GetLocalState() { |
| 525 FilePath local_state_path = user_data_dir() | 525 FilePath local_state_path = user_data_dir() |
| 526 .Append(chrome::kLocalStateFilename); | 526 .Append(chrome::kLocalStateFilename); |
| 527 | 527 |
| 528 PrefService* local_state(new PrefService(local_state_path)); | 528 PrefService* local_state(new PrefService(local_state_path, NULL)); |
| 529 return local_state; | 529 return local_state; |
| 530 } | 530 } |
| 531 | 531 |
| 532 void GetStabilityMetrics(NavigationMetrics* metrics) { | 532 void GetStabilityMetrics(NavigationMetrics* metrics) { |
| 533 if (!metrics) | 533 if (!metrics) |
| 534 return; | 534 return; |
| 535 scoped_ptr<PrefService> local_state(GetLocalState()); | 535 scoped_ptr<PrefService> local_state(GetLocalState()); |
| 536 if (!local_state.get()) | 536 if (!local_state.get()) |
| 537 return; | 537 return; |
| 538 local_state->RegisterBooleanPref(prefs::kStabilityExitedCleanly, false); | 538 local_state->RegisterBooleanPref(prefs::kStabilityExitedCleanly, false); |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) { | 685 if (v8_command_line.HasSwitch(kV8LogFileSwitch)) { |
| 686 v8_log_path = v8_command_line.GetSwitchValue(kV8LogFileSwitch); | 686 v8_log_path = v8_command_line.GetSwitchValue(kV8LogFileSwitch); |
| 687 if (!file_util::AbsolutePath(&v8_log_path)) { | 687 if (!file_util::AbsolutePath(&v8_log_path)) { |
| 688 v8_log_path.clear(); | 688 v8_log_path.clear(); |
| 689 } | 689 } |
| 690 } | 690 } |
| 691 } | 691 } |
| 692 } | 692 } |
| 693 } | 693 } |
| 694 } | 694 } |
| OLD | NEW |