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

Unified Diff: base/memory/discardable_shared_memory_unittest.cc

Issue 1741403002: base: Avoid calling VirtualAlloc with 0 length. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep most of unit test Created 4 years, 10 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: base/memory/discardable_shared_memory_unittest.cc
diff --git a/base/memory/discardable_shared_memory_unittest.cc b/base/memory/discardable_shared_memory_unittest.cc
index f55479b05efaf5c42c87c5f7a6c0285228c31dab..4c55d54de21dc6c2fc10d8c451df0abeb2c71604 100644
--- a/base/memory/discardable_shared_memory_unittest.cc
+++ b/base/memory/discardable_shared_memory_unittest.cc
@@ -358,7 +358,7 @@ TEST(DiscardableSharedMemoryTest, ZeroSize) {
// Lock and unlock memory.
DiscardableSharedMemory::LockResult lock_rv = memory.Lock(0, 0);
- EXPECT_EQ(DiscardableSharedMemory::SUCCESS, lock_rv);
+ EXPECT_NE(DiscardableSharedMemory::FAILED, lock_rv);
memory.SetNow(Time::FromDoubleT(2));
memory.Unlock(0, 0);
}
« base/memory/discardable_shared_memory.cc ('K') | « base/memory/discardable_shared_memory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698