summaryrefslogtreecommitdiff
path: root/google
diff options
context:
space:
mode:
authorAvi Drissman <avi@chromium.org>2019-01-02 16:22:02 +0000
committerCommit Bot <commit-bot@chromium.org>2019-01-02 16:22:02 +0000
commit06e57c3a48199e63fe0d26451f7e4bfa50c7013d (patch)
treec5ab0d0b47de72111e7f3a39cb7f0504cab30d2b /google
parent2aafd9d335e4fd6fa0c74892252280a1bb51ce6f (diff)
downloadzlib-06e57c3a48199e63fe0d26451f7e4bfa50c7013d.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: I1d226c45e473949a8af47311a6e089e5d9df10b4 Reviewed-on: https://chromium-review.googlesource.com/c/1392748 Commit-Queue: Adam Langley <agl@chromium.org> Reviewed-by: Adam Langley <agl@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#619414} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 7707f82395be87ca3524151c26d3dd2569fec043
Diffstat (limited to 'google')
-rw-r--r--google/compression_utils_unittest.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/google/compression_utils_unittest.cc b/google/compression_utils_unittest.cc
index adcb773..942b7c0 100644
--- a/google/compression_utils_unittest.cc
+++ b/google/compression_utils_unittest.cc
@@ -10,7 +10,7 @@
#include <string>
#include "base/logging.h"
-#include "base/macros.h"
+#include "base/stl_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace compression {
@@ -34,24 +34,24 @@ const uint8_t kCompressedData[] = {
} // namespace
TEST(CompressionUtilsTest, GzipCompression) {
- std::string data(reinterpret_cast<const char*>(kData), arraysize(kData));
+ std::string data(reinterpret_cast<const char*>(kData), base::size(kData));
std::string compressed_data;
EXPECT_TRUE(GzipCompress(data, &compressed_data));
std::string golden_compressed_data(
reinterpret_cast<const char*>(kCompressedData),
- arraysize(kCompressedData));
+ base::size(kCompressedData));
EXPECT_EQ(golden_compressed_data, compressed_data);
}
TEST(CompressionUtilsTest, GzipUncompression) {
std::string compressed_data(reinterpret_cast<const char*>(kCompressedData),
- arraysize(kCompressedData));
+ base::size(kCompressedData));
std::string uncompressed_data;
EXPECT_TRUE(GzipUncompress(compressed_data, &uncompressed_data));
std::string golden_data(reinterpret_cast<const char*>(kData),
- arraysize(kData));
+ base::size(kData));
EXPECT_EQ(golden_data, uncompressed_data);
}
@@ -76,10 +76,10 @@ TEST(CompressionUtilsTest, LargeInput) {
TEST(CompressionUtilsTest, InPlace) {
const std::string original_data(reinterpret_cast<const char*>(kData),
- arraysize(kData));
+ base::size(kData));
const std::string golden_compressed_data(
reinterpret_cast<const char*>(kCompressedData),
- arraysize(kCompressedData));
+ base::size(kCompressedData));
std::string data(original_data);
EXPECT_TRUE(GzipCompress(data, &data));