chromium/components/zucchini/zucchini_gen_unittest.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/zucchini/zucchini_gen.h"

#include <stdint.h>

#include <deque>
#include <utility>
#include <vector>

#include "components/zucchini/equivalence_map.h"
#include "components/zucchini/image_index.h"
#include "components/zucchini/image_utils.h"
#include "components/zucchini/test_disassembler.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace zucchini {

namespace {

OffsetVector;

// In normal usage, 0.0 is an unrealistic similarity value for an
// EquivalenceCandiate. Since similarity doesn't affect results for various unit
// tests in this file, we use this dummy value for simplicity.
constexpr double kDummySim =;

// Helper function wrapping GenerateReferencesDelta().
std::vector<int32_t> GenerateReferencesDeltaTest(
    std::vector<Reference>&& old_references,
    std::vector<Reference>&& new_references,
    std::deque<offset_t>&& exp_old_targets,
    std::deque<offset_t>&& exp_projected_old_targets,
    EquivalenceMap&& equivalence_map) {}

}  // namespace

TEST(ZucchiniGenTest, FindExtraTargets) {}

TEST(ZucchiniGenTest, GenerateReferencesDelta) {}

// TODO(huangs): Add more tests.

}  // namespace zucchini