chromium/content/services/auction_worklet/worklet_devtools_debug_test_util.h

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_SERVICES_AUCTION_WORKLET_WORKLET_DEVTOOLS_DEBUG_TEST_UTIL_H_
#define CONTENT_SERVICES_AUCTION_WORKLET_WORKLET_DEVTOOLS_DEBUG_TEST_UTIL_H_

#include <list>
#include <string>

#include "base/functional/callback.h"
#include "base/values.h"
#include "mojo/public/cpp/bindings/associated_receiver.h"
#include "mojo/public/cpp/bindings/associated_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "third_party/blink/public/mojom/devtools/devtools_agent.mojom.h"

namespace auction_worklet {

// This is a collection of helpers for testing debugging via the mojo
// blink.mojom.DevToolsAgent interface.
class TestDevToolsAgentClient : public blink::mojom::DevToolsSessionHost {};

// Returns JSON for EventBreakpoints.`verb`IntrumentationBreakpoint command with
// id `seq_number` targeting name `event_name`.
std::string MakeInstrumentationBreakpointCommand(int seq_number,
                                                 const char* verb,
                                                 const char* event_name);

}  // namespace auction_worklet

#endif  // CONTENT_SERVICES_AUCTION_WORKLET_WORKLET_DEVTOOLS_DEBUG_TEST_UTIL_H_