| Index: mojo/runner/shell_test_base.cc
|
| diff --git a/mojo/runner/shell_test_base.cc b/mojo/runner/shell_test_base.cc
|
| index 820e664da0d3bdeb34a60efa645ba3c334723104..8731720b6cb5ad61bc67c677de64c690c36a0e94 100644
|
| --- a/mojo/runner/shell_test_base.cc
|
| +++ b/mojo/runner/shell_test_base.cc
|
| @@ -30,15 +30,13 @@ void QuitIfRunning() {
|
|
|
| } // namespace
|
|
|
| -ShellTestBase::ShellTestBase() {
|
| -}
|
| +ShellTestBase::ShellTestBase() : shell_context_(GetTestAppFilePath()) {}
|
|
|
| ShellTestBase::~ShellTestBase() {
|
| }
|
|
|
| void ShellTestBase::SetUp() {
|
| CHECK(shell_context_.Init());
|
| - SetUpTestApplications();
|
| }
|
|
|
| void ShellTestBase::TearDown() {
|
| @@ -61,15 +59,10 @@ ScopedMessagePipeHandle ShellTestBase::ConnectToService(
|
| }
|
|
|
| #if !defined(OS_ANDROID)
|
| -void ShellTestBase::SetUpTestApplications() {
|
| - // Set the URLResolver origin to be the same as the base file path for
|
| - // local files. This is primarily for test convenience, so that references
|
| - // to unknown mojo: URLs that do not have specific local file or custom
|
| - // mappings registered on the URL resolver are treated as shared libraries.
|
| - base::FilePath service_dir;
|
| - CHECK(PathService::Get(base::DIR_MODULE, &service_dir));
|
| - shell_context_.url_resolver()->SetMojoBaseURL(
|
| - util::FilePathToFileURL(service_dir));
|
| +base::FilePath ShellTestBase::GetTestAppFilePath() const {
|
| + base::FilePath shell_dir;
|
| + PathService::Get(base::DIR_MODULE, &shell_dir);
|
| + return shell_dir;
|
| }
|
| #endif
|
|
|
|
|