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

Unified Diff: base/test/trace_event_analyzer.cc

Issue 1544113002: Switch to standard integer types in base/test/. (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 | « base/test/trace_event_analyzer.h ('k') | base/test/trace_event_analyzer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/trace_event_analyzer.cc
diff --git a/base/test/trace_event_analyzer.cc b/base/test/trace_event_analyzer.cc
index 0a0ff7f152c13f4634413fd6d8f4d81fa63da16b..2046355664c820b94e278bd67ab78a8a8edbfe00 100644
--- a/base/test/trace_event_analyzer.cc
+++ b/base/test/trace_event_analyzer.cc
@@ -4,8 +4,9 @@
#include "base/test/trace_event_analyzer.h"
-#include <algorithm>
#include <math.h>
+
+#include <algorithm>
#include <set>
#include "base/json/json_reader.h"
@@ -219,11 +220,11 @@ Query Query::Double(double num) {
return Query(num);
}
-Query Query::Int(int32 num) {
+Query Query::Int(int32_t num) {
return Query(static_cast<double>(num));
}
-Query Query::Uint(uint32 num) {
+Query Query::Uint(uint32_t num) {
return Query(static_cast<double>(num));
}
@@ -380,8 +381,8 @@ bool Query::EvaluateArithmeticOperator(const TraceEvent& event,
*num = lhs / rhs;
return true;
case OP_MOD:
- *num = static_cast<double>(static_cast<int64>(lhs) %
- static_cast<int64>(rhs));
+ *num = static_cast<double>(static_cast<int64_t>(lhs) %
+ static_cast<int64_t>(rhs));
return true;
case OP_NEGATE:
*num = -lhs;
« no previous file with comments | « base/test/trace_event_analyzer.h ('k') | base/test/trace_event_analyzer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698