backoff_entry_serializer_fuzzer_input.proto 991 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2020 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. syntax = "proto2";
  5. package fuzz_proto;
  6. import "testing/libfuzzer/proto/json.proto";
  7. message FuzzerInput {
  8. // Using int64 to match internal representation of base::Time and
  9. // base::TimeTicks.
  10. required int64 parse_time = 1;
  11. required int64 serialize_time = 2;
  12. required int64 now_ticks = 5;
  13. required BackoffEntryPolicy policy = 3;
  14. required json_proto.ArrayValue serialized_entry = 4;
  15. }
  16. // Input for the fuzzer to try serializing a BackoffEntry.
  17. // Keep aligned with |net::BackoffEntry::Policy|.
  18. message BackoffEntryPolicy {
  19. required int64 num_errors_to_ignore = 1;
  20. required int64 initial_delay_ms = 2;
  21. required double multiply_factor = 3;
  22. required double jitter_factor = 4;
  23. required int64 maximum_backoff_ms = 5;
  24. required int64 entry_lifetime_ms = 6;
  25. required bool always_use_initial_delay = 7;
  26. }