Index: test/cctest/cctest.h |
diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h |
index 7d8ad59a269c61055597c6b9957324649a00a4b7..412a219e49732773e14c3803e7c391a3d695299c 100644 |
--- a/test/cctest/cctest.h |
+++ b/test/cctest/cctest.h |
@@ -31,7 +31,7 @@ |
#include <memory> |
#include "include/libplatform/libplatform.h" |
-#include "include/v8-debug.h" |
+#include "src/debug/debug-interface.h" |
#include "src/utils.h" |
#include "src/v8.h" |
#include "src/zone/accounting-allocator.h" |
@@ -547,18 +547,15 @@ static inline void CheckDoubleEquals(double expected, double actual) { |
CHECK_GE(expected, actual - kEpsilon); |
} |
- |
-static void DummyDebugEventListener( |
- const v8::Debug::EventDetails& event_details) {} |
- |
+static v8::debug::DebugDelegate dummy_delegate; |
static inline void EnableDebugger(v8::Isolate* isolate) { |
- v8::Debug::SetDebugEventListener(isolate, &DummyDebugEventListener); |
+ v8::debug::SetDebugDelegate(isolate, &dummy_delegate); |
} |
static inline void DisableDebugger(v8::Isolate* isolate) { |
- v8::Debug::SetDebugEventListener(isolate, nullptr); |
+ v8::debug::SetDebugDelegate(isolate, nullptr); |
} |