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

Unified Diff: chrome/tools/profile_reset/jtl_compiler_unittest.cc

Issue 641363003: Convert ARRAYSIZE_UNSAFE -> arraysize in chrome/, outside of 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
Index: chrome/tools/profile_reset/jtl_compiler_unittest.cc
diff --git a/chrome/tools/profile_reset/jtl_compiler_unittest.cc b/chrome/tools/profile_reset/jtl_compiler_unittest.cc
index 3dbf886692455df1fd98eb828f10caca87083a64..986eed26732285e29738b7d942988949f0a1a746 100644
--- a/chrome/tools/profile_reset/jtl_compiler_unittest.cc
+++ b/chrome/tools/profile_reset/jtl_compiler_unittest.cc
@@ -76,7 +76,7 @@ TEST(JtlCompiler, CompileSingleInstructions) {
{"break.", OP_STOP_EXECUTING_SENTENCE},
{"break;", OP_STOP_EXECUTING_SENTENCE + OP_END_OF_SENTENCE}};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
+ for (size_t i = 0; i < arraysize(cases); ++i) {
SCOPED_TRACE(cases[i].source_code);
std::string bytecode;
EXPECT_TRUE(JtlCompiler::Compile(
@@ -124,7 +124,7 @@ TEST(JtlCompiler, InvalidArgumentsCount) {
"any().\nstore_bool(\"name\", true, \"superfluous argument\");\n",
"any().\nstore_bool(\"name\");"}; // missing argument
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kSourceCodes); ++i) {
+ for (size_t i = 0; i < arraysize(kSourceCodes); ++i) {
SCOPED_TRACE(kSourceCodes[i]);
std::string bytecode;
JtlCompiler::CompileError error;
@@ -155,7 +155,7 @@ TEST(JtlCompiler, InvalidArgumentType) {
{"compare_substring_hashed",
"any()\n.\ncompare_substring_hashed(true);"}};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
+ for (size_t i = 0; i < arraysize(cases); ++i) {
SCOPED_TRACE(cases[i].source_code);
std::string bytecode;
JtlCompiler::CompileError error;
@@ -176,7 +176,7 @@ TEST(JtlCompiler, InvalidArgumentValue) {
} cases[] = {
{"compare_substring_hashed", "compare_substring_hashed(\"\");"}};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
+ for (size_t i = 0; i < arraysize(cases); ++i) {
SCOPED_TRACE(cases[i].source_code);
std::string bytecode;
JtlCompiler::CompileError error;
« no previous file with comments | « chrome/tools/convert_dict/convert_dict_unittest.cc ('k') | chrome/tools/profile_reset/jtl_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698