#include "chrome/common/safe_browsing/binary_feature_extractor.h"
#include <stdint.h>
#include <string.h>
#include <cstdint>
#include <memory>
#include <string_view>
#include "base/base_paths.h"
#include "base/containers/heap_array.h"
#include "base/containers/span.h"
#include "base/files/file.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/path_service.h"
#include "base/ranges/algorithm.h"
#include "components/safe_browsing/core/common/proto/csd.pb.h"
#include "crypto/sha2.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace safe_browsing {
_;
namespace {
class MockBinaryFeatureExtractor : public BinaryFeatureExtractor { … };
}
class BinaryFeatureExtractorTest : public testing::Test { … };
TEST_F(BinaryFeatureExtractorTest, ExtractDigestNoFile) { … }
TEST_F(BinaryFeatureExtractorTest, ExtractSmallDigest) { … }
TEST_F(BinaryFeatureExtractorTest, ExtractOneBlockDigest) { … }
TEST_F(BinaryFeatureExtractorTest, ExtractBigBlockDigest) { … }
TEST_F(BinaryFeatureExtractorTest, CanRemoveFileDuringExecution) { … }
}