#include "base/functional/callback.h"
#include "base/json/json_string_value_serializer.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/strings/stringprintf.h"
#include "base/values.h"
#include "chrome/browser/browsing_data/chrome_browsing_data_remover_constants.h"
#include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h"
#include "chrome/browser/extensions/extension_service_test_base.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/test_browser_window.h"
#include "components/browsing_data/content/browsing_data_helper.h"
#include "components/browsing_data/core/browsing_data_utils.h"
#include "components/browsing_data/core/pref_names.h"
#include "components/history/core/common/pref_names.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browsing_data_remover.h"
#include "content/public/test/mock_browsing_data_remover_delegate.h"
#include "extensions/browser/api_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
RunFunctionAndReturnError;
RunFunctionAndReturnSingleResult;
namespace extensions {
namespace {
enum OriginTypeMask { … };
const char kRemoveEverythingArguments[] = …;
class BrowsingDataApiTest : public ExtensionServiceTestBase { … };
}
TEST_F(BrowsingDataApiTest, RemovalProhibited) { … }
TEST_F(BrowsingDataApiTest, RemoveBrowsingDataAll) { … }
TEST_F(BrowsingDataApiTest, BrowsingDataOriginTypeMask) { … }
TEST_F(BrowsingDataApiTest, BrowsingDataRemovalMask) { … }
TEST_F(BrowsingDataApiTest, BrowsingDataRemovalMaskCombination) { … }
TEST_F(BrowsingDataApiTest, BrowsingDataRemovalInputFromSettings) { … }
TEST_F(BrowsingDataApiTest, ShortcutFunctionRemovalMask) { … }
TEST_F(BrowsingDataApiTest, SettingsFunctionSince) { … }
TEST_F(BrowsingDataApiTest, SettingsFunctionEmpty) { … }
TEST_F(BrowsingDataApiTest, SettingsFunctionSimple) { … }
TEST_F(BrowsingDataApiTest, SettingsFunctionSiteData) { … }
TEST_F(BrowsingDataApiTest, SettingsFunctionAssorted) { … }
TEST_F(BrowsingDataApiTest, RemoveWithoutFilter) { … }
TEST_F(BrowsingDataApiTest, RemoveWithDeleteListFilter) { … }
TEST_F(BrowsingDataApiTest, RemoveWithPreserveListFilter) { … }
TEST_F(BrowsingDataApiTest, RemoveWithSpecialUrlFilter) { … }
TEST_F(BrowsingDataApiTest, RemoveCookiesWithFilter) { … }
TEST_F(BrowsingDataApiTest, RemoveCookiesAndStorageWithFilter) { … }
TEST_F(BrowsingDataApiTest, RemoveWithFilterAndInvalidParameters) { … }
}