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

Side by Side Diff: ash/system/brightness/tray_brightness_unittest.cc

Issue 2852493002: chromeos: Converts more tests to AshTestBase (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | ash/system/date/date_view_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ash/system/brightness/tray_brightness.h" 5 #include "ash/system/brightness/tray_brightness.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/system/tray/system_tray_delegate.h" 10 #include "ash/system/tray/system_tray_delegate.h"
11 #include "ash/system/tray/system_tray_item.h" 11 #include "ash/system/tray/system_tray_item.h"
12 #include "ash/test/ash_test.h" 12 #include "ash/test/ash_test_base.h"
13 #include "ash/wm/maximize_mode/maximize_mode_controller.h" 13 #include "ash/wm/maximize_mode/maximize_mode_controller.h"
14 #include "ui/views/view.h" 14 #include "ui/views/view.h"
15 15
16 namespace ash { 16 namespace ash {
17 17
18 class TrayBrightnessTest : public AshTest { 18 class TrayBrightnessTest : public test::AshTestBase {
19 public: 19 public:
20 TrayBrightnessTest() {} 20 TrayBrightnessTest() {}
21 ~TrayBrightnessTest() override {} 21 ~TrayBrightnessTest() override {}
22 22
23 protected: 23 protected:
24 views::View* CreateDefaultView() { 24 views::View* CreateDefaultView() {
25 TrayBrightness tray(NULL); 25 TrayBrightness tray(NULL);
26 // The login status doesn't matter here; supply any random value. 26 // The login status doesn't matter here; supply any random value.
27 return tray.CreateDefaultView(LoginStatus::USER); 27 return tray.CreateDefaultView(LoginStatus::USER);
28 } 28 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 std::unique_ptr<views::View> tray(CreateDetailedView()); 91 std::unique_ptr<views::View> tray(CreateDetailedView());
92 Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( 92 Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
93 true); 93 true);
94 EXPECT_TRUE(tray->visible()); 94 EXPECT_TRUE(tray->visible());
95 Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( 95 Shell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
96 false); 96 false);
97 EXPECT_TRUE(tray->visible()); 97 EXPECT_TRUE(tray->visible());
98 } 98 }
99 99
100 } // namespace ash 100 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/system/date/date_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698