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

Unified Diff: tools/ipc_fuzzer/mutate/utils.py

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: Define frequency as a constant and reorder arguments in ipc_fuzzer_gen.py 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
« no previous file with comments | « tools/ipc_fuzzer/mutate/rand_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/mutate/utils.py
diff --git a/tools/ipc_fuzzer/mutate/utils.py b/tools/ipc_fuzzer/mutate/utils.py
index c718ac95b2c41738e5bf5616ff33769c5f3e2678..3c7e1498f5138c02f0244161558e5e8feba85a2a 100755
--- a/tools/ipc_fuzzer/mutate/utils.py
+++ b/tools/ipc_fuzzer/mutate/utils.py
@@ -16,6 +16,7 @@ import tempfile
APP_PATH_KEY = 'APP_PATH'
FLAGS_PREFIX = 'flags-'
FUZZ_PREFIX = 'fuzz-'
+IPC_FUZZER_APPLICATION = 'ipc_fuzzer'
IPC_REPLAY_APPLICATION = 'ipc_fuzzer_replay'
IPCDUMP_EXTENSION = '.ipcdump'
LAUNCH_PREFIXES = [
@@ -48,6 +49,14 @@ def create_temp_file():
temp_file.close()
return temp_file.name
+def get_fuzzer_application_name():
+ """Get the application name for the fuzzer binary."""
+ return application_name_for_platform(IPC_FUZZER_APPLICATION)
+
+def get_replay_application_name():
+ """Get the application name for the replay binary."""
+ return application_name_for_platform(IPC_REPLAY_APPLICATION)
+
def parse_arguments():
"""Parse fuzzer arguments."""
parser = argparse.ArgumentParser()
@@ -90,4 +99,4 @@ def get_application_path():
sys.exit(
'Environment variable %s should be set to chrome path.' % APP_PATH_KEY)
- return os.environ[APP_PATH_KEY]
+ return os.environ[APP_PATH_KEY]
« no previous file with comments | « tools/ipc_fuzzer/mutate/rand_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698