1 // Copyright 2018 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "net/http/structured_headers.h" 6 7 #include <string_view> 8 9 namespace net { 10 namespace structured_headers { 11 LLVMFuzzerTestOneInput(const uint8_t * data,size_t size)12extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { 13 std::string_view input(reinterpret_cast<const char*>(data), size); 14 ParseItem(input); 15 ParseListOfLists(input); 16 ParseParameterisedList(input); 17 return 0; 18 } 19 20 } // namespace structured_headers 21 } // namespace net 22