chromium/chrome/browser/headless/headless_mode_devtooled_browsertest.h

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

#ifndef CHROME_BROWSER_HEADLESS_HEADLESS_MODE_DEVTOOLED_BROWSERTEST_H_
#define CHROME_BROWSER_HEADLESS_HEADLESS_MODE_DEVTOOLED_BROWSERTEST_H_

#include <memory>

#include "base/run_loop.h"
#include "chrome/browser/headless/headless_mode_browsertest.h"
#include "components/devtools/simple_devtools_protocol_client/simple_devtools_protocol_client.h"
#include "content/public/browser/web_contents_observer.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace content {
class WebContents;
}

namespace headless {

// Base class for tests that require access to a DevToolsClient. Subclasses
// should override the RunDevTooledTest() method, which is called asynchronously
// when the DevToolsClient is ready.
class HeadlessModeDevTooledBrowserTest : public HeadlessModeBrowserTest,
                                         public content::WebContentsObserver {};

#define HEADLESS_MODE_DEVTOOLED_TEST_F(TEST_FIXTURE_NAME)

#define HEADLESS_MODE_DEVTOOLED_TEST_P(TEST_FIXTURE_NAME)

#define DISABLED_HEADLESS_MODE_DEVTOOLED_TEST_F(TEST_FIXTURE_NAME)

#define DISABLED_HEADLESS_MODE_DEVTOOLED_TEST_P(TEST_FIXTURE_NAME)

}  // namespace headless

#endif  // CHROME_BROWSER_HEADLESS_HEADLESS_MODE_DEVTOOLED_BROWSERTEST_H_