Index: core/src/fxcrt/fx_basic_memmgr_unittest.cpp |
diff --git a/core/src/fxcrt/fx_basic_memmgr_unittest.cpp b/core/src/fxcrt/fx_basic_memmgr_unittest.cpp |
index 9821ca90574dce76df3bfd5d2c1da24ae1c540b6..6dc91d735ba8e3e2155ef2056d70184d3cbb6c50 100644 |
--- a/core/src/fxcrt/fx_basic_memmgr_unittest.cpp |
+++ b/core/src/fxcrt/fx_basic_memmgr_unittest.cpp |
@@ -42,24 +42,6 @@ TEST(fxcrt, FX_AllocOverflow2D) { |
""); |
} |
-TEST(fxcrt, DISABLED_FX_TryAllocOOM) { |
Tom Sepez
2016/03/02 20:28:07
And keep these.
dsinclair
2016/03/02 20:55:36
Done.
|
- EXPECT_FALSE(FX_TryAlloc(int, kMaxIntAlloc)); |
- |
- int* ptr = FX_Alloc(int, 1); |
- EXPECT_TRUE(ptr); |
- EXPECT_FALSE(FX_TryRealloc(int, ptr, kMaxIntAlloc)); |
- FX_Free(ptr); |
-} |
- |
-TEST(fxcrt, FX_TryAllocOverflow) { |
- EXPECT_FALSE(FX_TryAlloc(int, kOverflowIntAlloc)); |
- |
- int* ptr = FX_Alloc(int, 1); |
- EXPECT_TRUE(ptr); |
- EXPECT_FALSE(FX_TryRealloc(int, ptr, kOverflowIntAlloc)); |
- FX_Free(ptr); |
-} |
- |
TEST(fxcrt, DISABLED_FXMEM_DefaultOOM) { |
EXPECT_FALSE(FXMEM_DefaultAlloc(kMaxByteAlloc, 0)); |