Index: test/unittests/heap/embedder-tracing-unittest.cc |
diff --git a/test/unittests/heap/embedder-tracing-unittest.cc b/test/unittests/heap/embedder-tracing-unittest.cc |
index 5e53177238284afef6332ef8962d18cc52d3caea..e6a6f2e250b117d951070b376de511c055921303 100644 |
--- a/test/unittests/heap/embedder-tracing-unittest.cc |
+++ b/test/unittests/heap/embedder-tracing-unittest.cc |
@@ -135,6 +135,7 @@ TEST(LocalEmbedderHeapTracer, TraceFinishes) { |
local_tracer.AddWrapperToTrace(CreateWrapperInfo()); |
EXPECT_EQ(1u, local_tracer.NumberOfCachedWrappersToTrace()); |
EXPECT_CALL(remote_tracer, RegisterV8References(_)); |
+ local_tracer.RegisterWrappersWithRemoteTracer(); |
EXPECT_CALL(remote_tracer, AdvanceTracing(0, _)).WillOnce(Return(false)); |
EXPECT_FALSE(local_tracer.Trace( |
0, EmbedderHeapTracer::AdvanceTracingActions( |
@@ -149,6 +150,7 @@ TEST(LocalEmbedderHeapTracer, TraceDoesNotFinish) { |
local_tracer.AddWrapperToTrace(CreateWrapperInfo()); |
EXPECT_EQ(1u, local_tracer.NumberOfCachedWrappersToTrace()); |
EXPECT_CALL(remote_tracer, RegisterV8References(_)); |
+ local_tracer.RegisterWrappersWithRemoteTracer(); |
EXPECT_CALL(remote_tracer, AdvanceTracing(0, _)).WillOnce(Return(true)); |
EXPECT_TRUE(local_tracer.Trace( |
0, EmbedderHeapTracer::AdvanceTracingActions( |