#include "components/safe_browsing/core/browser/realtime/fake_url_lookup_service.h"
#include "components/enterprise/common/proto/connectors.pb.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
namespace safe_browsing::testing {
FakeRealTimeUrlLookupService::FakeRealTimeUrlLookupService()
: … { … }
bool FakeRealTimeUrlLookupService::CanPerformFullURLLookup() const { … }
bool FakeRealTimeUrlLookupService::CanIncludeSubframeUrlInReferrerChain()
const { … }
bool FakeRealTimeUrlLookupService::CanCheckSafeBrowsingDb() const { … }
bool FakeRealTimeUrlLookupService::CanCheckSafeBrowsingHighConfidenceAllowlist()
const { … }
bool FakeRealTimeUrlLookupService::CanSendRTSampleRequest() const { … }
std::string FakeRealTimeUrlLookupService::GetUserEmail() const { … }
std::string FakeRealTimeUrlLookupService::GetBrowserDMTokenString() const { … }
std::string FakeRealTimeUrlLookupService::GetProfileDMTokenString() const { … }
std::unique_ptr<enterprise_connectors::ClientMetadata>
FakeRealTimeUrlLookupService::GetClientMetadata() const { … }
std::string FakeRealTimeUrlLookupService::GetMetricSuffix() const { … }
void FakeRealTimeUrlLookupService::SendSampledRequest(
const GURL& url,
scoped_refptr<base::SequencedTaskRunner> callback_task_runner,
SessionID session_id) { … }
GURL FakeRealTimeUrlLookupService::GetRealTimeLookupUrl() const { … }
net::NetworkTrafficAnnotationTag
FakeRealTimeUrlLookupService::GetTrafficAnnotationTag() const { … }
bool FakeRealTimeUrlLookupService::CanPerformFullURLLookupWithToken() const { … }
int FakeRealTimeUrlLookupService::GetReferrerUserGestureLimit() const { … }
bool FakeRealTimeUrlLookupService::CanSendPageLoadToken() const { … }
void FakeRealTimeUrlLookupService::GetAccessToken(
const GURL& url,
safe_browsing::RTLookupResponseCallback response_callback,
scoped_refptr<base::SequencedTaskRunner> callback_task_runner,
SessionID session_id) { … }
std::optional<std::string> FakeRealTimeUrlLookupService::GetDMTokenString()
const { … }
bool FakeRealTimeUrlLookupService::ShouldIncludeCredentials() const { … }
std::optional<base::Time>
FakeRealTimeUrlLookupService::GetMinAllowedTimestampForReferrerChains() const { … }
}