chromium/chrome/browser/ui/views/extensions/extensions_menu_site_permissions_page_view_interactive_uitest.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/extensions/extensions_menu_site_permissions_page_view.h"

#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/views/extensions/extensions_menu_coordinator.h"
#include "chrome/browser/ui/views/extensions/extensions_menu_view_controller.h"
#include "chrome/browser/ui/views/extensions/extensions_toolbar_button.h"
#include "chrome/browser/ui/views/extensions/extensions_toolbar_container.h"
#include "chrome/browser/ui/views/extensions/extensions_toolbar_interactive_uitest.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/test_navigation_observer.h"
#include "extensions/common/extension_features.h"
#include "extensions/test/permissions_manager_waiter.h"
#include "ui/views/controls/button/toggle_button.h"

namespace {

PermissionsManager;

}  // namespace

class ExtensionsMenuSitePermissionsPageViewInteractiveUITest
    : public ExtensionsToolbarUITest {};

ExtensionsMenuSitePermissionsPageViewInteractiveUITest::
    ExtensionsMenuSitePermissionsPageViewInteractiveUITest() {}

void ExtensionsMenuSitePermissionsPageViewInteractiveUITest::
    ShowSitePermissionsPage(extensions::ExtensionId extension_id) {}

bool ExtensionsMenuSitePermissionsPageViewInteractiveUITest::
    IsMainPageOpened() {}

bool ExtensionsMenuSitePermissionsPageViewInteractiveUITest::
    IsSitePermissionsPageOpened(extensions::ExtensionId extension_id) {}

ExtensionsMenuMainPageView*
ExtensionsMenuSitePermissionsPageViewInteractiveUITest::main_page() {}

ExtensionsMenuSitePermissionsPageView*
ExtensionsMenuSitePermissionsPageViewInteractiveUITest::
    site_permissions_page() {}

void ExtensionsMenuSitePermissionsPageViewInteractiveUITest::ShowUi(
    const std::string& extension_id) {}

#if BUILDFLAG(IS_MAC)
#define MAYBE_UpdateSiteSetting
#else
#define MAYBE_UpdateSiteSetting
#endif
// Tests that updating the user site setting, outside the menu, properly updates
// the UI. Note: effects will not be visible if page needs refresh for site
// setting to take effect.
IN_PROC_BROWSER_TEST_F(ExtensionsMenuSitePermissionsPageViewInteractiveUITest,
                       MAYBE_UpdateSiteSetting) {}