Home
last modified time | relevance | path

Searched refs:EndsWith (Results 1 – 25 of 108) sorted by relevance

12345

/external/chromium_org/chrome/browser/search/
Dcontextual_search_promo_source_android.cc99 if (EndsWith(path, ".js", false)) return "application/javascript"; in GetMimeType()
100 if (EndsWith(path, ".png", false)) return "image/png"; in GetMimeType()
101 if (EndsWith(path, ".css", false)) return "text/css"; in GetMimeType()
102 if (EndsWith(path, ".html", false)) return "text/html"; in GetMimeType()
103 if (EndsWith(path, ".woff", false)) return "font/woff"; in GetMimeType()
104 if (EndsWith(path, ".woff2", false)) return "font/woff2"; in GetMimeType()
Diframe_source.cc28 if (EndsWith(path, ".js", false)) in GetMimeType()
30 if (EndsWith(path, ".png", false)) in GetMimeType()
32 if (EndsWith(path, ".css", false)) in GetMimeType()
34 if (EndsWith(path, ".html", false)) in GetMimeType()
/external/easymock/src/org/easymock/internal/matchers/
DEndsWith.java22 public class EndsWith implements IArgumentMatcher, Serializable { class
28 public EndsWith(String suffix) { in EndsWith() method in EndsWith
/external/mockito/src/org/mockito/internal/matchers/
DEndsWith.java14 public class EndsWith extends ArgumentMatcher<String> implements Serializable { class
19 public EndsWith(String suffix) { in EndsWith() method in EndsWith
/external/chromium_org/net/spdy/
Dspdy_session_test_util.cc31 if (EndsWith(pending_task.posted_from.file_name(), file_name_, true) && in DidProcessTask()
32 EndsWith(pending_task.posted_from.function_name(), function_name_, in DidProcessTask()
/external/chromium_org/base/strings/
Dstring_util_unittest.cc819 TEST(StringUtilTest, EndsWith) { in TEST() argument
820 EXPECT_TRUE(EndsWith(ASCIIToUTF16("Foo.plugin"), in TEST()
822 EXPECT_FALSE(EndsWith(ASCIIToUTF16("Foo.Plugin"), in TEST()
824 EXPECT_TRUE(EndsWith(ASCIIToUTF16("Foo.plugin"), in TEST()
826 EXPECT_TRUE(EndsWith(ASCIIToUTF16("Foo.Plugin"), in TEST()
828 EXPECT_FALSE(EndsWith(ASCIIToUTF16(".plug"), ASCIIToUTF16(".plugin"), true)); in TEST()
829 EXPECT_FALSE(EndsWith(ASCIIToUTF16(".plug"), ASCIIToUTF16(".plugin"), false)); in TEST()
830 EXPECT_FALSE(EndsWith(ASCIIToUTF16("Foo.plugin Bar"), in TEST()
832 EXPECT_FALSE(EndsWith(ASCIIToUTF16("Foo.plugin Bar"), in TEST()
834 EXPECT_FALSE(EndsWith(string16(), ASCIIToUTF16(".plugin"), false)); in TEST()
[all …]
/external/chromium_org/chrome/browser/ui/webui/
Ddevtools_ui.cc108 if (EndsWith(filename, ".html", false)) { in GetMimeTypeForPath()
110 } else if (EndsWith(filename, ".css", false)) { in GetMimeTypeForPath()
112 } else if (EndsWith(filename, ".js", false)) { in GetMimeTypeForPath()
114 } else if (EndsWith(filename, ".png", false)) { in GetMimeTypeForPath()
116 } else if (EndsWith(filename, ".gif", false)) { in GetMimeTypeForPath()
118 } else if (EndsWith(filename, ".manifest", false)) { in GetMimeTypeForPath()
/external/chromium_org/chrome/browser/ui/webui/extensions/
Dinstall_extension_handler.cc106 if (EndsWith( in HandleInstallMessage()
120 if (EndsWith(file_display_name_, in HandleInstallMessage()
125 } else if (EndsWith(file_display_name_, in HandleInstallMessage()
/external/chromium_org/content/browser/webui/
Dweb_ui_data_source_impl.cc201 if (EndsWith(path, ".js", false)) in GetMimeType()
204 if (EndsWith(path, ".json", false)) in GetMimeType()
207 if (EndsWith(path, ".pdf", false)) in GetMimeType()
210 if (EndsWith(path, ".svg", false)) in GetMimeType()
/external/chromium_org/pdf/
Ddocument_loader.cc77 !EndsWith(type, "/pdf", false) && in Init()
78 !EndsWith(type, ".pdf", false) && in Init()
79 !EndsWith(type, "/x-pdf", false) && in Init()
80 !EndsWith(type, "/*", false) && in Init()
81 !EndsWith(type, "/acrobat", false) && in Init()
82 !EndsWith(type, "/unknown", false)) { in Init()
/external/chromium_org/chrome/common/variations/
Dexperiment_labels.cc99 DCHECK(!EndsWith(variation_labels, separator, false)); in CombineExperimentLabels()
101 DCHECK(!EndsWith(other_labels, separator, false)); in CombineExperimentLabels()
/external/chromium_org/chrome/browser/extensions/api/web_request/
Dweb_request_permissions.cc33 if (EndsWith(host, kGoogleCom, true)) { in IsSensitiveURL()
52 EndsWith(url.host(), ".clients.google.com", true) || in IsSensitiveURL()
/external/chromium_org/extensions/browser/api/web_request/
Dweb_request_permissions.cc33 if (EndsWith(host, kGoogleCom, true)) { in IsSensitiveURL()
52 EndsWith(url.host(), ".clients.google.com", true) || in IsSensitiveURL()
/external/chromium_org/chrome/browser/component_updater/test/
Dcld_component_installer_unittest.cc96 ASSERT_TRUE(EndsWith(result.value(), kTestCldDataFileName, true)); in TEST_F()
124 ASSERT_TRUE(EndsWith(result.value(), kTestCldDataFileName, true)); in TEST_F()
/external/chromium_org/chrome/renderer/
Dcontent_settings_observer.cc111 return (EndsWith(host, domain, false) && in IsHostInDomain()
509 if (EndsWith(resource_gurl.path(), kDotHTML, false)) in allowDisplayingInsecureContent()
563 } else if (EndsWith(origin_host, kDotGoogleUserContentDotCom, false)) { in allowRunningInsecureContent()
571 if (EndsWith(resource_gurl.path(), kDotJS, false)) in allowRunningInsecureContent()
573 else if (EndsWith(resource_gurl.path(), kDotCSS, false)) in allowRunningInsecureContent()
575 else if (EndsWith(resource_gurl.path(), kDotSWF, false)) in allowRunningInsecureContent()
Dchrome_content_renderer_client.cc977 (EndsWith(app_url_host, "plus.google.com", false) || in IsNaClAllowed()
978 EndsWith(app_url_host, "plus.sandbox.google.com", false)) && in IsNaClAllowed()
992 (EndsWith(app_url_host, "talkgadget.google.com", false) || in IsNaClAllowed()
993 EndsWith(app_url_host, "plus.google.com", false) || in IsNaClAllowed()
994 EndsWith(app_url_host, "plus.sandbox.google.com", false)) && in IsNaClAllowed()
1473 (EndsWith(url_host, "talkgadget.google.com", false) || in AllowPepperMediaStreamAPI()
1474 EndsWith(url_host, "plus.google.com", false) || in AllowPepperMediaStreamAPI()
1475 EndsWith(url_host, "plus.sandbox.google.com", false)) && in AllowPepperMediaStreamAPI()
/external/chromium_org/components/plugins/renderer/
Dmobile_youtube_plugin.cc93 bool is_youtube = EndsWith(host, "youtube.com", true) || in IsYouTubeURL()
94 EndsWith(host, "youtube-nocookie.com", true); in IsYouTubeURL()
Dplugin_placeholder.cc126 if (EndsWith(width_str, "px", false)) { in HidePlugin()
133 if (EndsWith(height_str, "px", false)) { in HidePlugin()
/external/chromium_org/base/
Dversion.cc103 if (EndsWith(wildcard_string.c_str(), ".*", false)) in IsValidWildcardString()
122 if (!EndsWith(wildcard_string.c_str(), ".*", false)) { in CompareToWildcardString()
/external/chromium_org/dbus/
Dstring_util.cc42 if (value.size() > 1 && EndsWith(value, "/", kCaseSensitive)) in IsValidObjectPath()
/external/chromium_org/chrome/app/
Ddelay_load_hook_win.cc36 if (EndsWith(dll_name, kDelaySuffix, false)) { in OnPreLoadLibrary()
/external/chromium_org/net/http/
Dhttp_server_properties_impl.cc89 if (EndsWith(it->first.host(), canoncial_suffixes_[i], false)) { in InitializeAlternateProtocolServers()
224 if (EndsWith(server.host(), canoncial_suffixes_[i], false)) { in GetCanonicalSuffix()
299 if (EndsWith(server.host(), canoncial_suffixes_[i], false)) { in SetAlternateProtocol()
468 if (EndsWith(server.host(), canoncial_suffixes_[i], false)) { in GetCanonicalHost()
/external/protobuf/gtest/src/
Dgtest-filepath.cc263 return pathname_.EndsWith(kPathSeparatorString); in IsDirectory()
308 return pathname_.EndsWith(kPathSeparatorString) in RemoveTrailingPathSeparator()
/external/chromium_org/content/common/
Dset_process_title.cc62 if (EndsWith(title, kDeletedSuffix, true)) in SetProcessTitleFromCommandLine()
/external/chromium_org/content/browser/devtools/
Ddevtools_http_handler_impl.cc279 if (EndsWith(filename, ".html", false)) { in GetMimeType()
281 } else if (EndsWith(filename, ".css", false)) { in GetMimeType()
283 } else if (EndsWith(filename, ".js", false)) { in GetMimeType()
285 } else if (EndsWith(filename, ".png", false)) { in GetMimeType()
287 } else if (EndsWith(filename, ".gif", false)) { in GetMimeType()
289 } else if (EndsWith(filename, ".json", false)) { in GetMimeType()

12345