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

Unified Diff: media/mojo/clients/mojo_android_overlay_unittest.cc

Issue 2765443004: AndroidOverlay implementation using Dialog. (Closed)
Patch Set: fixed test Created 3 years, 8 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 | « media/mojo/clients/mojo_android_overlay.cc ('k') | media/mojo/interfaces/android_overlay.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/clients/mojo_android_overlay_unittest.cc
diff --git a/media/mojo/clients/mojo_android_overlay_unittest.cc b/media/mojo/clients/mojo_android_overlay_unittest.cc
index 0e987f8e2d83c10690a354282a3f265a551c2813..3e44f1de490e3d9bd36f787e6f392bd07078b92d 100644
--- a/media/mojo/clients/mojo_android_overlay_unittest.cc
+++ b/media/mojo/clients/mojo_android_overlay_unittest.cc
@@ -213,4 +213,18 @@ TEST_F(MojoAndroidOverlayTest, LayoutBeforeSurfaceIsIgnored) {
overlay_client_->ScheduleLayout(new_layout);
}
+// Test |secure| makes it to the mojo config when it is true
+TEST_F(MojoAndroidOverlayTest, SecureFlagIsSentViaMojoWhenTrue) {
+ config_.secure = true;
+ CreateOverlay();
+ ASSERT_TRUE(mock_provider_.config_->secure);
+}
+
+// Test |secure| makes it to the mojo config when it is false
+TEST_F(MojoAndroidOverlayTest, SecureFlagIsSentViaMojoWhenFalse) {
+ config_.secure = false;
+ CreateOverlay();
+ ASSERT_FALSE(mock_provider_.config_->secure);
+}
+
} // namespace media
« no previous file with comments | « media/mojo/clients/mojo_android_overlay.cc ('k') | media/mojo/interfaces/android_overlay.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698