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

Unified Diff: content/public/test/layouttest_support.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/shell/renderer/layout_test/blink_test_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/layouttest_support.h
diff --git a/content/public/test/layouttest_support.h b/content/public/test/layouttest_support.h
index d90830dd59c708a8ce62ef4d990b546a979e7846..b43d37fe4af9fecc018d52188eb634767bf9156c 100644
--- a/content/public/test/layouttest_support.h
+++ b/content/public/test/layouttest_support.h
@@ -33,6 +33,10 @@ namespace device {
class BluetoothAdapter;
}
+namespace gfx {
+class ICCProfile;
+}
+
namespace test_runner {
class WebFrameTestProxyBase;
class WebViewTestProxyBase;
@@ -127,8 +131,13 @@ void SetDeviceScaleFactor(RenderView* render_view, float factor);
// Get the window to viewport scale.
float GetWindowToViewportScale(RenderView* render_view);
+// Get the ICC profile for a given name string. This is not in the ICCProfile
+// class to avoid bloating the shipping build.
+gfx::ICCProfile GetTestingICCProfile(const std::string& name);
+
// Set the device color profile associated with the profile |name|.
-void SetDeviceColorProfile(RenderView* render_view, const std::string& name);
+void SetDeviceColorProfile(
+ RenderView* render_view, const gfx::ICCProfile& icc_profile);
// Sets the scan duration to 0.
void SetTestBluetoothScanDuration();
« no previous file with comments | « no previous file | content/shell/renderer/layout_test/blink_test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698