OLD | NEW |
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 <limits.h> | 5 #include <limits.h> |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 #include <iostream> | 7 #include <iostream> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
13 #include "third_party/re2/re2/re2.h" | 13 #include "third_party/re2/src/re2/re2.h" |
14 #include "tools/ipc_fuzzer/message_lib/message_file.h" | 14 #include "tools/ipc_fuzzer/message_lib/message_file.h" |
15 #include "tools/ipc_fuzzer/message_lib/message_names.h" | 15 #include "tools/ipc_fuzzer/message_lib/message_names.h" |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 const char kDumpSwitch[] = "dump"; | 19 const char kDumpSwitch[] = "dump"; |
20 const char kDumpSwitchHelp[] = | 20 const char kDumpSwitchHelp[] = |
21 "dump human-readable form to stdout instead of copying."; | 21 "dump human-readable form to stdout instead of copying."; |
22 | 22 |
23 const char kEndSwitch[] = "end"; | 23 const char kEndSwitch[] = "end"; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 } | 169 } |
170 } else { | 170 } else { |
171 if (!ipc_fuzzer::MessageFile::Write( | 171 if (!ipc_fuzzer::MessageFile::Write( |
172 base::FilePath(output_file_name), output_message_vector)) { | 172 base::FilePath(output_file_name), output_message_vector)) { |
173 return EXIT_FAILURE; | 173 return EXIT_FAILURE; |
174 } | 174 } |
175 } | 175 } |
176 | 176 |
177 return EXIT_SUCCESS; | 177 return EXIT_SUCCESS; |
178 } | 178 } |
OLD | NEW |