| 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 "services/js/test/js_application_test_base.h" | 5 #include "services/js/test/js_application_test_base.h" |
| 6 | 6 |
| 7 namespace mojo { | 7 namespace js { |
| 8 namespace test { | 8 namespace test { |
| 9 | 9 |
| 10 JSApplicationTestBase::JSApplicationTestBase() {} | 10 JSApplicationTestBase::JSApplicationTestBase() {} |
| 11 JSApplicationTestBase::~JSApplicationTestBase() {} | 11 JSApplicationTestBase::~JSApplicationTestBase() {} |
| 12 | 12 |
| 13 const std::string JSApplicationTestBase::JSAppURL(const std::string& filename) { | 13 const std::string JSApplicationTestBase::JSAppURL(const std::string& filename) { |
| 14 base::FilePath path; | 14 base::FilePath path; |
| 15 PathService::Get(base::DIR_SOURCE_ROOT, &path); | 15 PathService::Get(base::DIR_SOURCE_ROOT, &path); |
| 16 path = path.AppendASCII("services") | 16 path = path.AppendASCII("services") |
| 17 .AppendASCII("js") | 17 .AppendASCII("js") |
| 18 .AppendASCII("test") | 18 .AppendASCII("test") |
| 19 .AppendASCII(filename); | 19 .AppendASCII(filename); |
| 20 return "file://" + path.AsUTF8Unsafe(); | 20 return "file://" + path.AsUTF8Unsafe(); |
| 21 } | 21 } |
| 22 | 22 |
| 23 } // namespace test | 23 } // namespace test |
| 24 } // namespace mojo | 24 } // namespace mojo |
| 25 | 25 |
| OLD | NEW |