Deprecate fuzzing helpers in favor templated ConsumeIntegralInRange.

[email protected],[email protected],[email protected],[email protected],[email protected]
[email protected]

Bug: 907103
Change-Id: Ib93a393e35650233f3c77e32080af048f9b301fb
Reviewed-on: https://chromium-review.googlesource.com/c/1351483
Commit-Queue: Abhishek Arya <[email protected]>
Reviewed-by: Ria Jiang <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Reviewed-by: Ryan Hamilton <[email protected]>
Reviewed-by: enne <[email protected]>
Reviewed-by: Max Moroz <[email protected]>
Reviewed-by: Jungshik Shin <[email protected]>
Reviewed-by: Albert J. Wong <[email protected]>
Cr-Commit-Position: refs/heads/master@{#611469}
diff --git a/base/pickle_fuzzer.cc b/base/pickle_fuzzer.cc
index 26c5dbf..74abaadb 100644
--- a/base/pickle_fuzzer.cc
+++ b/base/pickle_fuzzer.cc
@@ -102,7 +102,8 @@
       }
       case 14: {
         const char* data_result = nullptr;
-        int read_length = data_provider.ConsumeInt32InRange(0, kMaxReadLength);
+        int read_length =
+            data_provider.ConsumeIntegralInRange(0, kMaxReadLength);
         ignore_result(iter.ReadBytes(&data_result, read_length));
         break;
       }
@@ -113,7 +114,7 @@
       }
       case 16: {
         ignore_result(iter.SkipBytes(
-            data_provider.ConsumeInt32InRange(0, kMaxSkipBytes)));
+            data_provider.ConsumeIntegralInRange(0, kMaxSkipBytes)));
         break;
       }
     }