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

Unified Diff: chrome/common/extensions/extension_set_unittest.cc

Issue 8827013: Move/replace/rename URL-based extension getters from ExtensionService to/in ExtensionSet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: id Created 9 years 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 | « chrome/common/extensions/extension_set.cc ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_set_unittest.cc
diff --git a/chrome/common/extensions/extension_set_unittest.cc b/chrome/common/extensions/extension_set_unittest.cc
index d41d9991e317550c58108c505cc113686fd9bb32..56f2b5fa9fc1a7caa41394eadf3e01c362f5ef72 100644
--- a/chrome/common/extensions/extension_set_unittest.cc
+++ b/chrome/common/extensions/extension_set_unittest.cc
@@ -79,19 +79,19 @@ TEST(ExtensionSetTest, ExtensionSet) {
EXPECT_EQ(3u, extensions.size());
// Get extension by its chrome-extension:// URL
- EXPECT_EQ(ext2, extensions.GetByURL(
+ EXPECT_EQ(ext2, extensions.GetExtensionOrAppByURL(
ExtensionURLInfo(ext2->GetResourceURL("test.html"))));
- EXPECT_EQ(ext3, extensions.GetByURL(
+ EXPECT_EQ(ext3, extensions.GetExtensionOrAppByURL(
ExtensionURLInfo(ext3->GetResourceURL("test.html"))));
- EXPECT_EQ(ext4, extensions.GetByURL(
+ EXPECT_EQ(ext4, extensions.GetExtensionOrAppByURL(
ExtensionURLInfo(ext4->GetResourceURL("test.html"))));
// Get extension by web extent.
- EXPECT_EQ(ext2, extensions.GetByURL(
+ EXPECT_EQ(ext2, extensions.GetExtensionOrAppByURL(
ExtensionURLInfo(GURL("http://code.google.com/p/chromium/monkey"))));
- EXPECT_EQ(ext3, extensions.GetByURL(
+ EXPECT_EQ(ext3, extensions.GetExtensionOrAppByURL(
ExtensionURLInfo(GURL("http://dev.chromium.org/design-docs/"))));
- EXPECT_FALSE(extensions.GetByURL(
+ EXPECT_FALSE(extensions.GetExtensionOrAppByURL(
ExtensionURLInfo(GURL("http://blog.chromium.org/"))));
// Test InSameExtent().
« no previous file with comments | « chrome/common/extensions/extension_set.cc ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698