• Dianna Hu's avatar
    Add HpackVarintDecoderTests. · 4676d794
    Dianna Hu authored
    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: default avatarRyan Hamilton <rch@chromium.org>
    Commit-Queue: Dianna Hu <diannahu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#601603}
    4676d794
BUILD.gn 277 KB