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

Unified Diff: tools/ipc_fuzzer/mutate/rand_util.h

Issue 873253004: Add IPC fuzzer GenerateTraits for some cc types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/ipc_fuzzer/mutate/generate.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/rand_util.h
diff --git a/tools/ipc_fuzzer/mutate/rand_util.h b/tools/ipc_fuzzer/mutate/rand_util.h
index 8872abcb2f8b066ec982744efd4f8997990e15f8..888d0e472b07db52dc243b534431fd2faf8ec1fd 100644
--- a/tools/ipc_fuzzer/mutate/rand_util.h
+++ b/tools/ipc_fuzzer/mutate/rand_util.h
@@ -35,6 +35,10 @@ inline bool RandEvent(uint32 frequency) {
return RandInRange(frequency) == 0;
}
+inline size_t RandElementCount() {
+ return RandU32() % 10;
+}
+
} // namespace ipc_fuzzer
#endif // TOOLS_IPC_FUZZER_MUTATE_RAND_UTIL_H_
« no previous file with comments | « tools/ipc_fuzzer/mutate/generate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698