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

Unified Diff: mojo/shell/mojo_url_resolver_unittest.cc

Issue 659733003: Revert "Remove 'mojo_' prefix from all mojo applications." (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « mojo/shell/mojo_url_resolver.cc ('k') | mojo/tools/data/unittests » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/mojo_url_resolver_unittest.cc
diff --git a/mojo/shell/mojo_url_resolver_unittest.cc b/mojo/shell/mojo_url_resolver_unittest.cc
index 292fc51a4bd51b39cbee3d1d6c121ea2bb5f254c..363071b19eea8e7d6b1edb56e1300bea4daa9f40 100644
--- a/mojo/shell/mojo_url_resolver_unittest.cc
+++ b/mojo/shell/mojo_url_resolver_unittest.cc
@@ -22,8 +22,13 @@ TEST_F(MojoURLResolverTest, MojoURLsFallThrough) {
std::string resolved(resolver.Resolve(GURL("mojo:test")).spec());
// Resolved must start with |base_url|.
EXPECT_EQ(base_url.spec(), resolved.substr(0, base_url.spec().size()));
- // And must contain foo.
- EXPECT_NE(std::string::npos, resolved.find("foo"));
+ // And must contain mojo_foo (we got mapped to foo, and all libraries are
+ // prefixed with mojo_).
+ EXPECT_NE(std::string::npos, resolved.find("mojo_foo"));
+
+ // Make sure we don't double-mojo.
+ resolved = resolver.Resolve(GURL("mojo:mojo_test")).spec();
+ EXPECT_EQ(std::string::npos, resolved.find("mojo:mojo_mojo_foo"));
}
} // namespace
« no previous file with comments | « mojo/shell/mojo_url_resolver.cc ('k') | mojo/tools/data/unittests » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698