Add HpackVarintDecoderTests.
Add tests for HpackVarintDecoder based on hardwired values. This is in contrast with HpackVarintRoundTripTests that generate input values using HpackVarintEncoder. This allows testing handling of bogus input that HpackVarintEncoder would never generate. NOTE: To comply with Chromium presubmits, this change uses base::size() instead of arraysize. I have added a TODO to create a platform API for array size (such a SPDY API already exists), which I will then use here and backport to Google3. This CL lands server change 214792906 by bnc. BUG=488484 Change-Id: Id697f1cf5f7c1fefe9ae2ce400e9d46e45088c1f Reviewed-on: https://chromium-review.googlesource.com/c/1291815Reviewed-by:Ryan Hamilton <rch@chromium.org> Commit-Queue: Dianna Hu <diannahu@chromium.org> Cr-Commit-Position: refs/heads/master@{#601603}
Showing
Please register or sign in to comment