| 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 "content/shell/test_runner/test_runner.h" | 5 #include "content/shell/test_runner/test_runner.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <limits> | 10 #include <limits> |
| (...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1660 drag_image_.Reset(); | 1660 drag_image_.Reset(); |
| 1661 | 1661 |
| 1662 WebSecurityPolicy::ResetOriginAccessWhitelists(); | 1662 WebSecurityPolicy::ResetOriginAccessWhitelists(); |
| 1663 #if defined(__linux__) || defined(ANDROID) | 1663 #if defined(__linux__) || defined(ANDROID) |
| 1664 WebFontRendering::SetSubpixelPositioning(false); | 1664 WebFontRendering::SetSubpixelPositioning(false); |
| 1665 #endif | 1665 #endif |
| 1666 | 1666 |
| 1667 if (delegate_) { | 1667 if (delegate_) { |
| 1668 // Reset the default quota for each origin to 5MB | 1668 // Reset the default quota for each origin to 5MB |
| 1669 delegate_->SetDatabaseQuota(5 * 1024 * 1024); | 1669 delegate_->SetDatabaseQuota(5 * 1024 * 1024); |
| 1670 delegate_->SetDeviceColorProfile("reset"); | 1670 delegate_->SetDeviceColorSpace("reset"); |
| 1671 delegate_->SetDeviceScaleFactor(GetDefaultDeviceScaleFactor()); | 1671 delegate_->SetDeviceScaleFactor(GetDefaultDeviceScaleFactor()); |
| 1672 delegate_->SetBlockThirdPartyCookies(true); | 1672 delegate_->SetBlockThirdPartyCookies(true); |
| 1673 delegate_->SetLocale(""); | 1673 delegate_->SetLocale(""); |
| 1674 delegate_->UseUnfortunateSynchronousResizeMode(false); | 1674 delegate_->UseUnfortunateSynchronousResizeMode(false); |
| 1675 delegate_->DisableAutoResizeMode(WebSize()); | 1675 delegate_->DisableAutoResizeMode(WebSize()); |
| 1676 delegate_->DeleteAllCookies(); | 1676 delegate_->DeleteAllCookies(); |
| 1677 delegate_->SetBluetoothManualChooser(false); | 1677 delegate_->SetBluetoothManualChooser(false); |
| 1678 delegate_->ResetPermissions(); | 1678 delegate_->ResetPermissions(); |
| 1679 } | 1679 } |
| 1680 | 1680 |
| (...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2826 | 2826 |
| 2827 void TestRunner::NotifyDone() { | 2827 void TestRunner::NotifyDone() { |
| 2828 if (layout_test_runtime_flags_.wait_until_done() && !topLoadingFrame() && | 2828 if (layout_test_runtime_flags_.wait_until_done() && !topLoadingFrame() && |
| 2829 !will_navigate_ && work_queue_.is_empty()) | 2829 !will_navigate_ && work_queue_.is_empty()) |
| 2830 delegate_->TestFinished(); | 2830 delegate_->TestFinished(); |
| 2831 layout_test_runtime_flags_.set_wait_until_done(false); | 2831 layout_test_runtime_flags_.set_wait_until_done(false); |
| 2832 OnLayoutTestRuntimeFlagsChanged(); | 2832 OnLayoutTestRuntimeFlagsChanged(); |
| 2833 } | 2833 } |
| 2834 | 2834 |
| 2835 } // namespace test_runner | 2835 } // namespace test_runner |
| OLD | NEW |