#include "base/test/scoped_feature_list.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/file_system_access/file_system_access_features.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_element_identifiers.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/views/controls/rich_controls_container_view.h"
#include "chrome/browser/ui/views/location_bar/content_setting_image_view.h"
#include "chrome/browser/ui/views/page_info/page_info_main_view.h"
#include "chrome/browser/ui/views/page_info/permission_toggle_row_view.h"
#include "chrome/browser/ui/views/permissions/permission_prompt_bubble_base_view.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/interaction/interactive_browser_test.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/content_settings_types.h"
#include "components/content_settings/core/common/features.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "content/public/common/content_features.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/dns/mock_host_resolver.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/views/interaction/interaction_test_util_views.h"
#include "ui/views/view_utils.h"
namespace {
DEFINE_LOCAL_ELEMENT_IDENTIFIER_VALUE(…);
const char kFirstPermissionRow[] = …;
}
class PermissionRHSIndicatorsInteractiveUITest : public InteractiveBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PermissionRHSIndicatorsInteractiveUITest,
PageInfoWithEmptyPermissionsTest) { … }
IN_PROC_BROWSER_TEST_F(PermissionRHSIndicatorsInteractiveUITest,
PageInfoCameraPermissionsTest) { … }
IN_PROC_BROWSER_TEST_F(PermissionRHSIndicatorsInteractiveUITest,
FileSystemPermissionsTest) { … }
IN_PROC_BROWSER_TEST_F(PermissionRHSIndicatorsInteractiveUITest,
NotificationsPermissionRequestTest) { … }
IN_PROC_BROWSER_TEST_F(PermissionRHSIndicatorsInteractiveUITest,
CameraPermissionRequestTest) { … }
IN_PROC_BROWSER_TEST_F(PermissionRHSIndicatorsInteractiveUITest,
CameraActivityIndicatorTest) { … }
IN_PROC_BROWSER_TEST_F(PermissionRHSIndicatorsInteractiveUITest,
MicrophoneActivityIndicatorTest) { … }
IN_PROC_BROWSER_TEST_F(PermissionRHSIndicatorsInteractiveUITest,
CameraAndMicrophoneActivityIndicatorTest) { … }