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

Unified Diff: ui/base/material_design/material_design_controller_unittest.cc

Issue 1633733004: Use browser top chrome material design by default on Chrome OS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « ui/base/material_design/material_design_controller.cc ('k') | ui/base/ui_base_switches.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/material_design/material_design_controller_unittest.cc
diff --git a/ui/base/material_design/material_design_controller_unittest.cc b/ui/base/material_design/material_design_controller_unittest.cc
index fa3f361372d05d1344ba5adebceb77e676dacfbb..543cf3d2c8f7a9756a0274cb25182f960d2a0336 100644
--- a/ui/base/material_design/material_design_controller_unittest.cc
+++ b/ui/base/material_design/material_design_controller_unittest.cc
@@ -77,33 +77,33 @@ TEST_F(
MaterialDesignController::GetMode());
}
-// Verify command line value "" maps to Mode::NON_MATERIAL when the compile time
+// Verify command line value "" maps to the default mode when the compile time
// flag is defined.
TEST_F(
MaterialDesignControllerTest,
DisabledCommandLineValueMapsToNonMaterialModeWhenCompileTimeFlagEnabled) {
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
switches::kTopChromeMD, "");
- EXPECT_EQ(MaterialDesignController::Mode::NON_MATERIAL,
+ EXPECT_EQ(MaterialDesignController::DefaultMode(),
MaterialDesignController::GetMode());
}
-// Verify no command line value maps to Mode::NON_MATERIAL when the compile time
+// Verify the current mode is reported as the default mode when no command line
// flag is defined.
TEST_F(MaterialDesignControllerTest,
NoCommandLineValueMapsToNonMaterialModeWhenCompileTimeFlagEnabled) {
ASSERT_FALSE(base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kTopChromeMD));
- EXPECT_EQ(MaterialDesignController::Mode::NON_MATERIAL,
+ EXPECT_EQ(MaterialDesignController::DefaultMode(),
MaterialDesignController::GetMode());
}
-// Verify an invalid command line value uses the default NON_MATERIAL mode.
+// Verify an invalid command line value uses the default mode.
TEST_F(MaterialDesignControllerTest, InvalidCommandLineValue) {
const std::string kInvalidValue = "1nvalid-valu3";
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
switches::kTopChromeMD, kInvalidValue);
- EXPECT_EQ(MaterialDesignController::Mode::NON_MATERIAL,
+ EXPECT_EQ(MaterialDesignController::DefaultMode(),
MaterialDesignController::GetMode());
}
« no previous file with comments | « ui/base/material_design/material_design_controller.cc ('k') | ui/base/ui_base_switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698