
Since Result is an enum and not an enum class, it is very easy to mix up this enum and ints. To prepare for making Result an enum class, start using it in some callbacks. This forces the compiler to be stricter about type checking. Then use Result in more places to fix the compile errors. For url_loader_unittest.cc in particular, split the existing mock callback variable into two separate variables for open and read operations. Change-Id: I1c830fd88aba39542fa60508d9e1c26ed1744e5c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6216483 Reviewed-by: Andy Phan <andyphan@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/main@{#1413268}