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

Unified Diff: ui/gfx/mojo/struct_traits_unittest.cc

Issue 2415443005: gfx: Fix sending an invalid GpuMemoryBufferHandle over mojo. (Closed)
Patch Set: . Created 4 years, 2 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 | « ui/gfx/mojo/buffer_types_traits.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/mojo/struct_traits_unittest.cc
diff --git a/ui/gfx/mojo/struct_traits_unittest.cc b/ui/gfx/mojo/struct_traits_unittest.cc
index d837cd82da0c3b436638acd228994b71a9fa2eb1..e7cb15f72250c6cd519b9b19ea3e799d56d932b2 100644
--- a/ui/gfx/mojo/struct_traits_unittest.cc
+++ b/ui/gfx/mojo/struct_traits_unittest.cc
@@ -185,4 +185,11 @@ TEST_F(StructTraitsTest, GpuMemoryBufferHandle) {
#endif
}
+TEST_F(StructTraitsTest, NullGpuMemoryBufferHandle) {
+ mojom::TraitsTestServicePtr proxy = GetTraitsTestProxy();
+ GpuMemoryBufferHandle output;
+ proxy->EchoGpuMemoryBufferHandle(GpuMemoryBufferHandle(), &output);
+ EXPECT_TRUE(output.is_null());
+}
+
} // namespace gfx
« no previous file with comments | « ui/gfx/mojo/buffer_types_traits.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698