#include "components/safe_browsing/content/renderer/phishing_classifier/phishing_classifier.h"
#include <memory>
#include <string>
#include <string_view>
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/scoped_refptr.h"
#include "base/path_service.h"
#include "base/ranges/algorithm.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/test_discardable_memory_allocator.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/renderer/chrome_content_renderer_client.h"
#include "chrome/test/base/chrome_render_view_test.h"
#include "components/safe_browsing/buildflags.h"
#include "components/safe_browsing/content/renderer/phishing_classifier/features.h"
#include "components/safe_browsing/content/renderer/phishing_classifier/murmurhash3_util.h"
#include "components/safe_browsing/content/renderer/phishing_classifier/scorer.h"
#include "components/safe_browsing/core/common/fbs/client_model_generated.h"
#include "components/safe_browsing/core/common/proto/client_model.pb.h"
#include "components/safe_browsing/core/common/proto/csd.pb.h"
#include "content/public/renderer/render_frame.h"
#include "crypto/sha2.h"
#include "net/dns/mock_host_resolver.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/blink/public/platform/web_url_request.h"
#include "url/gurl.h"
AllOf;
Contains;
Not;
Pair;
namespace safe_browsing {
class TestChromeContentRendererClient : public ChromeContentRendererClient { … };
class PhishingClassifierTest
: public ChromeRenderViewTest,
public ::testing::WithParamInterface<std::tuple<bool, bool>> { … };
TEST_F(PhishingClassifierTest, TestClassificationOfPhishingDotComHttp) { … }
TEST_F(PhishingClassifierTest, TestClassificationOfPhishingDotComHttps) { … }
TEST_F(PhishingClassifierTest, TestClassificationOfSafeDotComHttp) { … }
TEST_F(PhishingClassifierTest, TestClassificationOfSafeDotComHttps) { … }
TEST_F(PhishingClassifierTest, TestClassificationWhenNoTld) { … }
TEST_F(PhishingClassifierTest, TestClassificationWhenSchemeNotSupported) { … }
TEST_F(PhishingClassifierTest, DisableDetection) { … }
TEST_F(PhishingClassifierTest, TestPhishingPagesAreDomMatches) { … }
TEST_F(PhishingClassifierTest, TestSafePagesAreNotDomMatches) { … }
TEST_F(PhishingClassifierTest, TestDomModelVersionPopulated) { … }
}