#include "base/functional/bind.h"
#include "build/build_config.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/notifications/notification_permission_context.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/permissions/contexts/geolocation_permission_context.h"
#include "components/permissions/contexts/midi_permission_context.h"
#include "components/permissions/permission_request_id.h"
#include "components/permissions/permission_util.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/test_renderer_host.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/permissions_policy/origin_with_possible_wildcards.h"
#include "third_party/blink/public/common/permissions_policy/permissions_policy.h"
#include "third_party/blink/public/mojom/permissions_policy/permissions_policy.mojom.h"
#include "url/gurl.h"
#include "url/origin.h"
#if BUILDFLAG(IS_ANDROID)
#include "chrome/browser/geolocation/geolocation_permission_context_delegate_android.h"
#else
#include "chrome/browser/geolocation/geolocation_permission_context_delegate.h"
#endif
class PermissionContextBasePermissionsPolicyTest
: public ChromeRenderViewHostTestHarness { … };
TEST_F(PermissionContextBasePermissionsPolicyTest, DefaultPolicy) { … }
TEST_F(PermissionContextBasePermissionsPolicyTest,
DefaultPolicyBlockMidiByDefault) { … }
TEST_F(PermissionContextBasePermissionsPolicyTest, DisabledTopLevelFrame) { … }
TEST_F(PermissionContextBasePermissionsPolicyTest, EnabledForChildFrame) { … }
TEST_F(PermissionContextBasePermissionsPolicyTest,
EnabledForChildFrameBlockMidiByDefault) { … }
TEST_F(PermissionContextBasePermissionsPolicyTest, RequestPermission) { … }