Index: ui/base/layout_unittest.cc |
diff --git a/ui/base/layout_unittest.cc b/ui/base/layout_unittest.cc |
index 0992d0bd75434bff15248c65a8002c2697d3b581..9cda5d5f904c98ca61c077a065005d7be6c8a4ff 100644 |
--- a/ui/base/layout_unittest.cc |
+++ b/ui/base/layout_unittest.cc |
@@ -72,12 +72,10 @@ TEST(LayoutTest, GetScaleFactorFromScaleAllSupported) { |
TEST(LayoutTest, GetMaxScaleFactor) { |
#if defined(OS_CHROMEOS) |
- // On Chrome OS, the maximum scale factor differs depending on the devices and |
- // force-device-scale-factor flag. Tests only the cases not affected by these. |
- if (!base::chromeos::IsRunningOnChromeOS() && |
- !CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kForceDeviceScaleFactor)) |
- EXPECT_EQ(SCALE_FACTOR_100P, GetMaxScaleFactor()); |
+ // On Chrome OS, the maximum scale factor is based on |
+ // the available resource pack. In testing environment, |
+ // we always have 200P. |
+ EXPECT_EQ(SCALE_FACTOR_200P, GetMaxScaleFactor()); |
#else |
std::vector<ScaleFactor> original_supported_factors = |
GetSupportedScaleFactors(); |