| Index: chrome/browser/shell_integration_linux_unittest.cc
|
| diff --git a/chrome/browser/shell_integration_linux_unittest.cc b/chrome/browser/shell_integration_linux_unittest.cc
|
| index d6a7120a60cf04f6d0c3313ef64be998757e6d7b..cc308ffb45088548fe646ba0bd5b569e232c7161 100644
|
| --- a/chrome/browser/shell_integration_linux_unittest.cc
|
| +++ b/chrome/browser/shell_integration_linux_unittest.cc
|
| @@ -654,4 +654,19 @@ TEST(ShellIntegrationTest, GetDirectoryFileContents) {
|
| }
|
| }
|
|
|
| +TEST(ShellIntegrationTest, WmClass) {
|
| + base::CommandLine command_line((base::FilePath()));
|
| + EXPECT_EQ(GetProgramClassName(command_line, "foo.desktop"), "foo");
|
| + EXPECT_EQ(GetProgramClassClass(command_line, "foo.desktop"), "Foo");
|
| +
|
| + command_line.AppendSwitchASCII("class", "baR");
|
| + EXPECT_EQ(GetProgramClassName(command_line, "foo.desktop"), "foo");
|
| + EXPECT_EQ(GetProgramClassClass(command_line, "foo.desktop"), "baR");
|
| +
|
| + command_line = base::CommandLine(base::FilePath());
|
| + command_line.AppendSwitchASCII("user-data-dir", "/tmp/baz");
|
| + EXPECT_EQ(GetProgramClassName(command_line, "foo.desktop"), "foo (/tmp/baz)");
|
| + EXPECT_EQ(GetProgramClassClass(command_line, "foo.desktop"), "Foo");
|
| +}
|
| +
|
| } // namespace shell_integration_linux
|
|
|