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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 2299193005: Layout tests: Parameterize color space to use by default (Closed)
Patch Set: Actually specify generic Created 4 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/renderer/layout_test/blink_test_runner.h" 5 #include "content/shell/renderer/layout_test/blink_test_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <clocale> 10 #include <clocale>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #include "third_party/WebKit/public/web/WebFrame.h" 84 #include "third_party/WebKit/public/web/WebFrame.h"
85 #include "third_party/WebKit/public/web/WebFrameWidget.h" 85 #include "third_party/WebKit/public/web/WebFrameWidget.h"
86 #include "third_party/WebKit/public/web/WebHistoryItem.h" 86 #include "third_party/WebKit/public/web/WebHistoryItem.h"
87 #include "third_party/WebKit/public/web/WebKit.h" 87 #include "third_party/WebKit/public/web/WebKit.h"
88 #include "third_party/WebKit/public/web/WebLeakDetector.h" 88 #include "third_party/WebKit/public/web/WebLeakDetector.h"
89 #include "third_party/WebKit/public/web/WebLocalFrame.h" 89 #include "third_party/WebKit/public/web/WebLocalFrame.h"
90 #include "third_party/WebKit/public/web/WebScriptSource.h" 90 #include "third_party/WebKit/public/web/WebScriptSource.h"
91 #include "third_party/WebKit/public/web/WebTestingSupport.h" 91 #include "third_party/WebKit/public/web/WebTestingSupport.h"
92 #include "third_party/WebKit/public/web/WebView.h" 92 #include "third_party/WebKit/public/web/WebView.h"
93 #include "ui/gfx/geometry/rect.h" 93 #include "ui/gfx/geometry/rect.h"
94 #include "ui/gfx/icc_profile.h"
94 95
95 using blink::Platform; 96 using blink::Platform;
96 using blink::WebArrayBufferView; 97 using blink::WebArrayBufferView;
97 using blink::WebContextMenuData; 98 using blink::WebContextMenuData;
98 using blink::WebDevToolsAgent; 99 using blink::WebDevToolsAgent;
99 using blink::WebDeviceMotionData; 100 using blink::WebDeviceMotionData;
100 using blink::WebDeviceOrientationData; 101 using blink::WebDeviceOrientationData;
101 using blink::WebElement; 102 using blink::WebElement;
102 using blink::WebLocalFrame; 103 using blink::WebLocalFrame;
103 using blink::WebHistoryItem; 104 using blink::WebHistoryItem;
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 void BlinkTestRunner::EnableUseZoomForDSF() { 501 void BlinkTestRunner::EnableUseZoomForDSF() {
501 base::CommandLine::ForCurrentProcess()-> 502 base::CommandLine::ForCurrentProcess()->
502 AppendSwitch(switches::kEnableUseZoomForDSF); 503 AppendSwitch(switches::kEnableUseZoomForDSF);
503 } 504 }
504 505
505 bool BlinkTestRunner::IsUseZoomForDSFEnabled() { 506 bool BlinkTestRunner::IsUseZoomForDSFEnabled() {
506 return content::IsUseZoomForDSFEnabled(); 507 return content::IsUseZoomForDSFEnabled();
507 } 508 }
508 509
509 void BlinkTestRunner::SetDeviceColorProfile(const std::string& name) { 510 void BlinkTestRunner::SetDeviceColorProfile(const std::string& name) {
510 content::SetDeviceColorProfile(render_view(), name); 511 content::SetDeviceColorProfile(render_view(), GetTestingICCProfile(name));
511 } 512 }
512 513
513 void BlinkTestRunner::SetBluetoothFakeAdapter(const std::string& adapter_name, 514 void BlinkTestRunner::SetBluetoothFakeAdapter(const std::string& adapter_name,
514 const base::Closure& callback) { 515 const base::Closure& callback) {
515 GetBluetoothFakeAdapterSetter().Set(adapter_name, callback); 516 GetBluetoothFakeAdapterSetter().Set(adapter_name, callback);
516 } 517 }
517 518
518 void BlinkTestRunner::SetBluetoothManualChooser(bool enable) { 519 void BlinkTestRunner::SetBluetoothManualChooser(bool enable) {
519 Send(new ShellViewHostMsg_SetBluetoothManualChooser(routing_id(), enable)); 520 Send(new ShellViewHostMsg_SetBluetoothManualChooser(routing_id(), enable));
520 } 521 }
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 void BlinkTestRunner::ReportLeakDetectionResult( 1018 void BlinkTestRunner::ReportLeakDetectionResult(
1018 const LeakDetectionResult& report) { 1019 const LeakDetectionResult& report) {
1019 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1020 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1020 } 1021 }
1021 1022
1022 void BlinkTestRunner::OnDestruct() { 1023 void BlinkTestRunner::OnDestruct() {
1023 delete this; 1024 delete this;
1024 } 1025 }
1025 1026
1026 } // namespace content 1027 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/shell/renderer/layout_test/layout_test_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698