OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "mojo/test/test_utils.h" | |
6 | |
7 #include "base/base_paths.h" | |
8 #include "base/path_service.h" | |
9 | |
10 namespace mojo { | |
11 namespace test { | |
12 | |
13 base::FilePath GetFilePathForJSResource(const std::string& path) { | |
14 std::string binding_path = "gen/" + path + ".js"; | |
15 base::FilePath exe_dir; | |
16 PathService::Get(base::DIR_EXE, &exe_dir); | |
17 return exe_dir.AppendASCII(binding_path); | |
18 } | |
19 | |
20 } // namespace test | |
21 } // namespace mojo | |
OLD | NEW |