OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/prefs/pref_service.h" | |
9 #include "base/prefs/scoped_user_pref_update.h" | |
10 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/ui/browser_dialogs.h" | 9 #include "chrome/browser/ui/browser_dialogs.h" |
12 #include "chrome/browser/ui/task_manager/task_manager_columns.h" | 10 #include "chrome/browser/ui/task_manager/task_manager_columns.h" |
13 #include "chrome/browser/ui/task_manager/task_manager_table_model.h" | 11 #include "chrome/browser/ui/task_manager/task_manager_table_model.h" |
14 #include "chrome/browser/ui/views/new_task_manager_view.h" | 12 #include "chrome/browser/ui/views/new_task_manager_view.h" |
15 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
16 #include "chrome/test/base/in_process_browser_test.h" | 14 #include "chrome/test/base/in_process_browser_test.h" |
| 15 #include "components/prefs/pref_service.h" |
| 16 #include "components/prefs/scoped_user_pref_update.h" |
17 #include "content/public/test/test_utils.h" | 17 #include "content/public/test/test_utils.h" |
18 #include "ui/views/controls/table/table_view.h" | 18 #include "ui/views/controls/table/table_view.h" |
19 | 19 |
20 namespace task_management { | 20 namespace task_management { |
21 | 21 |
22 class NewTaskManagerViewTest : public InProcessBrowserTest { | 22 class NewTaskManagerViewTest : public InProcessBrowserTest { |
23 public: | 23 public: |
24 NewTaskManagerViewTest() {} | 24 NewTaskManagerViewTest() {} |
25 ~NewTaskManagerViewTest() override {} | 25 ~NewTaskManagerViewTest() override {} |
26 | 26 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 EXPECT_EQ(table->sort_descriptors().front().column_id, sorted_col_id); | 141 EXPECT_EQ(table->sort_descriptors().front().column_id, sorted_col_id); |
142 } | 142 } |
143 for (size_t i = 0; i < kColumnsSize; ++i) { | 143 for (size_t i = 0; i < kColumnsSize; ++i) { |
144 EXPECT_EQ(!kColumns[i].default_visibility, | 144 EXPECT_EQ(!kColumns[i].default_visibility, |
145 table->IsColumnVisible(kColumns[i].id)); | 145 table->IsColumnVisible(kColumns[i].id)); |
146 } | 146 } |
147 } | 147 } |
148 | 148 |
149 } // namespace task_management | 149 } // namespace task_management |
150 | 150 |
OLD | NEW |