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

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

Issue 115673002: Fix linux/gcc compiler warnings in tools/ipc_fuzzer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/ipc_fuzzer/message_lib/message_file_writer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_FORMAT_H_ 5 #ifndef TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_FORMAT_H_
6 #define TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_FORMAT_H_ 6 #define TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_FORMAT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 // Message file contains IPC messages and message names. Each message type 10 // Message file contains IPC messages and message names. Each message type
11 // has a NameTableEntry mapping the type to a name. 11 // has a NameTableEntry mapping the type to a name.
12 // 12 //
13 // |========================| 13 // |========================|
14 // | FileHeader | 14 // | FileHeader |
15 // |========================| 15 // |========================|
16 // | Message | 16 // | Message |
17 // |------------------------| 17 // |------------------------|
18 // | Message | 18 // | Message |
19 // |------------------------| 19 // |------------------------|
20 // | ... | 20 // | ... |
21 // |========================| 21 // |========================|
22 // | NameTableEntry | 22 // | NameTableEntry |
23 // |------------------------| 23 // |------------------------|
24 // | NameTableEntry | 24 // | NameTableEntry |
25 // |------------------------| 25 // |------------------------|
26 // | ... | 26 // | ... |
27 // |------------------------| 27 // |------------------------|
28 // | type = 0x0002070f | 28 // | type = 0x0002070f |
29 // | string_table_offset = ---. 29 // | string_table_offset = ----+
30 // |------------------------| \ 30 // |------------------------| |
31 // | ... | | 31 // | ... | |
32 // |========================| | 32 // |========================| |
33 // | message name | | 33 // | message name | |
34 // |------------------------| | 34 // |------------------------| |
35 // | message name | | 35 // | message name | |
36 // |------------------------| | 36 // |------------------------| |
37 // | ... | | 37 // | ... | |
38 // |------------------------| / 38 // |------------------------| |
39 // | "ViewHostMsg_OpenURL" <--* 39 // | "ViewHostMsg_OpenURL" <---+
40 // |------------------------| 40 // |------------------------|
41 // | ... | 41 // | ... |
42 // |========================| 42 // |========================|
43 43
44 namespace ipc_fuzzer { 44 namespace ipc_fuzzer {
45 45
46 struct FileHeader { 46 struct FileHeader {
47 static const uint32 kMagicValue = 0x1bcf11ee; 47 static const uint32 kMagicValue = 0x1bcf11ee;
48 static const uint32 kCurrentVersion = 1; 48 static const uint32 kCurrentVersion = 1;
49 49
50 uint32 magic; 50 uint32 magic;
51 uint32 version; 51 uint32 version;
52 uint32 message_count; 52 uint32 message_count;
53 uint32 name_count; 53 uint32 name_count;
54 }; 54 };
55 55
56 struct NameTableEntry { 56 struct NameTableEntry {
57 uint32 type; 57 uint32 type;
58 uint32 string_table_offset; 58 uint32 string_table_offset;
59 }; 59 };
60 60
61 } // namespace ipc_fuzzer 61 } // namespace ipc_fuzzer
62 62
63 #endif // TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_FORMAT_H_ 63 #endif // TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_FORMAT_H_
OLDNEW
« no previous file with comments | « no previous file | tools/ipc_fuzzer/message_lib/message_file_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698