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

Side by Side Diff: media/mojo/clients/mojo_android_overlay_unittest.cc

Issue 2765443004: AndroidOverlay implementation using Dialog. (Closed)
Patch Set: make findbugs happy 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <memory> 5 #include <memory>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 // Test that layouts are ignored before the client is notified about a surface. 206 // Test that layouts are ignored before the client is notified about a surface.
207 TEST_F(MojoAndroidOverlayTest, LayoutBeforeSurfaceIsIgnored) { 207 TEST_F(MojoAndroidOverlayTest, LayoutBeforeSurfaceIsIgnored) {
208 CreateAndInitializeOverlay(); 208 CreateAndInitializeOverlay();
209 209
210 gfx::Rect new_layout(5, 6, 7, 8); 210 gfx::Rect new_layout(5, 6, 7, 8);
211 EXPECT_CALL(mock_overlay_, ScheduleLayout(_)).Times(0); 211 EXPECT_CALL(mock_overlay_, ScheduleLayout(_)).Times(0);
212 overlay_client_->ScheduleLayout(new_layout); 212 overlay_client_->ScheduleLayout(new_layout);
213 } 213 }
214 214
215 // Test |secure| makes it to the mojo config when it is true
216 TEST_F(MojoAndroidOverlayTest, SecureFlagIsSentViaMojoWhenTrue) {
217 config_.secure = true;
218 CreateOverlay();
219 ASSERT_TRUE(mock_provider_.config_->secure);
220 }
221
222 // Test |secure| makes it to the mojo config when it is false
223 TEST_F(MojoAndroidOverlayTest, SecureFlagIsSentViaMojoWhenFalse) {
224 config_.secure = false;
225 CreateOverlay();
226 ASSERT_FALSE(mock_provider_.config_->secure);
227 }
228
215 } // namespace media 229 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698