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

Side by Side Diff: ui/base/material_design/material_design_controller_unittest.cc

Issue 2473863004: Remove MaterialDesignController::IsModeMaterial (Closed)
Patch Set: pkasting review and rebase Created 4 years, 1 month 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 | « ui/base/material_design/material_design_controller.cc ('k') | ui/native_theme/BUILD.gn » ('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 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 <string> 5 #include <string>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "ui/base/material_design/material_design_controller.h" 10 #include "ui/base/material_design/material_design_controller.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 EXPECT_EQ(MaterialDesignController::DefaultMode(), 131 EXPECT_EQ(MaterialDesignController::DefaultMode(),
132 MaterialDesignController::GetMode()); 132 MaterialDesignController::GetMode());
133 } 133 }
134 134
135 // Verify an invalid command line value uses the default mode. 135 // Verify an invalid command line value uses the default mode.
136 TEST_F(MaterialDesignControllerTestInvalid, InvalidCommandLineValue) { 136 TEST_F(MaterialDesignControllerTestInvalid, InvalidCommandLineValue) {
137 EXPECT_EQ(MaterialDesignController::DefaultMode(), 137 EXPECT_EQ(MaterialDesignController::DefaultMode(),
138 MaterialDesignController::GetMode()); 138 MaterialDesignController::GetMode());
139 } 139 }
140 140
141 // Verify that MaterialDesignController::IsModeMaterial() will be true when
142 // initialized with command line flag "material".
143 TEST_F(MaterialDesignControllerTestMaterial, IsModeMaterialInitializesMode) {
144 EXPECT_TRUE(MaterialDesignController::IsModeMaterial());
145 }
146
147 } // namespace 141 } // namespace
148 } // namespace ui 142 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/material_design/material_design_controller.cc ('k') | ui/native_theme/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698