Commit b111f255 authored by evan@chromium.org's avatar evan@chromium.org

Blind attempt at fixing broken Chrome Frame unittests build.

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30124 0039d316-1c4b-4281-b951-d872f2087c98
parent 7afe339b
......@@ -30,7 +30,7 @@ class LogDisabler {
} // namespace
TEST(ChromeLauncher, SanitizeCommandLine) {
CommandLine bad(L"dummy.exe");
CommandLine bad(FilePath(L"dummy.exe"));
bad.AppendSwitch(switches::kDisableMetrics); // in whitelist
bad.AppendSwitchWithValue(switches::kLoadExtension, L"foo"); // in whitelist
bad.AppendSwitch("no-such-switch"); // does not exist
......@@ -38,7 +38,7 @@ TEST(ChromeLauncher, SanitizeCommandLine) {
LogDisabler no_dchecks;
CommandLine sanitized(L"dumbo.exe");
CommandLine sanitized(FilePath(L"dumbo.exe"));
chrome_launcher::SanitizeCommandLine(bad, &sanitized);
EXPECT_TRUE(sanitized.HasSwitch(switches::kDisableMetrics));
EXPECT_FALSE(sanitized.HasSwitch(switches::kLoadExtension));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment