Chromium Code Reviews| 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); |