Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Unified Diff: content/child/multipart_response_delegate_unittest.cc

Issue 654403002: Convert ARRAYSIZE_UNSAFE -> arraysize in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/webui/web_ui_data_source_impl.cc ('k') | content/child/webcrypto/test/aes_cbc_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/multipart_response_delegate_unittest.cc
diff --git a/content/child/multipart_response_delegate_unittest.cc b/content/child/multipart_response_delegate_unittest.cc
index 450acf758c49680fc2e6e746c30902047f980948..182a1f30fffcd8eb2a039da0b67e590713d2eeff 100644
--- a/content/child/multipart_response_delegate_unittest.cc
+++ b/content/child/multipart_response_delegate_unittest.cc
@@ -122,7 +122,7 @@ TEST(MultipartResponseTest, Functions) {
{ "Line\rLine", 4, 1 },
{ "Line\r\rLine", 4, 1 },
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(line_tests); ++i) {
+ for (size_t i = 0; i < arraysize(line_tests); ++i) {
EXPECT_EQ(line_tests[i].expected,
delegate_tester.PushOverLine(line_tests[i].input,
line_tests[i].position));
@@ -144,7 +144,7 @@ TEST(MultipartResponseTest, Functions) {
{ "Foo: bar\r\nBaz:\n", false, 0, "Foo: bar\r\nBaz:\n" },
{ "\r\n", true, 1, "" },
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(header_tests); ++i) {
+ for (size_t i = 0; i < arraysize(header_tests); ++i) {
client.Reset();
delegate_tester.data().assign(header_tests[i].data);
EXPECT_EQ(header_tests[i].rv,
@@ -190,7 +190,7 @@ TEST(MultipartResponseTest, Functions) {
{ "foo", "bound", string::npos },
{ "bound", "--boundbound", 0 },
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(boundary_tests); ++i) {
+ for (size_t i = 0; i < arraysize(boundary_tests); ++i) {
delegate_tester.boundary().assign(boundary_tests[i].boundary);
delegate_tester.data().assign(boundary_tests[i].data);
EXPECT_EQ(boundary_tests[i].position,
« no previous file with comments | « content/browser/webui/web_ui_data_source_impl.cc ('k') | content/child/webcrypto/test/aes_cbc_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698