chromium/chrome/browser/ui/views/autofill/popup/custom_cursor_suppressor_browsertest.cc

// 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.

#include "chrome/browser/ui/views/autofill/popup/custom_cursor_suppressor.h"

#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/ui/browser_window/public/browser_window_features.h"
#include "chrome/browser/ui/views/side_panel/extensions/extension_side_panel_coordinator.h"
#include "chrome/browser/ui/views/side_panel/extensions/extension_side_panel_manager.h"
#include "chrome/browser/ui/views/side_panel/side_panel_coordinator.h"
#include "chrome/browser/ui/views/side_panel/side_panel_registry.h"
#include "content/public/test/browser_test.h"
#include "extensions/browser/extension_host_test_helper.h"
#include "extensions/test/extension_test_message_listener.h"
#include "testing/gtest/include/gtest/gtest.h"

class CustomCursorSuppressorBrowsertest
    : public extensions::ExtensionBrowserTest {};

// Tests that starting custom cursor suppression disables custom cursors in
// extension `WebContents` objects that were created before the suppressor is
// started.
IN_PROC_BROWSER_TEST_F(CustomCursorSuppressorBrowsertest,
                       SuppressionWorksForAlreadyLoadedExtensions) {}

// Tests that starting custom cursor suppression disables custom cursors in
// extensions `WebContents` objects that are created after the suppressor
// is started.
IN_PROC_BROWSER_TEST_F(
    CustomCursorSuppressorBrowsertest,
    SuppressionWorksForExtensionsLoadedAfterSuppressorStart) {}