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

Unified Diff: tools/ipc_fuzzer/mutate/mutate.gyp

Issue 1000373004: Combine traits for IPC mutation and generation fuzzing plus other refactoring. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add mutation support for more types. 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 side-by-side diff with in-line comments
Download patch
Index: tools/ipc_fuzzer/mutate/mutate.gyp
diff --git a/tools/ipc_fuzzer/mutate/mutate.gyp b/tools/ipc_fuzzer/mutate/mutate.gyp
index e8e1b298f15df81d418006a3d103b4583a828568..6564a910e4cd75efe6493f836c5dab0f7d5c8d45 100644
--- a/tools/ipc_fuzzer/mutate/mutate.gyp
+++ b/tools/ipc_fuzzer/mutate/mutate.gyp
@@ -8,20 +8,21 @@
},
'targets': [
{
- 'target_name': 'ipc_fuzzer_mutate',
- 'type': 'executable',
+ 'target_name': 'ipc_fuzzer_lib',
+ 'type': 'static_library',
'dependencies': [
'../message_lib/message_lib.gyp:ipc_message_lib',
],
'sources': [
- 'mutate.cc',
+ 'fuzzer.h',
+ 'fuzzer.cc',
'rand_util.h',
'rand_util.cc',
],
'conditions': [
['asan==1', {
'cflags!': [
- # Compiling mutate.cc with ASan takes too long, see
+ # Compiling fuzzer.cc with ASan takes too long, see
# http://crbug.com/360158.
'-fsanitize=address',
'-fsanitize-coverage=<(sanitizer_coverage)',
@@ -39,22 +40,30 @@
'target_name': 'ipc_fuzzer_generate',
'type': 'executable',
'dependencies': [
- '../message_lib/message_lib.gyp:ipc_message_lib',
+ 'ipc_fuzzer_lib',
],
'sources': [
- 'generate.cc',
- 'rand_util.h',
- 'rand_util.cc',
+ 'generator.h',
+ 'generator.cc',
+
],
- 'conditions': [
- ['asan==1', {
- 'cflags!': [
- # Compiling generate.cc with ASan takes too long, see
- # http://crbug.com/360158.
- '-fsanitize=address',
- '-fsanitize-coverage=<(sanitizer_coverage)',
- ],
- }],
+ 'include_dirs': [
+ '../../..',
+ ],
+ 'defines': [
+ 'USE_CUPS',
+ ],
+ },
+ {
+ 'target_name': 'ipc_fuzzer_mutate',
+ 'type': 'executable',
+ 'dependencies': [
+ 'ipc_fuzzer_lib',
+ ],
+ 'sources': [
+ 'mutator.h',
+ 'mutator.cc',
+
],
'include_dirs': [
'../../..',

Powered by Google App Engine
This is Rietveld 408576698