Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1093)

Unified Diff: shell/shell_test_helper.cc

Issue 868283006: Rename MojoURLResolver to URLResolver (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix test Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « shell/shell_test_helper.h ('k') | shell/switches.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/shell_test_helper.cc
diff --git a/shell/shell_test_helper.cc b/shell/shell_test_helper.cc
index dc1364de37cc7e798d001082fd525654bfe5db41..b411849e1cd5468b5df6a6ec7dba2220507e264b 100644
--- a/shell/shell_test_helper.cc
+++ b/shell/shell_test_helper.cc
@@ -11,7 +11,7 @@
#include "base/path_service.h"
#include "shell/filename_util.h"
#include "shell/init.h"
-#include "shell/mojo_url_resolver.h"
+#include "shell/url_resolver.h"
namespace mojo {
namespace shell {
@@ -30,7 +30,7 @@ void ShellTestHelper::Init() {
new ApplicationManager::TestAPI(context_.application_manager()));
base::FilePath service_dir;
CHECK(PathService::Get(base::DIR_MODULE, &service_dir));
- context_.mojo_url_resolver()->SetBaseURL(FilePathToFileURL(service_dir));
+ context_.url_resolver()->SetMojoBaseURL(FilePathToFileURL(service_dir));
}
void ShellTestHelper::SetLoaderForURL(scoped_ptr<ApplicationLoader> loader,
@@ -38,9 +38,8 @@ void ShellTestHelper::SetLoaderForURL(scoped_ptr<ApplicationLoader> loader,
context_.application_manager()->SetLoaderForURL(loader.Pass(), url);
}
-void ShellTestHelper::AddCustomMapping(const GURL& mojo_url,
- const GURL& resolved_url) {
- context_.mojo_url_resolver()->AddCustomMapping(mojo_url, resolved_url);
+void ShellTestHelper::AddURLMapping(const GURL& url, const GURL& resolved_url) {
+ context_.url_resolver()->AddURLMapping(url, resolved_url);
}
} // namespace shell
« no previous file with comments | « shell/shell_test_helper.h ('k') | shell/switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698