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

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

Issue 1549203002: Switch to standard integer types in tools/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/imagediff/image_diff_png.h ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | no next file with comments »
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 047b47b7820e710af884efc2ca7497e0ac10cba0..f406a02953c19cca633c32d22f7a1cfc1f999e35 100644
--- a/tools/ipc_fuzzer/fuzzer/fuzzer.h
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer.h
@@ -5,10 +5,12 @@
#ifndef TOOLS_IPC_FUZZER_MUTATE_FUZZER_H_
#define TOOLS_IPC_FUZZER_MUTATE_FUZZER_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "base/strings/string_util.h"
#include "ipc/ipc_message.h"
@@ -26,10 +28,10 @@ class Fuzzer {
virtual void FuzzSize(size_t* value) = 0;
virtual void FuzzUChar(unsigned char* value) = 0;
virtual void FuzzWChar(wchar_t* value) = 0;
- virtual void FuzzUInt16(uint16* value) = 0;
- virtual void FuzzUInt32(uint32* value) = 0;
- virtual void FuzzInt64(int64* value) = 0;
- virtual void FuzzUInt64(uint64* value) = 0;
+ virtual void FuzzUInt16(uint16_t* value) = 0;
+ virtual void FuzzUInt32(uint32_t* value) = 0;
+ virtual void FuzzInt64(int64_t* value) = 0;
+ virtual void FuzzUInt64(uint64_t* value) = 0;
virtual void FuzzFloat(float* value) = 0;
virtual void FuzzDouble(double *value) = 0;
virtual void FuzzString(std::string* value) = 0;
@@ -53,10 +55,10 @@ class NoOpFuzzer : public Fuzzer {
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 FuzzUInt16(uint16_t* value) override {}
+ void FuzzUInt32(uint32_t* value) override {}
+ void FuzzInt64(int64_t* value) override {}
+ void FuzzUInt64(uint64_t* value) override {}
void FuzzFloat(float* value) override {}
void FuzzDouble(double* value) override {}
void FuzzString(std::string* value) override {}
@@ -69,7 +71,7 @@ typedef IPC::Message* (*FuzzerFunction)(IPC::Message*, Fuzzer*);
// Used for mutating messages. Once populated, the map associates a message ID
// with a FuzzerFunction used for mutation of that message type.
-typedef base::hash_map<uint32, FuzzerFunction> FuzzerFunctionMap;
+typedef base::hash_map<uint32_t, FuzzerFunction> FuzzerFunctionMap;
void PopulateFuzzerFunctionMap(FuzzerFunctionMap* map);
// Used for generating new messages. Once populated, the vector contains
« no previous file with comments | « tools/imagediff/image_diff_png.h ('k') | tools/ipc_fuzzer/fuzzer/fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698