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

Side by Side Diff: chrome/browser/task_manager/task_manager_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 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/browser/task_manager/task_manager_util.h" 5 #include "chrome/browser/task_manager/task_manager_util.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "chrome/grit/generated_resources.h" 8 #include "chrome/grit/generated_resources.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 13 matching lines...) Expand all
24 const Configuration configs[] = { 24 const Configuration configs[] = {
25 // Use implicit int->bool conversion to save space and keep alignment. 25 // Use implicit int->bool conversion to save space and keep alignment.
26 {1, 0, 0, 0, 1, IDS_TASK_MANAGER_BACKGROUND_PREFIX}, 26 {1, 0, 0, 0, 1, IDS_TASK_MANAGER_BACKGROUND_PREFIX},
27 {1, 0, 1, 0, 0, IDS_TASK_MANAGER_APP_INCOGNITO_PREFIX}, 27 {1, 0, 1, 0, 0, IDS_TASK_MANAGER_APP_INCOGNITO_PREFIX},
28 {1, 0, 0, 0, 0, IDS_TASK_MANAGER_APP_PREFIX}, 28 {1, 0, 0, 0, 0, IDS_TASK_MANAGER_APP_PREFIX},
29 {0, 1, 1, 0, 0, IDS_TASK_MANAGER_EXTENSION_INCOGNITO_PREFIX}, 29 {0, 1, 1, 0, 0, IDS_TASK_MANAGER_EXTENSION_INCOGNITO_PREFIX},
30 {0, 1, 0, 0, 0, IDS_TASK_MANAGER_EXTENSION_PREFIX}, 30 {0, 1, 0, 0, 0, IDS_TASK_MANAGER_EXTENSION_PREFIX},
31 {0, 0, 0, 1, 0, IDS_TASK_MANAGER_PRERENDER_PREFIX}, 31 {0, 0, 0, 1, 0, IDS_TASK_MANAGER_PRERENDER_PREFIX},
32 {0, 0, 1, 0, 0, IDS_TASK_MANAGER_TAB_INCOGNITO_PREFIX}, 32 {0, 0, 1, 0, 0, IDS_TASK_MANAGER_TAB_INCOGNITO_PREFIX},
33 {0, 0, 0, 0, 0, IDS_TASK_MANAGER_TAB_PREFIX}}; 33 {0, 0, 0, 0, 0, IDS_TASK_MANAGER_TAB_PREFIX}};
34 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(configs); ++i) { 34 for (size_t i = 0; i < arraysize(configs); ++i) {
35 EXPECT_EQ(configs[i].expected_result, 35 EXPECT_EQ(configs[i].expected_result,
36 GetMessagePrefixID(configs[i].is_app, 36 GetMessagePrefixID(configs[i].is_app,
37 configs[i].is_extension, 37 configs[i].is_extension,
38 configs[i].is_incognito, 38 configs[i].is_incognito,
39 configs[i].is_prerender, 39 configs[i].is_prerender,
40 configs[i].is_background)); 40 configs[i].is_background));
41 } 41 }
42 } 42 }
43 43
44 } // namespace util 44 } // namespace util
45 45
46 } // namespace task_manager 46 } // namespace task_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698