1 // Copyright 2018 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Test fuzzer that when built successfully proves that fuzzable_proto_library 6 // is working. Building this fuzzer without using fuzzable_proto_library will 7 // fail because of test_fuzzer_input.proto 8 9 #include <iostream> 10 11 #include "third_party/libprotobuf-mutator/src/src/libfuzzer/libfuzzer_macro.h" 12 #include "third_party/libprotobuf-mutator/test_fuzzer/test_fuzzer_input.pb.h" 13 DEFINE_PROTO_FUZZER(const lpm_test_fuzzer::TestFuzzerInput & input)14DEFINE_PROTO_FUZZER(const lpm_test_fuzzer::TestFuzzerInput& input) { 15 std::cout << input.imported().imported_publicly().input() << std::endl; 16 } 17