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

Unified Diff: content/test/layouttest_support.cc

Issue 561453004: Add RenderView ResetDeviceColorProfileForTesting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index c77d02b812307df643e30edd838337a3ca2a86e3..d582632d3cac0a1af625c23d7c76c07e2f3e2bfc 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -145,6 +145,12 @@ void SetDeviceScaleFactor(RenderView* render_view, float factor) {
}
void SetDeviceColorProfile(RenderView* render_view, const std::string& name) {
+ if (name == "reset") {
+ static_cast<RenderViewImpl*>(render_view)->
+ ResetDeviceColorProfileForTesting();
+ return;
+ }
+
std::vector<char> color_profile;
struct TestColorProfile {
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698