#include "components/safe_browsing/content/renderer/phishing_classifier/scorer.h"
#include <stdint.h>
#include <memory>
#include <unordered_set>
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "base/format_macros.h"
#include "base/logging.h"
#include "base/memory/read_only_shared_memory_region.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "base/test/test_discardable_memory_allocator.h"
#include "base/threading/thread.h"
#include "components/safe_browsing/content/renderer/phishing_classifier/features.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 "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkColorSpace.h"
namespace safe_browsing {
namespace {
std::string GetFlatBufferString() { … }
base::MappedReadOnlyRegion GetMappedReadOnlyRegionWithData(std::string data) { … }
}
class PhishingScorerTest : public ::testing::Test { … };
TEST_F(PhishingScorerTest, HasValidFlatBufferModel) { … }
TEST_F(PhishingScorerTest, PageTerms) { … }
TEST_F(PhishingScorerTest, PageWordsFlat) { … }
TEST_F(PhishingScorerTest, ComputeScoreFlat) { … }
TEST_F(PhishingScorerTest, DomModelVersionFlatbuffer) { … }
}