blob: 05856bca4ea818a9b21af41383613a0444a85fc2 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/js/test/js_application_test_base.h"
namespace mojo {
namespace test {
JSApplicationTestBase::JSApplicationTestBase() {}
JSApplicationTestBase::~JSApplicationTestBase() {}
const std::string JSApplicationTestBase::JSAppURL(const std::string& filename) {
base::FilePath path;
PathService::Get(base::DIR_SOURCE_ROOT, &path);
path = path.AppendASCII("services")
.AppendASCII("js")
.AppendASCII("test")
.AppendASCII(filename);
return "file://" + path.AsUTF8Unsafe();
}
} // namespace test
} // namespace mojo