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

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

Issue 1787743003: Remove unneeded code from WebTestProxyBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing accidental reversal of condition in RunModalBeforeUnloadDialog. Created 4 years, 9 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 | « components/test_runner/test_runner.h ('k') | components/test_runner/web_frame_test_proxy.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 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after
1808 void TestRunner::setCustomTextOutput(const std::string& text) { 1808 void TestRunner::setCustomTextOutput(const std::string& text) {
1809 custom_text_output_ = text; 1809 custom_text_output_ = text;
1810 has_custom_text_output_ = true; 1810 has_custom_text_output_ = true;
1811 } 1811 }
1812 1812
1813 bool TestRunner::ShouldGeneratePixelResults() { 1813 bool TestRunner::ShouldGeneratePixelResults() {
1814 CheckResponseMimeType(); 1814 CheckResponseMimeType();
1815 return layout_dump_flags_.generate_pixel_results(); 1815 return layout_dump_flags_.generate_pixel_results();
1816 } 1816 }
1817 1817
1818 bool TestRunner::ShouldStayOnPageAfterHandlingBeforeUnload() const { 1818 bool TestRunner::shouldStayOnPageAfterHandlingBeforeUnload() const {
1819 return should_stay_on_page_after_handling_before_unload_; 1819 return should_stay_on_page_after_handling_before_unload_;
1820 } 1820 }
1821 1821
1822 1822
1823 void TestRunner::setShouldGeneratePixelResults(bool value) { 1823 void TestRunner::setShouldGeneratePixelResults(bool value) {
1824 layout_dump_flags_.set_generate_pixel_results(value); 1824 layout_dump_flags_.set_generate_pixel_results(value);
1825 OnLayoutDumpFlagsChanged(); 1825 OnLayoutDumpFlagsChanged();
1826 } 1826 }
1827 1827
1828 bool TestRunner::ShouldDumpAsAudio() const { 1828 bool TestRunner::ShouldDumpAsAudio() const {
(...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
3202 } 3202 }
3203 3203
3204 void TestRunner::DidLosePointerLockInternal() { 3204 void TestRunner::DidLosePointerLockInternal() {
3205 bool was_locked = pointer_locked_; 3205 bool was_locked = pointer_locked_;
3206 pointer_locked_ = false; 3206 pointer_locked_ = false;
3207 if (was_locked) 3207 if (was_locked)
3208 web_view_->didLosePointerLock(); 3208 web_view_->didLosePointerLock();
3209 } 3209 }
3210 3210
3211 } // namespace test_runner 3211 } // namespace test_runner
OLDNEW
« no previous file with comments | « components/test_runner/test_runner.h ('k') | components/test_runner/web_frame_test_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698