Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Side by Side Diff: components/test_runner/test_runner.cc

Issue 1878863002: Replicate LayoutTestRuntimeFlags across secondary window renderers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replicate-web-content-settings
Patch Set: Rebasing... Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/shell/browser/layout_test/blink_test_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | content/shell/browser/layout_test/blink_test_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698