blob: 9d6104a833e69eecdef7b93c089e1ead84a90081 [file] [log] [blame]
// 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_UI_EXTENSIONS_EXTENSION_SIDE_PANEL_TEST_UTILS_H_
#define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_SIDE_PANEL_TEST_UTILS_H_
#include "extensions/common/extension_id.h"
class Browser;
namespace content {
class WebContents;
} // namespace content
namespace extensions {
// Opens the side panel for `browser` for the given extension's `id`.
// Implemented by extension_side_panel_test_utils.cc in views/.
void OpenExtensionSidePanel(Browser& browser, const ExtensionId& id);
// Returns the WebContents for the given extension `id`'s side panel view.
// Implemented by extension_side_panel_test_utils.cc in views/.
content::WebContents* GetExtensionSidePanelWebContents(Browser& browser,
const ExtensionId& id);
} // namespace extensions
#endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_SIDE_PANEL_TEST_UTILS_H_