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

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

Issue 1277483002: Fix LatencyInfo compile error for ipc fuzzer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make FuzzTraits<LatencyInfo> a friend of LatencyInfo Created 5 years, 4 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 | ui/events/latency_info.h » ('j') | ui/events/latency_info.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/fuzzer/fuzzer.cc
diff --git a/tools/ipc_fuzzer/fuzzer/fuzzer.cc b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
index 9e57c514360486349ecd5e7a7939a0cc5fe8c6ad..df08076fc401d44706870e4016f1e76e025ffd35 100644
--- a/tools/ipc_fuzzer/fuzzer/fuzzer.cc
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
@@ -1764,14 +1764,14 @@ template <>
struct FuzzTraits<ui::LatencyInfo> {
static bool Fuzz(ui::LatencyInfo* p, Fuzzer* fuzzer) {
// TODO(inferno): Add param traits for |latency_components|.
- p->input_coordinates_size = static_cast<uint32>(
+ p->input_coordinates_size_ = static_cast<uint32>(
RandInRange(ui::LatencyInfo::kMaxInputCoordinates + 1));
if (!FuzzParamArray(
- &p->input_coordinates[0], p->input_coordinates_size, fuzzer))
+ &p->input_coordinates_[0], p->input_coordinates_size_, fuzzer))
return false;
- if (!FuzzParam(&p->trace_id, fuzzer))
+ if (!FuzzParam(&p->trace_id_, fuzzer))
return false;
- if (!FuzzParam(&p->terminated, fuzzer))
+ if (!FuzzParam(&p->terminated_, fuzzer))
return false;
return true;
inferno 2015/08/05 15:40:01 Can't we just call a ui::LatencyInfo constructor t
Yufeng Shen (Slow to review) 2015/08/05 16:08:24 LatencyInfo is not supposed to be constructed with
}
« no previous file with comments | « no previous file | ui/events/latency_info.h » ('j') | ui/events/latency_info.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698