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

Side by Side Diff: chrome/utility/importer/bookmarks_file_importer_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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/utility/importer/bookmarks_file_importer.h" 5 #include "chrome/utility/importer/bookmarks_file_importer.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "url/gurl.h" 8 #include "url/gurl.h"
9 9
10 namespace internal { 10 namespace internal {
(...skipping 18 matching lines...) Expand all
29 { "chrome://about", true }, 29 { "chrome://about", true },
30 { "about:version", true }, 30 { "about:version", true },
31 { "about:blank", true }, 31 { "about:blank", true },
32 { "about:credits", true }, 32 { "about:credits", true },
33 { "wyciwyg://example.com", false }, 33 { "wyciwyg://example.com", false },
34 { "place://google.com", false }, 34 { "place://google.com", false },
35 { "about:config", false }, 35 { "about:config", false },
36 { "about:moon", false }, 36 { "about:moon", false },
37 }; 37 };
38 38
39 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) { 39 for (size_t i = 0; i < arraysize(test_cases); ++i) {
40 EXPECT_EQ(test_cases[i].can_be_imported, 40 EXPECT_EQ(test_cases[i].can_be_imported,
41 internal::CanImportURL(GURL(test_cases[i].url))); 41 internal::CanImportURL(GURL(test_cases[i].url)));
42 } 42 }
43 } 43 }
OLDNEW
« no previous file with comments | « chrome/tools/profile_reset/jtl_parser_unittest.cc ('k') | chrome/utility/importer/safari_importer_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698