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

Unified Diff: ui/events/latency_info.h

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
« tools/ipc_fuzzer/fuzzer/fuzzer.cc ('K') | « tools/ipc_fuzzer/fuzzer/fuzzer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/latency_info.h
diff --git a/ui/events/latency_info.h b/ui/events/latency_info.h
index 443e5fb9fbd6776be72fe7e9459ba7858492fca8..42c6b67360c892e492f2c6e55a0d0cc069c5ff1e 100644
--- a/ui/events/latency_info.h
+++ b/ui/events/latency_info.h
@@ -18,6 +18,11 @@
#include "ipc/ipc_param_traits.h"
#include "ui/events/events_base_export.h"
+namespace ipc_fuzzer {
inferno 2015/08/05 15:40:01 We never sprinkle ipc fuzzer code in regular build
Yufeng Shen (Slow to review) 2015/08/05 16:08:24 I copied from here https://code.google.com/p/chro
+template <class T>
+struct FuzzTraits;
+} // namespace ipc_fuzzer
+
namespace ui {
enum LatencyComponentType {
@@ -212,6 +217,7 @@ class EVENTS_BASE_EXPORT LatencyInfo {
FRIEND_TEST_ALL_PREFIXES(LatencyInfoParamTraitsTest, Basic);
friend struct IPC::ParamTraits<ui::LatencyInfo>;
+ friend struct ipc_fuzzer::FuzzTraits<ui::LatencyInfo>;
};
} // namespace ui
« tools/ipc_fuzzer/fuzzer/fuzzer.cc ('K') | « tools/ipc_fuzzer/fuzzer/fuzzer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698