chromium/chrome/browser/permissions/permission_revocation_request_unittests.cc

// Copyright 2020 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/permissions/permission_revocation_request.h"

#include "base/files/scoped_temp_dir.h"
#include "base/run_loop.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/mock_callback.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/permissions/crowd_deny_fake_safe_browsing_database_manager.h"
#include "chrome/browser/permissions/crowd_deny_preload_data.h"
#include "chrome/browser/permissions/notifications_permission_revocation_config.h"
#include "chrome/browser/safe_browsing/test_safe_browsing_service.h"
#include "chrome/common/chrome_features.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/prefs/pref_service.h"
#include "content/public/test/browser_task_environment.h"

class PermissionRevocationRequestTestBase : public testing::Test {};

class PermissionRevocationRequestTest
    : public PermissionRevocationRequestTestBase {};

TEST_F(PermissionRevocationRequestTest, OriginIsNotOnBlockingLists) {}

TEST_F(PermissionRevocationRequestTest, SafeBrowsingTest) {}

TEST_F(PermissionRevocationRequestTest, PreloadDataTest) {}

TEST_F(PermissionRevocationRequestTest, PreloadDataAsyncTest) {}

TEST_F(PermissionRevocationRequestTest, PreloadDataAsyncHistogramTest) {}

TEST_F(PermissionRevocationRequestTest, PreloadDataTestWithWarning) {}

TEST_F(PermissionRevocationRequestTest, ExemptAbusiveOriginTest) {}

TEST_F(PermissionRevocationRequestTest, SafeBrowsingDisabledTest) {}

class PermissionRevocationRequestDisabledTest
    : public PermissionRevocationRequestTestBase {};

TEST_F(PermissionRevocationRequestDisabledTest,
       PermissionRevocationFeatureDisabled) {}

class PermissionDisruptiveRevocationEnabledTest
    : public PermissionRevocationRequestTestBase {};

TEST_F(PermissionDisruptiveRevocationEnabledTest,
       PermissionDisruptiveRevocationEnabled) {}

class PermissionDisruptiveRevocationDisabledTest
    : public PermissionRevocationRequestTestBase {};

TEST_F(PermissionDisruptiveRevocationDisabledTest,
       PermissionDisruptiveRevocationDisabled) {}