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

Unified Diff: chrome/browser/profile_resetter/jtl_interpreter_unittest.cc

Issue 655413002: Convert ARRAYSIZE_UNSAFE -> arraysize in chrome/browser/. (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 | « chrome/browser/prerender/prerender_unittest.cc ('k') | chrome/browser/profile_resetter/profile_resetter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profile_resetter/jtl_interpreter_unittest.cc
diff --git a/chrome/browser/profile_resetter/jtl_interpreter_unittest.cc b/chrome/browser/profile_resetter/jtl_interpreter_unittest.cc
index 67d89df4bcf442a9c44ad1c62e8841fd9cd195b7..8457264f33af2c33c00bab0e505e8902bbc42e66 100644
--- a/chrome/browser/profile_resetter/jtl_interpreter_unittest.cc
+++ b/chrome/browser/profile_resetter/jtl_interpreter_unittest.cc
@@ -223,7 +223,7 @@ TEST(JtlInterpreter, CompareBool) {
{ VALUE_TRUE, "{ 'KEY_HASH_1': {'a': 'b'} }", false },
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
+ for (size_t i = 0; i < arraysize(cases); ++i) {
SCOPED_TRACE(testing::Message() << "Iteration " << i);
INIT_INTERPRETER(
OP_NAVIGATE(KEY_HASH_1) +
@@ -271,7 +271,7 @@ TEST(JtlInterpreter, CompareHashString) {
{ GetHash("1"), "{ 'KEY_HASH_1': {'a': 'b'} }", false },
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
+ for (size_t i = 0; i < arraysize(cases); ++i) {
SCOPED_TRACE(testing::Message() << "Iteration " << i);
INIT_INTERPRETER(
OP_NAVIGATE(KEY_HASH_1) +
@@ -287,7 +287,7 @@ TEST(JtlInterpreter, CompareHashString) {
}
}
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
+ for (size_t i = 0; i < arraysize(cases); ++i) {
SCOPED_TRACE(testing::Message() << "Negated, Iteration " << i);
INIT_INTERPRETER(
OP_NAVIGATE(KEY_HASH_1) +
@@ -319,7 +319,7 @@ TEST(JtlInterpreter, StoreNodeBool) {
{ false, "{ 'KEY_HASH_1': {'a': 'b'} }", false },
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
+ for (size_t i = 0; i < arraysize(cases); ++i) {
SCOPED_TRACE(testing::Message() << "Iteration " << i);
INIT_INTERPRETER(
OP_NAVIGATE(KEY_HASH_1) +
@@ -365,7 +365,7 @@ TEST(JtlInterpreter, CompareNodeToStoredBool) {
{ VALUE_TRUE, "{ 'KEY_HASH_1': {'a': 'b'} }", false },
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
+ for (size_t i = 0; i < arraysize(cases); ++i) {
SCOPED_TRACE(testing::Message() << "Iteration " << i);
std::string store_op;
if (cases[i].stored_value == VALUE_TRUE ||
@@ -404,7 +404,7 @@ TEST(JtlInterpreter, StoreNodeHash) {
{ std::string(), "{ 'KEY_HASH_1': {'a': 'b'} }", false },
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
+ for (size_t i = 0; i < arraysize(cases); ++i) {
SCOPED_TRACE(testing::Message() << "Iteration " << i);
INIT_INTERPRETER(
OP_NAVIGATE(KEY_HASH_1) +
@@ -470,7 +470,7 @@ TEST(JtlInterpreter, CompareNodeToStoredHash) {
{ VALUE_FALSE, "{ 'KEY_HASH_1': false }", false },
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
+ for (size_t i = 0; i < arraysize(cases); ++i) {
SCOPED_TRACE(testing::Message() << "Iteration " << i);
std::string store_op;
if (cases[i].stored_value == VALUE_TRUE ||
@@ -515,7 +515,7 @@ TEST(JtlInterpreter, CompareSubstring) {
{ VALUE_HASH_1, "{ 'KEY_HASH_1': {'a': 'b'} }", false },
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
+ for (size_t i = 0; i < arraysize(cases); ++i) {
SCOPED_TRACE(testing::Message() << "Iteration " << i);
std::string pattern = cases[i].pattern;
uint32 pattern_sum = std::accumulate(
@@ -569,7 +569,7 @@ TEST(JtlInterpreter, StoreNodeRegisterableDomainHash) {
{ std::string(), "{ 'KEY_HASH_1': {'a': 'b'} }", false },
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
+ for (size_t i = 0; i < arraysize(cases); ++i) {
SCOPED_TRACE(testing::Message() << "Iteration " << i);
INIT_INTERPRETER(
OP_NAVIGATE(KEY_HASH_1) +
« no previous file with comments | « chrome/browser/prerender/prerender_unittest.cc ('k') | chrome/browser/profile_resetter/profile_resetter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698