| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "mojo/edk/test/test_utils.h" | 5 #include "mojo/edk/test/test_utils.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <io.h> | 9 #include <io.h> |
| 10 #include <string.h> | 10 #include <string.h> |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 base::FilePath GetFilePathForJSResource(const std::string& path) { | 115 base::FilePath GetFilePathForJSResource(const std::string& path) { |
| 116 std::string binding_path = "gen/" + path + ".js"; | 116 std::string binding_path = "gen/" + path + ".js"; |
| 117 base::ReplaceChars(binding_path, "//", "\\", &binding_path); | 117 base::ReplaceChars(binding_path, "//", "\\", &binding_path); |
| 118 base::FilePath exe_dir; | 118 base::FilePath exe_dir; |
| 119 PathService::Get(base::DIR_EXE, &exe_dir); | 119 PathService::Get(base::DIR_EXE, &exe_dir); |
| 120 return exe_dir.AppendASCII(binding_path); | 120 return exe_dir.AppendASCII(binding_path); |
| 121 } | 121 } |
| 122 | 122 |
| 123 } // namespace test | 123 } // namespace test |
| 124 } // namespace mojo | 124 } // namespace mojo |
| OLD | NEW |