| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/test_runner/test_runner.h" | 5 #include "components/test_runner/test_runner.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1664 // Reset the default quota for each origin to 5MB | 1664 // Reset the default quota for each origin to 5MB |
| 1665 delegate_->SetDatabaseQuota(5 * 1024 * 1024); | 1665 delegate_->SetDatabaseQuota(5 * 1024 * 1024); |
| 1666 delegate_->SetDeviceColorProfile("reset"); | 1666 delegate_->SetDeviceColorProfile("reset"); |
| 1667 delegate_->SetDeviceScaleFactor(GetDefaultDeviceScaleFactor()); | 1667 delegate_->SetDeviceScaleFactor(GetDefaultDeviceScaleFactor()); |
| 1668 delegate_->SetBlockThirdPartyCookies(true); | 1668 delegate_->SetBlockThirdPartyCookies(true); |
| 1669 delegate_->SetLocale(""); | 1669 delegate_->SetLocale(""); |
| 1670 delegate_->UseUnfortunateSynchronousResizeMode(false); | 1670 delegate_->UseUnfortunateSynchronousResizeMode(false); |
| 1671 delegate_->DisableAutoResizeMode(WebSize()); | 1671 delegate_->DisableAutoResizeMode(WebSize()); |
| 1672 delegate_->DeleteAllCookies(); | 1672 delegate_->DeleteAllCookies(); |
| 1673 delegate_->SetBluetoothManualChooser(false); | 1673 delegate_->SetBluetoothManualChooser(false); |
| 1674 delegate_->ResetBluetoothAllowedDevicesMap(); |
| 1674 delegate_->ResetPermissions(); | 1675 delegate_->ResetPermissions(); |
| 1675 ResetDeviceLight(); | 1676 ResetDeviceLight(); |
| 1676 } | 1677 } |
| 1677 | 1678 |
| 1678 dump_as_audio_ = false; | 1679 dump_as_audio_ = false; |
| 1679 dump_back_forward_list_ = false; | 1680 dump_back_forward_list_ = false; |
| 1680 test_repaint_ = false; | 1681 test_repaint_ = false; |
| 1681 sweep_horizontally_ = false; | 1682 sweep_horizontally_ = false; |
| 1682 midi_accessor_result_ = midi::mojom::Result::OK; | 1683 midi_accessor_result_ = midi::mojom::Result::OK; |
| 1683 has_custom_text_output_ = false; | 1684 has_custom_text_output_ = false; |
| (...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2813 | 2814 |
| 2814 void TestRunner::NotifyDone() { | 2815 void TestRunner::NotifyDone() { |
| 2815 if (layout_test_runtime_flags_.wait_until_done() && !topLoadingFrame() && | 2816 if (layout_test_runtime_flags_.wait_until_done() && !topLoadingFrame() && |
| 2816 !will_navigate_ && work_queue_.is_empty()) | 2817 !will_navigate_ && work_queue_.is_empty()) |
| 2817 delegate_->TestFinished(); | 2818 delegate_->TestFinished(); |
| 2818 layout_test_runtime_flags_.set_wait_until_done(false); | 2819 layout_test_runtime_flags_.set_wait_until_done(false); |
| 2819 OnLayoutTestRuntimeFlagsChanged(); | 2820 OnLayoutTestRuntimeFlagsChanged(); |
| 2820 } | 2821 } |
| 2821 | 2822 |
| 2822 } // namespace test_runner | 2823 } // namespace test_runner |
| OLD | NEW |