Index: chrome/installer/setup/setup_util_unittest.cc |
=================================================================== |
--- chrome/installer/setup/setup_util_unittest.cc (revision 243928) |
+++ chrome/installer/setup/setup_util_unittest.cc (working copy) |
@@ -485,3 +485,12 @@ |
BrowserDistribution::CHROME_BINARIES)); |
EXPECT_EQ(L"2.0-dev-multi", binaries.channel().value()); |
} |
+ |
+TEST(SetupUtilTest, ContainsUnsupportedSwitch) { |
+ EXPECT_FALSE(installer::ContainsUnsupportedSwitch( |
+ CommandLine::FromString(L"foo.exe"))); |
+ EXPECT_FALSE(installer::ContainsUnsupportedSwitch( |
+ CommandLine::FromString(L"foo.exe --multi-install --chrome"))); |
+ EXPECT_TRUE(installer::ContainsUnsupportedSwitch( |
+ CommandLine::FromString(L"foo.exe --chrome-frame"))); |
+} |