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

Unified Diff: tools/ipc_fuzzer/fuzzer/fuzzer.h

Issue 2972773004: Remove ScopedVector from tools/ipc_fuzzer/. (Closed)
Patch Set: rev Created 3 years, 5 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 | « no previous file | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/fuzzer/fuzzer.h
diff --git a/tools/ipc_fuzzer/fuzzer/fuzzer.h b/tools/ipc_fuzzer/fuzzer/fuzzer.h
index f406a02953c19cca633c32d22f7a1cfc1f999e35..265345c5e0d75914605f3913718bb8ec9c98521d 100644
--- a/tools/ipc_fuzzer/fuzzer/fuzzer.h
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
#include <string>
#include <vector>
@@ -67,7 +68,7 @@ class NoOpFuzzer : public Fuzzer {
void FuzzBytes(void* data, int data_len) override {}
};
-typedef IPC::Message* (*FuzzerFunction)(IPC::Message*, Fuzzer*);
+typedef std::unique_ptr<IPC::Message> (*FuzzerFunction)(IPC::Message*, Fuzzer*);
Tom Sepez 2017/07/10 17:45:47 nit: might as well move to |using| while were at i
Avi (use Gerrit) 2017/07/10 18:44:00 Done.
// Used for mutating messages. Once populated, the map associates a message ID
// with a FuzzerFunction used for mutation of that message type.
« no previous file with comments | « no previous file | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698