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

Side by Side Diff: tools/ipc_fuzzer/message_tools/message_list.cc

Issue 1033693002: Fix building the IPC fuzzer in light of the new Protobuf<->IPC bridge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « tools/ipc_fuzzer/message_tools/DEPS ('k') | tools/ipc_fuzzer/message_tools/message_tools.gyp » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include <algorithm> 5 #include <algorithm>
6 #include <iostream> 6 #include <iostream>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12 // Include once to get the type definitions 12 // Include once to get the type definitions
13 #include "tools/ipc_fuzzer/message_lib/all_messages.h" 13 #include "tools/ipc_fuzzer/message_lib/all_messages.h"
14 14
15 struct msginfo { 15 struct msginfo {
16 const char* name; 16 const char* name;
17 const char* file; 17 const char* file;
18 int id; 18 int id;
19 int in_count; 19 int in_count;
20 int out_count; 20 int out_count;
21 21
22 bool operator< (const msginfo& other) const { 22 bool operator< (const msginfo& other) const {
23 return id < other.id; 23 return id < other.id;
24 } 24 }
25 }; 25 };
26 26
27 // Redefine macros to generate table 27 // Redefine macros to generate table
28 #include "chrome/common/safe_browsing/ipc_protobuf_message_null_macros.h"
28 #include "ipc/ipc_message_null_macros.h" 29 #include "ipc/ipc_message_null_macros.h"
29 #undef IPC_MESSAGE_DECL 30 #undef IPC_MESSAGE_DECL
30 #define IPC_MESSAGE_DECL(kind, type, name, in, out, ilist, olist) \ 31 #define IPC_MESSAGE_DECL(kind, type, name, in, out, ilist, olist) \
31 { #name, __FILE__, IPC_MESSAGE_ID(), in, out }, 32 { #name, __FILE__, IPC_MESSAGE_ID(), in, out },
32 33
33 static msginfo msgtable[] = { 34 static msginfo msgtable[] = {
34 #include "tools/ipc_fuzzer/message_lib/all_messages.h" 35 #include "tools/ipc_fuzzer/message_lib/all_messages.h"
35 }; 36 };
36 #define MSGTABLE_SIZE (sizeof(msgtable)/sizeof(msgtable[0])) 37 #define MSGTABLE_SIZE (sizeof(msgtable)/sizeof(msgtable[0]))
37 static_assert(MSGTABLE_SIZE, "check your headers for an extra semicolon"); 38 static_assert(MSGTABLE_SIZE, "check your headers for an extra semicolon");
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 185
185 std::sort(msgtable, msgtable + MSGTABLE_SIZE); 186 std::sort(msgtable, msgtable + MSGTABLE_SIZE);
186 187
187 if (!skip_check && check_msgtable() == false) 188 if (!skip_check && check_msgtable() == false)
188 return 1; 189 return 1;
189 190
190 dump_msgtable(show_args, show_ids, show_comma, filter); 191 dump_msgtable(show_args, show_ids, show_comma, filter);
191 return 0; 192 return 0;
192 } 193 }
193 194
OLDNEW
« no previous file with comments | « tools/ipc_fuzzer/message_tools/DEPS ('k') | tools/ipc_fuzzer/message_tools/message_tools.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698