xref: /third_party/node/deps/v8/src/inspector/test-interface.cc
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/deps/v8/src/inspector/
11cb0ef41Sopenharmony_ci// Copyright 2016 the V8 project authors. All rights reserved.
21cb0ef41Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be
31cb0ef41Sopenharmony_ci// found in the LICENSE file.
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ci#include "src/inspector/test-interface.h"
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ci#include "src/inspector/v8-debugger.h"
81cb0ef41Sopenharmony_ci#include "src/inspector/v8-inspector-impl.h"
91cb0ef41Sopenharmony_ci
101cb0ef41Sopenharmony_cinamespace v8_inspector {
111cb0ef41Sopenharmony_ci
121cb0ef41Sopenharmony_civoid SetMaxAsyncTaskStacksForTest(V8Inspector* inspector, int limit) {
131cb0ef41Sopenharmony_ci  static_cast<V8InspectorImpl*>(inspector)
141cb0ef41Sopenharmony_ci      ->debugger()
151cb0ef41Sopenharmony_ci      ->setMaxAsyncTaskStacksForTest(limit);
161cb0ef41Sopenharmony_ci}
171cb0ef41Sopenharmony_ci
181cb0ef41Sopenharmony_civoid DumpAsyncTaskStacksStateForTest(V8Inspector* inspector) {
191cb0ef41Sopenharmony_ci  static_cast<V8InspectorImpl*>(inspector)
201cb0ef41Sopenharmony_ci      ->debugger()
211cb0ef41Sopenharmony_ci      ->dumpAsyncTaskStacksStateForTest();
221cb0ef41Sopenharmony_ci}
231cb0ef41Sopenharmony_ci
241cb0ef41Sopenharmony_ci}  // namespace v8_inspector
25

Indexes created Thu Nov 07 10:32:03 CST 2024