/external/chromium_org/content/browser/shared_worker/ |
H A D | shared_worker_instance_unittest.cc | 32 bool Matches(const SharedWorkerInstance& instance, function in class:content::SharedWorkerInstanceTest 35 return instance.Matches(GURL(url), 56 EXPECT_TRUE(Matches(instance1, "http://example.com/w.js", "")); 57 EXPECT_FALSE(Matches(instance1, "http://example.com/w2.js", "")); 58 EXPECT_FALSE(Matches(instance1, "http://example.net/w.js", "")); 59 EXPECT_FALSE(Matches(instance1, "http://example.net/w2.js", "")); 60 EXPECT_FALSE(Matches(instance1, "http://example.com/w.js", "name")); 61 EXPECT_FALSE(Matches(instance1, "http://example.com/w2.js", "name")); 62 EXPECT_FALSE(Matches(instance1, "http://example.net/w.js", "name")); 63 EXPECT_FALSE(Matches(instance [all...] |
H A D | shared_worker_instance.h | 38 bool Matches(const GURL& url, 42 bool Matches(const SharedWorkerInstance& other) const;
|
H A D | shared_worker_instance.cc | 38 bool SharedWorkerInstance::Matches(const GURL& match_url, function in class:content::SharedWorkerInstance 61 bool SharedWorkerInstance::Matches(const SharedWorkerInstance& other) const { function in class:content::SharedWorkerInstance 62 return Matches(other.url(),
|
/external/chromium_org/net/proxy/ |
H A D | proxy_bypass_rules_unittest.cc | 24 EXPECT_TRUE(rules.Matches(GURL("http://www.google.com"))); 25 EXPECT_TRUE(rules.Matches(GURL("ftp://www.google.com:99"))); 26 EXPECT_TRUE(rules.Matches(GURL("https://www.google.com:81"))); 29 EXPECT_FALSE(rules.Matches(GURL("http://foo.www.google.com"))); 30 EXPECT_FALSE(rules.Matches(GURL("http://xxx.google.com"))); 31 EXPECT_FALSE(rules.Matches(GURL("http://google.com"))); 32 EXPECT_FALSE(rules.Matches(GURL("http://www.google.com.baz.org"))); 44 EXPECT_TRUE(rules.Matches(GURL("http://www.google.com"))); 45 EXPECT_TRUE(rules.Matches(GURL("ftp://www.google.com:99"))); 46 EXPECT_TRUE(rules.Matches(GUR [all...] |
/external/llvm/unittests/Support/ |
H A D | RegexTest.cpp | 27 SmallVector<StringRef, 1> Matches; local 29 EXPECT_TRUE(r2.match("aa216b", &Matches)); 30 EXPECT_EQ(1u, Matches.size()); 31 EXPECT_EQ("216", Matches[0].str()); 34 EXPECT_TRUE(r3.match("9a:513b", &Matches)); 35 EXPECT_EQ(3u, Matches.size()); 36 EXPECT_EQ("9a:513", Matches[0].str()); 37 EXPECT_EQ("a", Matches[1].str()); 38 EXPECT_EQ("513", Matches[2].str()); 40 EXPECT_TRUE(r3.match("9:513b", &Matches)); 66 SmallVector<StringRef, 4> Matches; local [all...] |
/external/llvm/lib/TableGen/ |
H A D | StringMatcher.cpp | 24 StringMatcher::StringPair*> &Matches) { 25 assert(!Matches.empty()); 26 for (unsigned i = 0, e = Matches[0]->first.size(); i != e; ++i) { 28 char Letter = Matches[0]->first[i]; 30 for (unsigned str = 0, e = Matches.size(); str != e; ++str) 31 if (Matches[str]->first[i] != Letter) 35 return Matches[0]->first.size(); 44 EmitStringMatcherForChar(const std::vector<const StringPair*> &Matches, argument 46 assert(!Matches.empty() && "Must have at least one string to match!"); 51 if (CharNo == Matches[ 23 FindFirstNonCommonLetter(const std::vector<const StringMatcher::StringPair*> &Matches) argument [all...] |
/external/chromium_org/components/content_settings/core/common/ |
H A D | content_settings_pattern_unittest.cc | 62 EXPECT_TRUE(pattern.Matches(GURL("http://www.google.com"))); 63 EXPECT_TRUE(pattern.Matches(GURL("http://foo.www.google.com"))); 64 EXPECT_TRUE(pattern.Matches(GURL("http://www.google.com:80"))); 65 EXPECT_TRUE(pattern.Matches(GURL("http://www.google.com:81"))); 66 EXPECT_FALSE(pattern.Matches(GURL("https://mail.google.com"))); 67 EXPECT_TRUE(pattern.Matches(GURL("https://www.google.com"))); 70 EXPECT_TRUE(pattern.Matches(GURL("http://www.google.com"))); 71 EXPECT_TRUE(pattern.Matches(GURL("http://www.google.com:80"))); 72 EXPECT_TRUE(pattern.Matches(GURL("http://www.google.com:81"))); 75 EXPECT_TRUE(pattern.Matches(GUR [all...] |
/external/llvm/include/llvm/TableGen/ |
H A D | StringMatcher.h | 37 const std::vector<StringPair> &Matches; member in class:llvm::StringMatcher 43 : StrVariableName(strVariableName), Matches(matches), OS(os) {} 48 bool EmitStringMatcherForChar(const std::vector<const StringPair*> &Matches,
|
/external/easymock/src/org/easymock/internal/matchers/ |
H A D | Matches.java | 22 public class Matches implements IArgumentMatcher, Serializable {
class in inherits:IArgumentMatcher,Serializable 28 public Matches(String regex) {
method in class:Matches
|
/external/chromium_org/components/bookmarks/browser/ |
H A D | bookmark_index.h | 57 typedef std::vector<Match> Matches; typedef in class:bookmarks::BookmarkIndex 61 void SortMatches(const Matches& matches, Nodes* sorted_nodes) const; 75 Matches* matches); 83 Matches* matches); 95 const Matches& current_matches, 96 Matches* result);
|
/external/chromium_org/device/hid/ |
H A D | hid_device_filter_unittest.cc | 31 ASSERT_TRUE(filter.Matches(device_info_)); 37 ASSERT_TRUE(filter.Matches(device_info_)); 43 ASSERT_FALSE(filter.Matches(device_info_)); 50 ASSERT_TRUE(filter.Matches(device_info_)); 57 ASSERT_FALSE(filter.Matches(device_info_)); 63 ASSERT_TRUE(filter.Matches(device_info_)); 69 ASSERT_FALSE(filter.Matches(device_info_)); 76 ASSERT_TRUE(filter.Matches(device_info_)); 83 ASSERT_TRUE(filter.Matches(device_info_)); 90 ASSERT_FALSE(filter.Matches(device_info [all...] |
H A D | hid_device_filter.h | 25 bool Matches(const HidDeviceInfo& device_info) const;
|
/external/chromium_org/third_party/libjingle/source/talk/media/base/ |
H A D | codec_unittest.cc | 125 EXPECT_TRUE(c0.Matches(AudioCodec(95, "", 44100, 20000, 1, 0))); 126 EXPECT_TRUE(c0.Matches(AudioCodec(95, "", 44100, 20000, 0, 0))); 127 EXPECT_TRUE(c0.Matches(AudioCodec(95, "", 44100, 0, 0, 0))); 128 EXPECT_TRUE(c0.Matches(AudioCodec(95, "", 0, 0, 0, 0))); 129 EXPECT_FALSE(c0.Matches(AudioCodec(96, "", 44100, 20000, 1, 0))); 130 EXPECT_FALSE(c0.Matches(AudioCodec(95, "", 55100, 20000, 1, 0))); 131 EXPECT_FALSE(c0.Matches(AudioCodec(95, "", 44100, 30000, 1, 0))); 132 EXPECT_FALSE(c0.Matches(AudioCodec(95, "", 44100, 20000, 2, 0))); 133 EXPECT_FALSE(c0.Matches(AudioCodec(95, "", 55100, 30000, 2, 0))); 137 EXPECT_TRUE(c1.Matches(AudioCode [all...] |
/external/chromium_org/gpu/config/ |
H A D | gpu_test_config_unittest.cc | 86 TEST_F(GPUTestConfigTest, Matches) { 96 EXPECT_TRUE(config.Matches(config2)); 98 EXPECT_TRUE(config.Matches(config2)); 100 EXPECT_TRUE(config.Matches(config2)); 102 EXPECT_FALSE(config.Matches(config2)); 104 EXPECT_TRUE(config.Matches(config2)); 111 EXPECT_TRUE(config.Matches(config2)); 113 EXPECT_TRUE(config.Matches(config2)); 118 EXPECT_FALSE(config.Matches(config2)); 125 EXPECT_TRUE(config.Matches(config [all...] |
/external/llvm/lib/Support/ |
H A D | Regex.cpp | 59 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches){ argument 60 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; 80 if (Matches) { // match position requested 81 Matches->clear(); 86 Matches->push_back(StringRef()); 90 Matches->push_back(StringRef(String.data()+pm[i].rm_so, 100 SmallVector<StringRef, 8> Matches; local 106 if (!match(String, &Matches)) 111 std::string Res(String.begin(), Matches[0].begin()); 159 RefValue < Matches [all...] |
/external/chromium_org/third_party/leveldatabase/src/util/ |
H A D | bloom_test.cc | 69 bool Matches(const Slice& s) { function in class:leveldb::BloomTest 80 if (Matches(Key(i + 1000000000, buffer))) { 89 ASSERT_TRUE(! Matches("hello")); 90 ASSERT_TRUE(! Matches("world")); 96 ASSERT_TRUE(Matches("hello")); 97 ASSERT_TRUE(Matches("world")); 98 ASSERT_TRUE(! Matches("x")); 99 ASSERT_TRUE(! Matches("foo")); 134 ASSERT_TRUE(Matches(Key(i, buffer)))
|
/external/mockito/src/org/mockito/internal/matchers/ |
H A D | Matches.java | 14 public class Matches extends ArgumentMatcher<Object> implements Serializable { class in inherits:ArgumentMatcher,Serializable 19 public Matches(String regex) { method in class:Matches
|
/external/chromium_org/device/usb/ |
H A D | usb_device_filter_unittest.cc | 64 ASSERT_TRUE(filter.Matches(android_phone_)); 70 ASSERT_TRUE(filter.Matches(android_phone_)); 76 ASSERT_FALSE(filter.Matches(android_phone_)); 83 ASSERT_TRUE(filter.Matches(android_phone_)); 90 ASSERT_FALSE(filter.Matches(android_phone_)); 96 ASSERT_TRUE(filter.Matches(android_phone_)); 102 ASSERT_FALSE(filter.Matches(android_phone_)); 109 ASSERT_TRUE(filter.Matches(android_phone_)); 116 ASSERT_FALSE(filter.Matches(android_phone_)); 124 ASSERT_TRUE(filter.Matches(android_phone [all...] |
/external/chromium_org/components/url_matcher/ |
H A D | substring_set_matcher.h | 42 // Matches |text| against all registered StringPatterns. Stores the IDs 86 typedef std::set<StringPattern::ID> Matches; typedef in class:url_matcher::SubstringSetMatcher::AhoCorasickNode 103 void AddMatches(const Matches& matches); 104 const Matches& matches() const { return matches_; } 114 Matches matches_;
|
H A D | url_matcher_unittest.cc | 150 bool Matches(const URLMatcherCondition& condition, std::string text) { 250 EXPECT_TRUE(Matches(factory.CreateHostPrefixCondition(std::string()), url)); 251 EXPECT_TRUE(Matches(factory.CreateHostPrefixCondition("www.goog"), url)); 253 Matches(factory.CreateHostPrefixCondition("www.google.com"), url)); 255 Matches(factory.CreateHostPrefixCondition(".www.google.com"), url)); 256 EXPECT_FALSE(Matches(factory.CreateHostPrefixCondition("google.com"), url)); 258 Matches(factory.CreateHostPrefixCondition("www.google.com/"), url)); 259 EXPECT_FALSE(Matches(factory.CreateHostPrefixCondition("webhp"), url)); 261 EXPECT_TRUE(Matches(factory.CreateHostSuffixCondition(std::string()), url)); 262 EXPECT_TRUE(Matches(factor [all...] |
/external/chromium_org/net/cert/ |
H A D | x509_cert_types_unittest.cc | 25 ASSERT_TRUE(spamco.Matches(spamco)); 28 EXPECT_FALSE(bogus.Matches(spamco)); 29 EXPECT_FALSE(spamco.Matches(bogus)); 32 EXPECT_TRUE(bogus.Matches(spamco)); 33 EXPECT_TRUE(spamco.Matches(bogus)); 37 EXPECT_FALSE(bogus.Matches(spamco)); 38 EXPECT_FALSE(spamco.Matches(bogus)); 42 EXPECT_TRUE(bogus.Matches(spamco)); 43 EXPECT_TRUE(spamco.Matches(bogus)); 46 EXPECT_FALSE(bogus.Matches(spamc [all...] |
/external/chromium_org/tools/gn/ |
H A D | pattern_unittest.cc | 18 TEST(Pattern, Matches) {
|
/external/clang/utils/TableGen/ |
H A D | ClangCommentHTMLTagsEmitter.cpp | 25 std::vector<StringMatcher::StringPair> Matches; local 28 Matches.push_back(StringMatcher::StringPair(Spelling, "return true;")); 34 StringMatcher("Name", Matches, OS).Emit();
|
/external/chromium_org/media/base/ |
H A D | text_track_config.cc | 23 bool TextTrackConfig::Matches(const TextTrackConfig& config) const { function in class:media::TextTrackConfig
|
/external/chromium_org/sync/internal_api/public/util/ |
H A D | experiments.h | 35 bool Matches(const Experiments& rhs) { function in struct:syncer::Experiments
|