diff options
author | Avi Drissman <avi@chromium.org> | 2019-01-08 04:52:16 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-01-08 04:52:16 +0000 |
commit | f8556a76361473e81dd9a157e65d17aa2024d83a (patch) | |
tree | 9f21720030f69b76da9985cb4c79883e00869156 /google | |
parent | 06e57c3a48199e63fe0d26451f7e4bfa50c7013d (diff) | |
download | zlib-f8556a76361473e81dd9a157e65d17aa2024d83a.tar.gz |
Use base::size rather than arraysize in third_party/zlib/.
This is purely a mechanical change; there is no intended behavior change.
BUG=837308
R=agl@chromium.org
Change-Id: I4505d29594dba38102d90f07276afb3828fcf995
Reviewed-on: https://chromium-review.googlesource.com/c/1399517
Commit-Queue: Adam Langley <agl@chromium.org>
Reviewed-by: Adam Langley <agl@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#620624}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: dfab7a3df6f5040cf0a79ebf2fc19edf7925ef78
Diffstat (limited to 'google')
-rw-r--r-- | google/zip_reader_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/google/zip_reader_unittest.cc b/google/zip_reader_unittest.cc index 7eba122..51a4938 100644 --- a/google/zip_reader_unittest.cc +++ b/google/zip_reader_unittest.cc @@ -16,10 +16,10 @@ #include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/logging.h" -#include "base/macros.h" #include "base/md5.h" #include "base/path_service.h" #include "base/run_loop.h" +#include "base/stl_util.h" #include "base/strings/stringprintf.h" #include "base/strings/utf_string_conversions.h" #include "base/test/scoped_task_environment.h" @@ -403,7 +403,7 @@ TEST_F(ZipReaderTest, OpenFromString) { "\x50\x75\x78\x0b\x00\x01\x04\x8e\xf0\x00\x00\x04\x88\x13\x00\x00" "\x50\x4b\x05\x06\x00\x00\x00\x00\x01\x00\x01\x00\x4e\x00\x00\x00" "\x52\x00\x00\x00\x00\x00"; - std::string data(kTestData, arraysize(kTestData)); + std::string data(kTestData, base::size(kTestData)); ZipReader reader; ASSERT_TRUE(reader.OpenFromString(data)); base::FilePath target_path(FILE_PATH_LITERAL("test.txt")); |