diff options
author | viettrungluu <viettrungluu@chromium.org> | 2014-10-15 23:17:38 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-16 06:17:55 +0000 |
commit | e4a8b88dc0d38b5ee9a4fb6bde499c404a741f84 (patch) | |
tree | 9043e72ec083abbe5a0245f4e8668883378d024f /net/http/http_content_disposition_unittest.cc | |
parent | 69be8769ba99c7cee59b32ec95ae4c7a4849e1a3 (diff) | |
download | chromium_src-e4a8b88dc0d38b5ee9a4fb6bde499c404a741f84.zip chromium_src-e4a8b88dc0d38b5ee9a4fb6bde499c404a741f84.tar.gz chromium_src-e4a8b88dc0d38b5ee9a4fb6bde499c404a741f84.tar.bz2 |
Convert ARRAYSIZE_UNSAFE -> arraysize in net/.
R=rsleevi@chromium.org
BUG=423134
Review URL: https://codereview.chromium.org/662553002
Cr-Commit-Position: refs/heads/master@{#299857}
Diffstat (limited to 'net/http/http_content_disposition_unittest.cc')
-rw-r--r-- | net/http/http_content_disposition_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/http/http_content_disposition_unittest.cc b/net/http/http_content_disposition_unittest.cc index 43fef9d..e617c6c 100644 --- a/net/http/http_content_disposition_unittest.cc +++ b/net/http/http_content_disposition_unittest.cc @@ -195,7 +195,7 @@ TEST(HttpContentDispositionTest, Filename) { {"attachment; foobar=x; filename=\"foo.html\"", "", L"foo.html"}, }; - for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { + for (size_t i = 0; i < arraysize(tests); ++i) { HttpContentDisposition header(tests[i].header, tests[i].referrer_charset); EXPECT_EQ(tests[i].expected, base::UTF8ToWide(header.filename())) @@ -503,7 +503,7 @@ TEST(HttpContentDispositionTest, tc2231) { // TODO(abarth): http://greenbytes.de/tech/tc2231/#attrfc2047token // TODO(abarth): http://greenbytes.de/tech/tc2231/#attrfc2047quoted }; - for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { + for (size_t i = 0; i < arraysize(tests); ++i) { HttpContentDisposition header(tests[i].header, std::string()); EXPECT_EQ(tests[i].expected_type, header.type()) << "Failed on input: " << tests[i].header; @@ -576,7 +576,7 @@ TEST(HttpContentDispositionTest, ParseResult) { HttpContentDisposition::HAS_NAME }, }; - for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { + for (size_t i = 0; i < arraysize(kTestCases); ++i) { const ParseResultTestCase& test_case = kTestCases[i]; HttpContentDisposition content_disposition(test_case.header, "utf-8"); int result = content_disposition.parse_result_flags(); |