#include "chrome/browser/chrome_content_browser_client.h"
#include "chrome/browser/notifications/non_persistent_notification_handler.h"
#include "chrome/browser/notifications/notification_permission_context.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/permissions/permission_request_manager.h"
#include "components/permissions/permission_util.h"
#include "components/permissions/request_type.h"
#include "components/permissions/test/mock_permission_prompt_factory.h"
#include "components/permissions/test/mock_permission_request.h"
#include "components/ukm/test_ukm_recorder.h"
#include "content/public/common/content_client.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_mock_cert_verifier.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "services/metrics/public/cpp/ukm_builders.h"
namespace {
Permission;
const char kTestFilePath[] = …;
const char kTesterHost[] = …;
const char kIsolatedEmbedderHost[] = …;
const char kEmbedderHost[] = …;
class StoragePartitioningChromeContentBrowserClient
: public ChromeContentBrowserClient { … };
}
class NotificationPermissionBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(NotificationPermissionBrowserTest,
UndelegatedPermissionDeniedIfNotGrantedToOrigin) { … }
IN_PROC_BROWSER_TEST_F(NotificationPermissionBrowserTest,
UndelegatedPermissionsAreNotDelegated) { … }
IN_PROC_BROWSER_TEST_F(NotificationPermissionBrowserTest,
IframesInNonDefaultPartitionDontGetPermission) { … }
IN_PROC_BROWSER_TEST_F(NotificationPermissionBrowserTest,
NonPersistentNotificationThirdPartyCountMetricTest) { … }
IN_PROC_BROWSER_TEST_F(NotificationPermissionBrowserTest,
NonPersistentNotificationRecordsUkms) { … }
IN_PROC_BROWSER_TEST_F(NotificationPermissionBrowserTest,
DisablePermissionRecordsUkms) { … }