chromium/components/zucchini/zucchini_commands.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.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "components/zucchini/zucchini_commands.h"

#include <stddef.h>
#include <stdint.h>

#include <ostream>
#include <string>
#include <utility>

#include "base/command_line.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/memory_mapped_file.h"
#include "base/logging.h"
#include "components/zucchini/buffer_view.h"
#include "components/zucchini/crc32.h"
#include "components/zucchini/encoded_view.h"
#include "components/zucchini/image_index.h"
#include "components/zucchini/io_utils.h"
#include "components/zucchini/mapped_file.h"
#include "components/zucchini/patch_writer.h"
#include "components/zucchini/suffix_array.h"
#include "components/zucchini/zucchini_integration.h"
#include "components/zucchini/zucchini_tools.h"

namespace {

kStatusFileReadError;
kStatusSuccess;

/******** Command-line Switches ********/

constexpr char kSwitchDump[] =;
constexpr char kSwitchImpose[] =;
constexpr char kSwitchKeep[] =;
constexpr char kSwitchRaw[] =;

class WrappedMappedFileReader : public zucchini::MappedFileReader {};

}  // namespace

zucchini::status::Code MainGen(MainParams params) {}

zucchini::status::Code MainApply(MainParams params) {}

zucchini::status::Code MainVerify(MainParams params) {}

zucchini::status::Code MainRead(MainParams params) {}

zucchini::status::Code MainDetect(MainParams params) {}

zucchini::status::Code MainMatch(MainParams params) {}

zucchini::status::Code MainCrc32(MainParams params) {}

zucchini::status::Code MainSuffixArray(MainParams params) {}