Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: tools/ipc_fuzzer/message_lib/message_file.h

Issue 1549203002: Switch to standard integer types in tools/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_H_ 5 #ifndef TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_H_
6 #define TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_H_ 6 #define TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/macros.h"
9 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
10 #include "ipc/ipc_message.h" 11 #include "ipc/ipc_message.h"
11 12
12 namespace ipc_fuzzer { 13 namespace ipc_fuzzer {
13 14
14 typedef ScopedVector<IPC::Message> MessageVector; 15 typedef ScopedVector<IPC::Message> MessageVector;
15 16
16 class MessageFile { 17 class MessageFile {
17 public: 18 public:
18 static bool Read(const base::FilePath& path, MessageVector* messages); 19 static bool Read(const base::FilePath& path, MessageVector* messages);
19 static bool Write(const base::FilePath& path, const MessageVector& messages); 20 static bool Write(const base::FilePath& path, const MessageVector& messages);
20 21
21 private: 22 private:
22 DISALLOW_COPY_AND_ASSIGN(MessageFile); 23 DISALLOW_COPY_AND_ASSIGN(MessageFile);
23 }; 24 };
24 25
25 } // namespace ipc_fuzzer 26 } // namespace ipc_fuzzer
26 27
27 #endif // TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_H_ 28 #endif // TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_H_
OLDNEW
« no previous file with comments | « tools/ipc_fuzzer/message_lib/message_cracker.h ('k') | tools/ipc_fuzzer/message_lib/message_file_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698