Index: mojo/runner/shell_test_base_android.cc |
diff --git a/mojo/runner/shell_test_base_android.cc b/mojo/runner/shell_test_base_android.cc |
index a1768070df1084c417217b3fa298cc562cf01bc3..ded757bb0c9d0d99391618de62e184ba26ee5ce3 100644 |
--- a/mojo/runner/shell_test_base_android.cc |
+++ b/mojo/runner/shell_test_base_android.cc |
@@ -30,15 +30,16 @@ |
} // namespace |
-base::FilePath ShellTestBase::GetTestAppFilePath() const { |
+void ShellTestBase::SetUpTestApplications() { |
// Extract mojo applications, and set the resolve base URL to the directory |
// containing those. |
JNIEnv* env = InitEnv(); |
base::android::ScopedJavaLocalRef<jstring> service_dir( |
Java_ShellTestBase_extractMojoApplications( |
env, base::android::GetApplicationContext())); |
- return base::FilePath( |
- base::android::ConvertJavaStringToUTF8(env, service_dir.obj())); |
+ shell_context_.url_resolver()->SetMojoBaseURL( |
+ mojo::util::FilePathToFileURL(base::FilePath( |
+ base::android::ConvertJavaStringToUTF8(env, service_dir.obj())))); |
} |
} // namespace test |