Searched refs:MatchesURL (Results 1 - 25 of 47) sorted by relevance

12

/external/chromium_org/extensions/common/
H A Duser_script_unittest.cc26 EXPECT_TRUE(script.MatchesURL(GURL("http://mail.google.com")));
27 EXPECT_TRUE(script.MatchesURL(GURL("http://mail.google.com/foo")));
28 EXPECT_TRUE(script.MatchesURL(GURL("https://mail.google.com/foo")));
29 EXPECT_TRUE(script.MatchesURL(GURL("ftp://mail.google.com/foo")));
30 EXPECT_TRUE(script.MatchesURL(GURL("http://woo.mail.google.com/foo")));
31 EXPECT_TRUE(script.MatchesURL(GURL("http://mail.yahoo.com/bar")));
32 EXPECT_TRUE(script.MatchesURL(GURL("http://mail.msn.com/baz")));
33 EXPECT_FALSE(script.MatchesURL(GURL("http://www.hotmail.com")));
36 EXPECT_TRUE(script.MatchesURL(GURL("http://mail.google.com")));
37 EXPECT_FALSE(script.MatchesURL(GUR
[all...]
H A Durl_pattern_unittest.cc105 EXPECT_TRUE(pattern.MatchesURL(GURL("http://google.com")));
106 EXPECT_TRUE(pattern.MatchesURL(GURL("http://yahoo.com")));
107 EXPECT_TRUE(pattern.MatchesURL(GURL("http://google.com/foo")));
108 EXPECT_FALSE(pattern.MatchesURL(GURL("https://google.com")));
109 EXPECT_TRUE(pattern.MatchesURL(GURL("http://74.125.127.100/search")));
121 EXPECT_TRUE(pattern.MatchesURL(GURL("https://www.google.com/foo")));
122 EXPECT_TRUE(pattern.MatchesURL(GURL("https://www.google.com/foobar")));
123 EXPECT_FALSE(pattern.MatchesURL(GURL("http://www.google.com/foo")));
124 EXPECT_FALSE(pattern.MatchesURL(GURL("https://www.google.com/")));
125 EXPECT_TRUE(pattern.MatchesURL(
[all...]
H A Durl_pattern_set_unittest.cc40 EXPECT_FALSE(set.MatchesURL(GURL("http://www.foo.com/bar")));
41 EXPECT_FALSE(set.MatchesURL(GURL()));
42 EXPECT_FALSE(set.MatchesURL(GURL("invalid")));
49 EXPECT_TRUE(set.MatchesURL(GURL("http://www.google.com/")));
50 EXPECT_TRUE(set.MatchesURL(GURL("http://www.google.com/monkey")));
51 EXPECT_FALSE(set.MatchesURL(GURL("https://www.google.com/")));
52 EXPECT_FALSE(set.MatchesURL(GURL("https://www.microsoft.com/")));
60 EXPECT_TRUE(set.MatchesURL(GURL("http://www.google.com/monkey")));
61 EXPECT_TRUE(set.MatchesURL(GURL("http://www.yahoo.com/monkey")));
62 EXPECT_FALSE(set.MatchesURL(GUR
[all...]
H A Dextension_set.cc100 if (iter->second->web_extent().MatchesURL(url))
148 it->second->web_extent().MatchesURL(url))
H A Durl_pattern_set.h83 bool MatchesURL(const GURL& url) const;
H A Duser_script.cc101 bool UserScript::MatchesURL(const GURL& url) const { function in class:extensions::UserScript
103 if (!url_set_.MatchesURL(url))
108 if (exclude_url_set_.MatchesURL(url))
H A Durl_pattern.h140 bool MatchesURL(const GURL& test) const;
146 // Note that if test is "filesystem", this may fail whereas MatchesURL
147 // may succeed. MatchesURL is smart enough to look at the inner_url instead
H A Durl_pattern_set.cc176 bool URLPatternSet::MatchesURL(const GURL& url) const { function in class:extensions::URLPatternSet
179 if (pattern->MatchesURL(url))
/external/chromium_org/extensions/common/manifest_handlers/
H A Dexternally_connectable_unittest.cc52 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://example.com")));
53 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://example.com/")));
54 EXPECT_FALSE(info->matches.MatchesURL(GURL("http://example.com/index.html")));
56 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://google.com")));
57 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://google.com/")));
58 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://google.com/index.html")));
59 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://www.google.com")));
60 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://www.google.com/")));
61 EXPECT_TRUE(info->matches.MatchesURL(GURL("https://google.com")));
62 EXPECT_TRUE(info->matches.MatchesURL(GUR
[all...]
/external/chromium_org/chrome/common/extensions/manifest_tests/
H A Dextension_manifests_default_extent_path_unittest.cc15 EXPECT_TRUE(extension->web_extent().MatchesURL(
/external/chromium_org/chrome/common/extensions/manifest_handlers/
H A Dautomation_unittest.cc106 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://www.google.com/")));
107 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://www.google.com")));
108 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://www.twitter.com/")));
109 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://www.twitter.com")));
111 EXPECT_FALSE(info->matches.MatchesURL(GURL("http://www.bing.com/")));
112 EXPECT_FALSE(info->matches.MatchesURL(GURL("http://www.bing.com")));
135 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://www.twitter.com/")));
136 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://www.twitter.com")));
/external/chromium_org/chrome/common/extensions/permissions/
H A Dpermissions_data_unittest.cc155 EXPECT_FALSE(hosts.MatchesURL(GURL("http://www.google.com")));
160 EXPECT_TRUE(hosts.MatchesURL(GURL("http://www.google.com")));
161 EXPECT_FALSE(hosts.MatchesURL(GURL("https://www.google.com")));
167 EXPECT_TRUE(hosts.MatchesURL(GURL("http://google.com")));
168 EXPECT_TRUE(hosts.MatchesURL(GURL("http://foo.google.com")));
173 EXPECT_TRUE(hosts.MatchesURL(GURL("http://www.google.com")));
174 EXPECT_TRUE(hosts.MatchesURL(GURL("http://www.reddit.com")));
180 EXPECT_TRUE(hosts.MatchesURL(GURL("http://google.com")));
181 EXPECT_TRUE(hosts.MatchesURL(GURL("https://google.com")));
187 EXPECT_TRUE(hosts.MatchesURL(GUR
[all...]
/external/chromium_org/chrome/common/extensions/api/file_browser_handlers/
H A Dfile_browser_handler.h47 bool MatchesURL(const GURL& url) const;
H A Dfile_browser_handler_manifest_unittest.cc84 EXPECT_TRUE(action->MatchesURL(
117 EXPECT_TRUE(action->MatchesURL(
H A Dfile_browser_handler.cc75 bool FileBrowserHandler::MatchesURL(const GURL& url) const { function in class:FileBrowserHandler
76 return url_set_.MatchesURL(url);
/external/chromium_org/chrome/common/extensions/api/
H A Dextension_api_unittest.cc662 bool MatchesURL( function in namespace:extensions
672 EXPECT_TRUE(MatchesURL(api.get(), "app", "http://example.com/example.html"));
673 EXPECT_TRUE(MatchesURL(api.get(), "app", "https://blah.net"));
674 EXPECT_TRUE(MatchesURL(api.get(), "app", "file://somefile.html"));
677 EXPECT_TRUE(MatchesURL(api.get(), "app", "about:flags"));
678 EXPECT_TRUE(MatchesURL(api.get(), "app", "chrome://flags"));
681 EXPECT_TRUE(MatchesURL(api.get(), "app",
685 EXPECT_FALSE(MatchesURL(api.get(), "storage",
687 EXPECT_FALSE(MatchesURL(api.get(), "storage", "https://blah.net"));
688 EXPECT_FALSE(MatchesURL(ap
[all...]
/external/chromium_org/extensions/common/permissions/
H A Dpermission_set.cc202 return explicit_hosts().MatchesURL(origin);
210 return scriptable_hosts().MatchesURL(origin);
235 return effective_hosts().MatchesURL(url);
H A Dpermissions_data.cc356 if (permitted_url_patterns.MatchesURL(document_url))
359 if (withheld_url_patterns.MatchesURL(document_url))
/external/chromium_org/chrome/browser/extensions/
H A Dchrome_info_map_unittest.cc71 ASSERT_TRUE(app->web_extent().MatchesURL(app_url));
H A Dextension_management_unittest.cc214 EXPECT_TRUE(allowed_sites.MatchesURL(GURL("https://www.example.com/foo")));
215 EXPECT_FALSE(allowed_sites.MatchesURL(GURL("https://www.example.com/bar")));
217 allowed_sites.MatchesURL(GURL("https://corp.mycompany.com/entry")));
219 allowed_sites.MatchesURL(GURL("https://www.mycompany.com/entry")));
330 EXPECT_TRUE(allowed_sites.MatchesURL(GURL("http://foo.com/entry")));
331 EXPECT_FALSE(allowed_sites.MatchesURL(GURL("http://bar.com/entry")));
358 .install_sources.MatchesURL(GURL("https://www.example.com/foo")));
370 .install_sources.MatchesURL(GURL("https://www.example.com/foo")));
380 .install_sources.MatchesURL(
H A Dactive_script_controller.cc114 if (withheld_permissions->explicit_hosts().MatchesURL(url)) {
118 if (withheld_permissions->scriptable_hosts().MatchesURL(url)) {
H A Dwebstore_inline_installer.cc212 return verified_site_pattern.MatchesURL(requestor_url);
/external/chromium_org/chrome/browser/nacl_host/
H A Dnacl_browser_delegate_impl.cc176 if (iter->MatchesURL(manifest_url)) {
/external/chromium_org/chrome/common/extensions/api/url_handlers/
H A Durl_handlers_parser.cc78 if (it->patterns.MatchesURL(url))
/external/chromium_org/chrome/browser/ui/ash/launcher/
H A Dapp_shortcut_launcher_item_controller.cc304 refocus_pattern.MatchesURL(tab_url)) ||
306 extension->web_extent().MatchesURL(tab_url)) ||

Completed in 4204 milliseconds

12