#include "components/safe_browsing/core/common/hashprefix_realtime/hash_realtime_utils.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "build/branding_buildflags.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/testing_pref_service.h"
#include "components/safe_browsing/core/common/features.h"
#include "components/safe_browsing/core/common/proto/safebrowsingv5.pb.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace safe_browsing {
TEST(HashRealTimeUtilsTest, TestGetHashPrefix) { … }
TEST(HashRealTimeUtilsTest, TestCanCheckUrl) { … }
TEST(HashRealTimeUtilsTest, TestIsHashDetailRelevant) { … }
TEST(HashRealTimeUtilsTest, TestIsHashRealTimeLookupEligibleInSession_Yes) { … }
TEST(HashRealTimeUtilsTest,
TestIsHashRealTimeLookupEligibleInSession_FeatureOff) { … }
#if !BUILDFLAG(GOOGLE_CHROME_BRANDING)
TEST(HashRealTimeUtilsTest,
TestIsHashRealTimeLookupEligibleInSession_GoogleChromeBrandingOff) { … }
#endif
TEST(HashRealTimeUtilsTest,
TestIsHashRealTimeLookupEligibleInSessionAndLocation) { … }
TEST(HashRealTimeUtilsTest, TestDetermineHashRealTimeSelection) { … }
}