#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;
}
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
IN_PROC_BROWSER_TEST_F(ExtensionsMenuSitePermissionsPageViewInteractiveUITest,
MAYBE_UpdateSiteSetting) { … }