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

Unified Diff: base/memory/shared_memory_unittest.cc

Issue 2102923002: Change MessagePumpForGpu and SharedMemory to ScopedHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed spacing and added Bug ID Created 4 years, 6 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 | « base/memory/shared_memory.h ('k') | base/memory/shared_memory_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/shared_memory_unittest.cc
diff --git a/base/memory/shared_memory_unittest.cc b/base/memory/shared_memory_unittest.cc
index 8251f6084021c737ba01fb3986513d52da254d23..f29865c21aee054cc1368968263d8b317d53ea10 100644
--- a/base/memory/shared_memory_unittest.cc
+++ b/base/memory/shared_memory_unittest.cc
@@ -592,11 +592,6 @@ TEST(SharedMemoryTest, UnsafeImageSection) {
EXPECT_FALSE(shared_memory_open.Map(1));
EXPECT_EQ(nullptr, shared_memory_open.memory());
- SharedMemory shared_memory_handle_dup(
- SharedMemoryHandle(section_handle.Get(), ::GetCurrentProcessId()), true);
- EXPECT_FALSE(shared_memory_handle_dup.Map(1));
- EXPECT_EQ(nullptr, shared_memory_handle_dup.memory());
-
SharedMemory shared_memory_handle_local(
SharedMemoryHandle(section_handle.Take(), ::GetCurrentProcessId()), true);
EXPECT_FALSE(shared_memory_handle_local.Map(1));
« no previous file with comments | « base/memory/shared_memory.h ('k') | base/memory/shared_memory_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698