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 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1845 return; | 1845 return; |
1846 } | 1846 } |
1847 | 1847 |
1848 test_runner::DumpPixelsAsync(web_view_, layout_test_runtime_flags_, | 1848 test_runner::DumpPixelsAsync(web_view_, layout_test_runtime_flags_, |
1849 delegate_->GetDeviceScaleFactorForTest(), | 1849 delegate_->GetDeviceScaleFactorForTest(), |
1850 callback); | 1850 callback); |
1851 } | 1851 } |
1852 | 1852 |
1853 void TestRunner::ReplicateLayoutTestRuntimeFlagsChanges( | 1853 void TestRunner::ReplicateLayoutTestRuntimeFlagsChanges( |
1854 const base::DictionaryValue& changed_values) { | 1854 const base::DictionaryValue& changed_values) { |
| 1855 DCHECK(test_is_running_); |
1855 layout_test_runtime_flags_.tracked_dictionary().ApplyUntrackedChanges( | 1856 layout_test_runtime_flags_.tracked_dictionary().ApplyUntrackedChanges( |
1856 changed_values); | 1857 changed_values); |
1857 } | 1858 } |
1858 | 1859 |
1859 bool TestRunner::HasCustomTextDump(std::string* custom_text_dump) const { | 1860 bool TestRunner::HasCustomTextDump(std::string* custom_text_dump) const { |
1860 if (shouldDumpAsCustomText()) { | 1861 if (shouldDumpAsCustomText()) { |
1861 *custom_text_dump = customDumpText(); | 1862 *custom_text_dump = customDumpText(); |
1862 return true; | 1863 return true; |
1863 } | 1864 } |
1864 | 1865 |
(...skipping 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3276 } | 3277 } |
3277 | 3278 |
3278 void TestRunner::DidLosePointerLockInternal() { | 3279 void TestRunner::DidLosePointerLockInternal() { |
3279 bool was_locked = pointer_locked_; | 3280 bool was_locked = pointer_locked_; |
3280 pointer_locked_ = false; | 3281 pointer_locked_ = false; |
3281 if (was_locked) | 3282 if (was_locked) |
3282 web_view_->didLosePointerLock(); | 3283 web_view_->didLosePointerLock(); |
3283 } | 3284 } |
3284 | 3285 |
3285 } // namespace test_runner | 3286 } // namespace test_runner |
OLD | NEW |