Index: test/cctest/cctest.h |
diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h |
index 95366667c756397dd1704c5e15b31cbc39d2529e..73baa7656ec2ea952c524230e401f56ecf1bbd63 100644 |
--- a/test/cctest/cctest.h |
+++ b/test/cctest/cctest.h |
@@ -575,6 +575,18 @@ static inline void SimulateIncrementalMarking(i::Heap* heap) { |
} |
+static void DummyDebugEventListener( |
+ const v8::Debug::EventDetails& event_details) {} |
+ |
+ |
+static inline void EnableDebugger() { |
+ v8::Debug::SetDebugEventListener(&DummyDebugEventListener); |
+} |
+ |
+ |
+static inline void DisableDebugger() { v8::Debug::SetDebugEventListener(NULL); } |
+ |
+ |
// Helper class for new allocations tracking and checking. |
// To use checking of JS allocations tracking in a test, |
// just create an instance of this class. |