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

Side by Side Diff: chrome/browser/resources_util_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/resources_util.h" 5 #include "chrome/browser/resources_util.h"
6 6
7 #include "grit/theme_resources.h" 7 #include "grit/theme_resources.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "ui/resources/grit/ui_resources.h" 9 #include "ui/resources/grit/ui_resources.h"
10 10
(...skipping 14 matching lines...) Expand all
25 {"IDR_THROBBER", IDR_THROBBER}, 25 {"IDR_THROBBER", IDR_THROBBER},
26 #if defined(OS_CHROMEOS) 26 #if defined(OS_CHROMEOS)
27 // Check IDRs from ui/chromeos/resources/ui_chromeos_resources.grd. 27 // Check IDRs from ui/chromeos/resources/ui_chromeos_resources.grd.
28 {"IDR_LOGIN_DEFAULT_USER", IDR_LOGIN_DEFAULT_USER}, 28 {"IDR_LOGIN_DEFAULT_USER", IDR_LOGIN_DEFAULT_USER},
29 #endif 29 #endif
30 // Unknown names should be invalid and return -1. 30 // Unknown names should be invalid and return -1.
31 {"foobar", -1}, 31 {"foobar", -1},
32 {"backstar", -1}, 32 {"backstar", -1},
33 }; 33 };
34 34
35 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kCases); ++i) 35 for (size_t i = 0; i < arraysize(kCases); ++i)
36 EXPECT_EQ(kCases[i].id, ResourcesUtil::GetThemeResourceId(kCases[i].name)); 36 EXPECT_EQ(kCases[i].id, ResourcesUtil::GetThemeResourceId(kCases[i].name));
37 } 37 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_info_cache_unittest.cc ('k') | chrome/browser/safe_browsing/safe_browsing_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698