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

Unified Diff: components/content_settings/core/browser/content_settings_registry_unittest.cc

Issue 2123863004: ScreenCapture for Android phase1, part II (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: UI tweaking and rebase Created 4 years, 4 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: components/content_settings/core/browser/content_settings_registry_unittest.cc
diff --git a/components/content_settings/core/browser/content_settings_registry_unittest.cc b/components/content_settings/core/browser/content_settings_registry_unittest.cc
index 7b8d66203ce9c25c99768f1a023cb4cbb5ff8bd0..ac02c800321f10395a3ac66963bf2f38b4bec0ec 100644
--- a/components/content_settings/core/browser/content_settings_registry_unittest.cc
+++ b/components/content_settings/core/browser/content_settings_registry_unittest.cc
@@ -52,6 +52,13 @@ TEST_F(ContentSettingsRegistryTest, GetPlatformDependent) {
registry()->Get(CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER));
#endif
+#if defined(OS_ANDROID)
+ // Media stream screen only gets registered on android.
+ EXPECT_TRUE(registry()->Get(CONTENT_SETTINGS_TYPE_MEDIASTREAM_SCREEN));
+#else
+ EXPECT_FALSE(registry()->Get(CONTENT_SETTINGS_TYPE_MEDIASTREAM_SCREEN));
+#endif
+
// Cookies is registered on all platforms.
EXPECT_TRUE(registry()->Get(CONTENT_SETTINGS_TYPE_COOKIES));
}

Powered by Google App Engine
This is Rietveld 408576698