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

Unified Diff: gpu/ipc/client/gpu_memory_buffer_impl_shared_memory_unittest.cc

Issue 2912753002: Add gfx::GpuMemoryBuffer::shared_memory_handle() (Closed)
Patch Set: Created 3 years, 7 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: gpu/ipc/client/gpu_memory_buffer_impl_shared_memory_unittest.cc
diff --git a/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory_unittest.cc b/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory_unittest.cc
index 257b64e750c630120220246e43acc2a0473276e0..5a77a0c69834c20190edb991358189d51e00eb41 100644
--- a/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory_unittest.cc
+++ b/gpu/ipc/client/gpu_memory_buffer_impl_shared_memory_unittest.cc
@@ -32,6 +32,10 @@ TEST(GpuMemoryBufferImplSharedMemoryTest, Create) {
ASSERT_TRUE(buffer);
EXPECT_EQ(buffer->GetFormat(), format);
+ // Check if the backend is actually SharedMemory and its GUID is available.
+ EXPECT_NE(base::UnguessableToken(),
+ buffer->shared_memory_handle().GetGUID());
+
// Check if destruction callback is executed when deleting the buffer.
buffer.reset();
ASSERT_TRUE(destroyed);

Powered by Google App Engine
This is Rietveld 408576698