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

Unified Diff: chrome/browser/task_manager/task_manager_util_unittest.cc

Issue 2197483003: Move the Mac Task Manager to the new backend code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark Created 4 years, 4 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/browser/task_manager/task_manager_util_unittest.cc
diff --git a/chrome/browser/task_manager/task_manager_util_unittest.cc b/chrome/browser/task_manager/task_manager_util_unittest.cc
deleted file mode 100644
index 79190546fe067ea02d3bb850f10f68fc9a0a9bda..0000000000000000000000000000000000000000
--- a/chrome/browser/task_manager/task_manager_util_unittest.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/task_manager/task_manager_util.h"
-
-#include <stddef.h>
-
-#include "base/macros.h"
-#include "chrome/grit/generated_resources.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace task_manager {
-
-namespace util {
-
-TEST(TaskManagerUtilTest, GetMessagePrefixID) {
- struct Configuration {
- bool is_app;
- bool is_extension;
- bool is_incognito;
- bool is_prerender;
- bool is_background;
- int expected_result;
- };
- const Configuration configs[] = {
- // Use implicit int->bool conversion to save space and keep alignment.
- {1, 0, 0, 0, 1, IDS_TASK_MANAGER_BACKGROUND_PREFIX},
- {1, 0, 1, 0, 0, IDS_TASK_MANAGER_APP_INCOGNITO_PREFIX},
- {1, 0, 0, 0, 0, IDS_TASK_MANAGER_APP_PREFIX},
- {0, 1, 1, 0, 0, IDS_TASK_MANAGER_EXTENSION_INCOGNITO_PREFIX},
- {0, 1, 0, 0, 0, IDS_TASK_MANAGER_EXTENSION_PREFIX},
- {0, 0, 0, 1, 0, IDS_TASK_MANAGER_PRERENDER_PREFIX},
- {0, 0, 1, 0, 0, IDS_TASK_MANAGER_TAB_INCOGNITO_PREFIX},
- {0, 0, 0, 0, 0, IDS_TASK_MANAGER_TAB_PREFIX}};
- for (size_t i = 0; i < arraysize(configs); ++i) {
- EXPECT_EQ(configs[i].expected_result,
- GetMessagePrefixID(configs[i].is_app,
- configs[i].is_extension,
- configs[i].is_incognito,
- configs[i].is_prerender,
- configs[i].is_background));
- }
-}
-
-} // namespace util
-
-} // namespace task_manager
« no previous file with comments | « chrome/browser/task_manager/task_manager_util.cc ('k') | chrome/browser/task_manager/web_contents_information.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698