Index: tools/ipc_fuzzer/fuzzer/fuzzer.cc |
diff --git a/tools/ipc_fuzzer/fuzzer/fuzzer.cc b/tools/ipc_fuzzer/fuzzer/fuzzer.cc |
index 43a6c76e46c64ba83314042910cdb765f3a4ad0e..0d39e2b80aea536582b25fec58509100768d56f5 100644 |
--- a/tools/ipc_fuzzer/fuzzer/fuzzer.cc |
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer.cc |
@@ -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> { |