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.
5 #include "mojo/test/test_utils.h"
7 #include "base/base_paths.h"
8 #include "base/path_service.h"
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
);