#include "chrome/browser/dips/dips_storage.h"
#include <optional>
#include "base/functional/bind.h"
#include "base/metrics/field_trial_params.h"
#include "base/strings/stringprintf.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/simple_test_clock.h"
#include "base/test/task_environment.h"
#include "base/threading/sequence_bound.h"
#include "base/time/time.h"
#include "chrome/browser/dips/dips_state.h"
#include "chrome/browser/dips/dips_utils.h"
#include "content/public/browser/browsing_data_filter_builder.h"
#include "content/public/common/content_features.h"
#include "services/network/public/mojom/clear_data_filter.mojom.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace {
class TestStorage : public DIPSStorage { … };
class ScopedDIPSFeatureEnabledWithParams { … };
}
TEST(DIPSGetSitesToClearTest, FiltersByTriggerParam) { … }
TEST(DIPSGetSitesToClearTest, CustomGracePeriod) { … }
TEST(DIPSGetSitesToClearTest, CustomGracePeriod_AllTriggers) { … }
class DIPSStorageTest : public testing::Test { … };
TEST(DirtyBit, Constructor) { … }
TEST(DirtyBit, Assignment) { … }
TEST(DirtyBit, Move) { … }
TEST(DIPSUtilsTest, GetSiteForDIPS) { … }
TEST_F(DIPSStorageTest, NewURL) { … }
TEST_F(DIPSStorageTest, SetValues) { … }
TEST_F(DIPSStorageTest, SameSiteSameState) { … }
TEST_F(DIPSStorageTest, DifferentSiteDifferentState) { … }
TEST_F(DIPSStorageTest, RemoveByTime_WebAuthnAssertion) { … }
TEST_F(DIPSStorageTest, RemoveByTimeWithNullRangeEndTime) { … }
TEST_F(DIPSStorageTest, RemoveByTimeWithNullRangeBeginTime) { … }
TEST_F(DIPSStorageTest, RemoveByTimeAdjustsOverlappingTimes) { … }
TEST_F(DIPSStorageTest, RemoveByTimeDoesNotAffectTouchingWindowEndpoints) { … }
TEST_F(DIPSStorageTest, RemoveByTimeStorageOnly) { … }
TEST_F(DIPSStorageTest, RemoveByTimeInteractionOnly) { … }
TEST_F(DIPSStorageTest, RemovePopupEventsByTime) { … }
TEST_F(DIPSStorageTest, RemoveByTimeBounces) { … }
TEST_F(DIPSStorageTest, RemoveBySite) { … }
TEST_F(DIPSStorageTest, RemoveBySiteIgnoresDeletionWithTimeRange) { … }
TEST_F(DIPSStorageTest, RemoveRows) { … }
TEST_F(DIPSStorageTest, DidSiteHaveInteractionSince) { … }
TEST_F(DIPSStorageTest, GetTimerLastFired_InitiallyReturnsEmpty) { … }
TEST_F(DIPSStorageTest, GetTimerLastFired_ReturnsLastSetValue) { … }