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

Unified Diff: core/src/fxcrt/fx_basic_memmgr_unittest.cpp

Issue 1757043002: Remove unused CFX_GrowOnlyPool. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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
« core/include/fxcrt/fx_memory.h ('K') | « core/src/fxcrt/fx_basic_memmgr.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« core/include/fxcrt/fx_memory.h ('K') | « core/src/fxcrt/fx_basic_memmgr.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698