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

Side by Side Diff: tools/ipc_fuzzer/ipclist/ipclist.cc

Issue 864873003: Revert of Ipclist fixes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « ipc/ipc_message_start.h ('k') | tools/ipc_fuzzer/message_lib/DEPS » ('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"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // Exclude test and other non-browser files from consideration. Do not 47 // Exclude test and other non-browser files from consideration. Do not
48 // include message files used inside the actual chrome browser in this list. 48 // include message files used inside the actual chrome browser in this list.
49 exemptions.push_back(TestMsgStart); 49 exemptions.push_back(TestMsgStart);
50 exemptions.push_back(FirefoxImporterUnittestMsgStart); 50 exemptions.push_back(FirefoxImporterUnittestMsgStart);
51 exemptions.push_back(ShellMsgStart); 51 exemptions.push_back(ShellMsgStart);
52 exemptions.push_back(LayoutTestMsgStart); 52 exemptions.push_back(LayoutTestMsgStart);
53 exemptions.push_back(MetroViewerMsgStart); 53 exemptions.push_back(MetroViewerMsgStart);
54 exemptions.push_back(CCMsgStart); // Nothing but param traits. 54 exemptions.push_back(CCMsgStart); // Nothing but param traits.
55 exemptions.push_back(CldDataProviderMsgStart); // Conditional build. 55 exemptions.push_back(CldDataProviderMsgStart); // Conditional build.
56
57 // Sent from browser to renderer.
58 exemptions.push_back(WebCacheMsgStart);
59
60 #if defined(DISABLE_NACL)
61 exemptions.push_back(NaClMsgStart);
62 #endif // defined(DISABLE_NACL)
63
64 #if !defined(OS_ANDROID) 56 #if !defined(OS_ANDROID)
65 exemptions.push_back(JavaBridgeMsgStart); 57 exemptions.push_back(JavaBridgeMsgStart);
66 exemptions.push_back(MediaPlayerMsgStart); 58 exemptions.push_back(MediaPlayerMsgStart);
67 exemptions.push_back(EncryptedMediaMsgStart); 59 exemptions.push_back(EncryptedMediaMsgStart);
68 exemptions.push_back(GinJavaBridgeMsgStart); 60 exemptions.push_back(GinJavaBridgeMsgStart);
69 exemptions.push_back(AndroidWebViewMsgStart); 61 exemptions.push_back(AndroidWebViewMsgStart);
70 #endif // !defined(OS_ANDROID) 62 #endif // !defined(OS_ANDROID)
71
72 #if !defined(OS_POSIX)
73 exemptions.push_back(CastMediaMsgStart); // FIXME: Add support for types.
74 #endif // !defined(OS_POSIX)
75
76 #if !defined(USE_OZONE) 63 #if !defined(USE_OZONE)
77 exemptions.push_back(OzoneGpuMsgStart); 64 exemptions.push_back(OzoneGpuMsgStart);
78 #endif // !defined(USE_OZONE) 65 #endif // !defined(USE_OZONE)
79 66
80 for (size_t i = 0; i < MSGTABLE_SIZE; ++i) { 67 for (size_t i = 0; i < MSGTABLE_SIZE; ++i) {
81 int class_id = IPC_MESSAGE_ID_CLASS(msgtable[i].id); 68 int class_id = IPC_MESSAGE_ID_CLASS(msgtable[i].id);
82 file_name = msgtable[i].file; 69 file_name = msgtable[i].file;
83 if (class_id >= LastIPCMsgStart) { 70 if (class_id >= LastIPCMsgStart) {
84 std::cout << "Invalid LastIPCMsgStart setting\n"; 71 std::cout << "Invalid LastIPCMsgStart setting\n";
85 result = false; 72 result = false;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 171
185 std::sort(msgtable, msgtable + MSGTABLE_SIZE); 172 std::sort(msgtable, msgtable + MSGTABLE_SIZE);
186 173
187 if (!skip_check && check_msgtable() == false) 174 if (!skip_check && check_msgtable() == false)
188 return 1; 175 return 1;
189 176
190 dump_msgtable(show_args, show_ids, show_comma, filter); 177 dump_msgtable(show_args, show_ids, show_comma, filter);
191 return 0; 178 return 0;
192 } 179 }
193 180
OLDNEW
« no previous file with comments | « ipc/ipc_message_start.h ('k') | tools/ipc_fuzzer/message_lib/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698