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

Unified Diff: content/browser/media/capture/web_contents_video_capture_device_unittest.cc

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: fixes Created 4 years, 11 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
Index: content/browser/media/capture/web_contents_video_capture_device_unittest.cc
diff --git a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
index 9e3bf83c4616172b6190f9177327477fde34e83e..6f1df992ec4d937552ec1b6bcc6a6bf9e47a9d68 100644
--- a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
+++ b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
@@ -590,8 +590,8 @@ class MAYBE_WebContentsVideoCaptureDeviceTest : public testing::Test {
test_screen_.display()->set_bounds(gfx::Rect(0, 0, 2560, 1440));
test_screen_.display()->set_device_scale_factor(kTestDeviceScaleFactor);
- gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, &test_screen_);
- ASSERT_EQ(&test_screen_, gfx::Screen::GetNativeScreen());
+ gfx::Screen::SetScreenInstance(&test_screen_);
+ ASSERT_EQ(&test_screen_, gfx::Screen::GetScreen());
// TODO(nick): Sadness and woe! Much "mock-the-world" boilerplate could be
// eliminated here, if only we could use RenderViewHostTestHarness. The
@@ -649,7 +649,7 @@ class MAYBE_WebContentsVideoCaptureDeviceTest : public testing::Test {
render_view_host_factory_.reset();
render_process_host_factory_.reset();
- gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, NULL);
+ gfx::Screen::SetScreenInstance(NULL);
sky 2016/01/19 22:47:54 nullptr.
scottmg 2016/01/20 00:52:57 Done.
}
// Accessors.

Powered by Google App Engine
This is Rietveld 408576698