Index: test/unittests/heap/gc-idle-time-handler-unittest.cc |
diff --git a/test/unittests/heap/gc-idle-time-handler-unittest.cc b/test/unittests/heap/gc-idle-time-handler-unittest.cc |
index 977882a46ce36370a0e96427b1fc63816364c51e..3d8c87fe546cc41fb63afe696408864288fd083f 100644 |
--- a/test/unittests/heap/gc-idle-time-handler-unittest.cc |
+++ b/test/unittests/heap/gc-idle-time-handler-unittest.cc |
@@ -180,6 +180,20 @@ TEST_F(GCIdleTimeHandlerTest, DontDoMarkCompact) { |
} |
+TEST_F(GCIdleTimeHandlerTest, ShouldDoFinalIncrementalMarkCompact) { |
+ size_t idle_time_in_ms = 16; |
+ EXPECT_TRUE(GCIdleTimeHandler::ShouldDoFinalIncrementalMarkCompact( |
+ idle_time_in_ms, 0, 0)); |
+} |
+ |
+ |
+TEST_F(GCIdleTimeHandlerTest, DontDoFinalIncrementalMarkCompact) { |
+ size_t idle_time_in_ms = 1; |
+ EXPECT_FALSE(GCIdleTimeHandler::ShouldDoFinalIncrementalMarkCompact( |
+ idle_time_in_ms, kSizeOfObjects, kMarkingSpeed)); |
+} |
+ |
+ |
TEST_F(GCIdleTimeHandlerTest, ContextDisposeLowRate) { |
GCIdleTimeHandler::HeapState heap_state = DefaultHeapState(); |
heap_state.contexts_disposed = 1; |