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

Unified Diff: content/browser/android/java/java_type_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 | « no previous file | content/browser/appcache/appcache_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/java/java_type_unittest.cc
diff --git a/content/browser/android/java/java_type_unittest.cc b/content/browser/android/java/java_type_unittest.cc
index 0980d6393a52dd58c6061be7349ff8536dd0ea2c..484b3eb43a9edc75a6142ab5f373d98e51ffb5fb 100644
--- a/content/browser/android/java/java_type_unittest.cc
+++ b/content/browser/android/java/java_type_unittest.cc
@@ -35,9 +35,8 @@ TEST_F(JavaTypeTest, ScalarTypes) {
"Ljava/lang/Object;"},
{"my.nested.Type$Foo", JavaType::TypeObject, "my/nested/Type$Foo",
"Lmy/nested/Type$Foo;"}};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(scalar_types); ++i) {
- JavaType jt =
- JavaType::CreateFromBinaryName(scalar_types[i].binary_type);
+ for (size_t i = 0; i < arraysize(scalar_types); ++i) {
+ JavaType jt = JavaType::CreateFromBinaryName(scalar_types[i].binary_type);
EXPECT_EQ(scalar_types[i].java_type, jt.type);
EXPECT_FALSE(jt.inner_type);
EXPECT_EQ(scalar_types[i].jni_name, jt.JNIName());
« no previous file with comments | « no previous file | content/browser/appcache/appcache_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698