OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <iostream> | 5 #include <iostream> |
6 #include <set> | 6 #include <set> |
7 #include <string> | 7 #include <string> |
8 #include <tuple> | 8 #include <tuple> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/shared_memory_handle.h" | 13 #include "base/memory/shared_memory_handle.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "ipc/ipc_message.h" | 16 #include "ipc/ipc_message.h" |
17 #include "ipc/ipc_message_utils.h" | 17 #include "ipc/ipc_message_utils.h" |
18 #include "ipc/ipc_switches.h" | |
19 #include "ipc/ipc_sync_channel.h" | 18 #include "ipc/ipc_sync_channel.h" |
20 #include "ipc/ipc_sync_message.h" | 19 #include "ipc/ipc_sync_message.h" |
21 #include "tools/ipc_fuzzer/fuzzer/fuzzer.h" | 20 #include "tools/ipc_fuzzer/fuzzer/fuzzer.h" |
22 #include "tools/ipc_fuzzer/fuzzer/rand_util.h" | 21 #include "tools/ipc_fuzzer/fuzzer/rand_util.h" |
23 #include "tools/ipc_fuzzer/message_lib/message_cracker.h" | 22 #include "tools/ipc_fuzzer/message_lib/message_cracker.h" |
24 #include "tools/ipc_fuzzer/message_lib/message_file.h" | 23 #include "tools/ipc_fuzzer/message_lib/message_file.h" |
25 | 24 |
26 #if defined(OS_POSIX) | 25 #if defined(OS_POSIX) |
27 #include <unistd.h> | 26 #include <unistd.h> |
28 #endif | 27 #endif |
(...skipping 1996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2025 #include "tools/ipc_fuzzer/message_lib/all_message_null_macros.h" | 2024 #include "tools/ipc_fuzzer/message_lib/all_message_null_macros.h" |
2026 #undef IPC_MESSAGE_DECL | 2025 #undef IPC_MESSAGE_DECL |
2027 #define IPC_MESSAGE_DECL(name, ...) \ | 2026 #define IPC_MESSAGE_DECL(name, ...) \ |
2028 (*map)[static_cast<uint32_t>(name::ID)] = FuzzerHelper<name>::Fuzz; | 2027 (*map)[static_cast<uint32_t>(name::ID)] = FuzzerHelper<name>::Fuzz; |
2029 | 2028 |
2030 void PopulateFuzzerFunctionMap(FuzzerFunctionMap* map) { | 2029 void PopulateFuzzerFunctionMap(FuzzerFunctionMap* map) { |
2031 #include "tools/ipc_fuzzer/message_lib/all_messages.h" | 2030 #include "tools/ipc_fuzzer/message_lib/all_messages.h" |
2032 } | 2031 } |
2033 | 2032 |
2034 } // namespace ipc_fuzzer | 2033 } // namespace ipc_fuzzer |
OLD | NEW |