| Index: tools/ipc_fuzzer/message_lib/message_file.h
|
| diff --git a/tools/ipc_fuzzer/message_lib/message_file.h b/tools/ipc_fuzzer/message_lib/message_file.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..726571ebb963988a77912733da582c1317f2c6a1
|
| --- /dev/null
|
| +++ b/tools/ipc_fuzzer/message_lib/message_file.h
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// 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 "base/files/file_path.h"
|
| +#include "base/memory/scoped_vector.h"
|
| +#include "ipc/ipc_message.h"
|
| +
|
| +namespace ipc_fuzzer {
|
| +
|
| +typedef ScopedVector<IPC::Message> MessageVector;
|
| +
|
| +class MessageFile {
|
| + public:
|
| + static bool Read(const base::FilePath& path, MessageVector* messages);
|
| + static bool Write(const base::FilePath& path, const MessageVector& messages);
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(MessageFile);
|
| +};
|
| +
|
| +} // namespace ipc_fuzzer
|
| +
|
| +#endif // TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_H_
|
|
|