Commit abe68a82 authored by mbarbella's avatar mbarbella Committed by Commit bot

IPC Fuzzer: Minor fuzz traits updates.

R=inferno@chromium.org
BUG=450268

Review URL: https://codereview.chromium.org/1076453003

Cr-Commit-Position: refs/heads/master@{#324296}
parent e2c7ba8e
......@@ -1274,6 +1274,20 @@ struct FuzzTraits<GURL> {
}
};
template <>
struct FuzzTraits<HostID> {
static bool Fuzz(HostID* p, Fuzzer* fuzzer) {
HostID::HostType type = p->type();
std::string id = p->id();
if (!FuzzParam(&type, fuzzer))
return false;
if (!FuzzParam(&id, fuzzer))
return false;
*p = HostID(type, id);
return true;
}
};
#if defined(OS_WIN)
template <>
struct FuzzTraits<HWND> {
......
......@@ -9,6 +9,7 @@
// Force all multi-include optional files to be included again.
#undef CHROME_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
#undef COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_PARAM_TRAITS_MACROS_H_
#undef COMPONENTS_NACL_COMMON_NACL_TYPES_PARAM_TRAITS_H_
#undef CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_
#undef CONTENT_COMMON_FRAME_PARAM_MACROS_H_
#undef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment