Chromium Code Reviews| Index: gin/shell/gin_shell_unittest.cc |
| diff --git a/gin/shell/gin_shell_unittest.cc b/gin/shell/gin_shell_unittest.cc |
| index 0df979de71b6d5ef7286d94809b0d41a7e777c56..52d599354fcc0bfd2acf0d02f853db3eeaa7a0f4 100644 |
| --- a/gin/shell/gin_shell_unittest.cc |
| +++ b/gin/shell/gin_shell_unittest.cc |
| @@ -3,7 +3,7 @@ |
| // found in the LICENSE file. |
| #include "base/command_line.h" |
| -#include "base/files/file_path.h" |
| +#include "base/file_util.h" |
| #include "base/path_service.h" |
| #include "base/process/launch.h" |
| #include "base/strings/string_util.h" |
| @@ -25,8 +25,13 @@ base::FilePath HelloWorldPath() { |
| } |
| TEST(GinShellTest, HelloWorld) { |
| - CommandLine cmd(GinShellPath()); |
| - cmd.AppendArgPath(HelloWorldPath()); |
| + base::FilePath ginShellPath(GinShellPath()); |
|
abarth-chromium
2014/08/13 18:00:16
gin_shell_path?
hansmuller
2014/08/13 19:22:14
Yes, sorry about that. I've been writing a lot of
|
| + base::FilePath helloWorldPath(HelloWorldPath()); |
| + ASSERT_TRUE(base::PathExists(ginShellPath)); |
| + ASSERT_TRUE(base::PathExists(helloWorldPath)); |
| + |
| + CommandLine cmd(ginShellPath); |
| + cmd.AppendArgPath(helloWorldPath); |
| std::string output; |
| ASSERT_TRUE(base::GetAppOutput(cmd, &output)); |
| base::TrimWhitespaceASCII(output, base::TRIM_ALL, &output); |