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

Unified Diff: tools/ipc_fuzzer/message_lib/message_file_reader.cc

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
Index: tools/ipc_fuzzer/message_lib/message_file_reader.cc
diff --git a/tools/ipc_fuzzer/message_lib/message_file_reader.cc b/tools/ipc_fuzzer/message_lib/message_file_reader.cc
index d30f333948cd24cf260ac03de1f571dbb0f31605..7fe5aba4dd4e0004051f505cad7457a86f6d4fd5 100644
--- a/tools/ipc_fuzzer/message_lib/message_file_reader.cc
+++ b/tools/ipc_fuzzer/message_lib/message_file_reader.cc
@@ -3,10 +3,13 @@
// found in the LICENSE file.
#include <limits.h>
+#include <stddef.h>
+#include <stdint.h>
#include "base/files/file_path.h"
#include "base/files/memory_mapped_file.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/strings/string_piece.h"
#include "ipc/ipc_message.h"
#include "tools/ipc_fuzzer/message_lib/message_cracker.h"
@@ -171,7 +174,7 @@ bool Reader::ReadNameTable() {
bool Reader::RemoveUnknownMessages() {
MessageVector::iterator it = messages_->begin();
while (it != messages_->end()) {
- uint32 type = (*it)->type();
+ uint32_t type = (*it)->type();
if (!name_map_.TypeExists(type)) {
LOG(ERROR) << "Missing name table entry for type " << type;
return false;
@@ -194,9 +197,9 @@ bool Reader::RemoveUnknownMessages() {
void Reader::FixMessageTypes() {
for (MessageVector::iterator it = messages_->begin();
it != messages_->end(); ++it) {
- uint32 type = (*it)->type();
+ uint32_t type = (*it)->type();
const std::string& name = name_map_.TypeToName(type);
- uint32 correct_type = MessageNames::GetInstance()->NameToType(name);
+ uint32_t correct_type = MessageNames::GetInstance()->NameToType(name);
if (type != correct_type)
MessageCracker::SetMessageType(*it, correct_type);
}
« no previous file with comments | « tools/ipc_fuzzer/message_lib/message_file_format.h ('k') | tools/ipc_fuzzer/message_lib/message_file_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698