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

Unified Diff: components/exo/surface_unittest.cc

Issue 1802993003: exo: Add support for secure_output interface to wayland bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wayland-protocols-secure-contents
Patch Set: rebase Created 4 years, 9 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/exo/surface_unittest.cc
diff --git a/components/exo/surface_unittest.cc b/components/exo/surface_unittest.cc
index 28b7cd2aad48f9b23376f7742993483be4f2aa5c..1edcd9dc1c174e163f5f8a0eac9dc54bd6f6c422 100644
--- a/components/exo/surface_unittest.cc
+++ b/components/exo/surface_unittest.cc
@@ -133,6 +133,17 @@ TEST_F(SurfaceTest, SetViewport) {
EXPECT_EQ(viewport.ToString(), surface->bounds().size().ToString());
}
+TEST_F(SurfaceTest, SetOnlyVisibleOnSecureOutput) {
+ gfx::Size buffer_size(1, 1);
+ scoped_ptr<Buffer> buffer(
+ new Buffer(exo_test_helper()->CreateGpuMemoryBuffer(buffer_size)));
+ scoped_ptr<Surface> surface(new Surface);
+
+ surface->Attach(buffer.get());
+ surface->SetOnlyVisibleOnSecureOutput(true);
+ surface->Commit();
Daniele Castagna 2016/03/16 22:28:07 Test that the produced mailbox has the flag secure
reveman 2016/03/17 16:36:32 Done.
+}
+
TEST_F(SurfaceTest, Commit) {
scoped_ptr<Surface> surface(new Surface);

Powered by Google App Engine
This is Rietveld 408576698