blob: 9f5589234509b06bcf17a62c76befc56a8bfa1ca [file] [log] [blame]
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_H_
#define TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_H_
#include <memory>
#include <vector>
#include "base/files/file_path.h"
#include "ipc/ipc_message.h"
namespace ipc_fuzzer {
using MessageVector = std::vector<std::unique_ptr<IPC::Message>>;
class MessageFile {
public:
MessageFile(const MessageFile&) = delete;
MessageFile& operator=(const MessageFile&) = delete;
static bool Read(const base::FilePath& path, MessageVector* messages);
static bool Write(const base::FilePath& path, const MessageVector& messages);
};
} // namespace ipc_fuzzer
#endif // TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_H_