0

IWYU: missing cstring include for memset and memcpy usage in filter source stream test util.

../../net/filter/filter_source_stream_test_util.cc: In function ‘void net::CompressGzip(const char*, size_t, char*, size_t*, bool)’:
../../net/filter/filter_source_stream_test_util.cc:23:3: error: ‘memset’ was not declared in this scope
   23 |   memset(&zlib_stream, 0, sizeof(zlib_stream));
      |   ^~~~~~

Bug: 957519
Change-Id: I089c9d2f2b76a9492a5aa3d62d42524a7da9c1e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3251403
Reviewed-by: Matt Menke <mmenke@chromium.org>
Commit-Queue: José Dapena Paz <jdapena@igalia.com>
Cr-Commit-Position: refs/heads/main@{#936017}
This commit is contained in:
Jose Dapena Paz
2021-10-28 19:02:03 +00:00
committed by Chromium LUCI CQ
parent 94f4c688c4
commit 08bc1af1eb

@ -4,6 +4,8 @@
#include "net/filter/filter_source_stream_test_util.h"
#include <cstring>
#include "base/bit_cast.h"
#include "base/check_op.h"
#include "third_party/zlib/zlib.h"