blob: 0cd77f202dd85313aa07e9693def0f4beab85d4d [file] [log] [blame]
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "arc/adbd/adbd.h"
#include <cstddef>
#include <cstdint>
#include <string>
#include <base/logging.h>
class Environment {
public:
Environment() {
logging::SetMinLogLevel(logging::LOGGING_FATAL); // Disable logging.
}
};
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
static Environment env;
std::string file_path(data, data + size);
adbd::CreatePipe(base::FilePath(file_path));
return 0;
}