chromium/tools/android/md5sum/md5sum.cc

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

// Md5sum implementation for Android. In gzip mode, takes in a list of files,
// and outputs a list of Md5sums in the same order. Otherwise,

#include <dirent.h>
#include <stddef.h>

#include <fstream>
#include <iostream>
#include <memory>
#include <set>
#include <string>
#include <string_view>

#include "base/base64.h"
#include "base/containers/heap_array.h"
#include "base/hash/md5.h"
#include "third_party/zlib/google/compression_utils_portable.h"

namespace {

// Only used in the gzip mode.
const char kFilePathDelimiter =;
const int kMD5HashLength =;

// Returns whether |path|'s MD5 was successfully written to |digest_string|.
bool MD5Sum(const std::string& path, std::string* digest_string) {}

void MakeFileSetHelper(const std::string& path,
                       std::set<std::string>& file_set) {}

// Returns the set of all files contained in |files|. This handles directories
// by walking them recursively. Excludes, .svn directories and file under them.
std::vector<std::string> MakeFileSet(const char** files) {}

std::vector<std::string> StringSplit(const std::string& str, char delim) {}

std::vector<std::string> MakeFileListFromCompressedList(const char* data) {}

}  // namespace

int main(int argc, const char* argv[]) {}