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

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

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/generate.cc ('k') | tools/ipc_fuzzer/mutate/generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/mutate/generator.h
diff --git a/tools/ipc_fuzzer/mutate/generator.h b/tools/ipc_fuzzer/mutate/generator.h
new file mode 100644
index 0000000000000000000000000000000000000000..abed74d1a97edc834e000422bbac0e680826246f
--- /dev/null
+++ b/tools/ipc_fuzzer/mutate/generator.h
@@ -0,0 +1,40 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef TOOLS_IPC_FUZZER_MUTATE_GENERATOR_H_
+#define TOOLS_IPC_FUZZER_MUTATE_GENERATOR_H_
+
+#include <string>
+
+#include "tools/ipc_fuzzer/mutate/fuzzer.h"
+
+namespace ipc_fuzzer {
+
+class Generator : public Fuzzer {
+ public:
+ Generator() {}
+ virtual ~Generator() {}
+
+ void FuzzBool(bool* value) override;
+ void FuzzInt(int* value) override;
+ void FuzzLong(long* value) override;
+ void FuzzSize(size_t* value) override;
+ void FuzzUChar(unsigned char* value) override;
+ void FuzzWChar(wchar_t* value) override;
+ void FuzzUInt16(uint16* value) override;
+ void FuzzUInt32(uint32* value) override;
+ void FuzzInt64(int64* value) override;
+ void FuzzUInt64(uint64* value) override;
+ void FuzzFloat(float* value) override;
+ void FuzzDouble(double* value) override;
+ void FuzzString(std::string* value) override;
+ void FuzzString16(base::string16* value) override;
+ void FuzzData(char* data, int length) override;
+ void FuzzBytes(void* data, int data_len) override;
+ bool ShouldGenerate() override;
+};
+
+} // namespace ipc_fuzzer
+
+#endif // TOOLS_IPC_FUZZER_MUTATE_GENERATOR_H_
« no previous file with comments | « tools/ipc_fuzzer/mutate/generate.cc ('k') | tools/ipc_fuzzer/mutate/generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698