/external/chromium/net/proxy/ |
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(GURL("https://a.google.com:81"))) [all...] |
/external/chromium_org/net/proxy/ |
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(GURL("https://a.google.com:81"))) [all...] |
/external/llvm/unittests/Support/ |
RegexTest.cpp | 27 SmallVector<StringRef, 1> Matches; 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)); [all...] |
/external/llvm/lib/TableGen/ |
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, 46 assert(!Matches.empty() && "Must have at least one string to match!"); 49 // If we have verified that the entire string matches, we're done: output th [all...] |
/external/chromium/chrome/browser/content_settings/ |
content_settings_pattern_unittest.cc | 22 EXPECT_TRUE(ContentSettingsPattern("[*.]example.com").Matches( 24 EXPECT_TRUE(ContentSettingsPattern("[*.]example.com").Matches( 26 EXPECT_TRUE(ContentSettingsPattern("www.example.com").Matches( 28 EXPECT_TRUE(ContentSettingsPattern("file:///tmp/test.html").Matches( 30 EXPECT_FALSE(ContentSettingsPattern("").Matches( 32 EXPECT_FALSE(ContentSettingsPattern("[*.]example.com").Matches( 34 EXPECT_FALSE(ContentSettingsPattern("example.com").Matches( 36 EXPECT_FALSE(ContentSettingsPattern("file:///tmp/test.html").Matches( 38 EXPECT_FALSE(ContentSettingsPattern("file:///tmp/test.html").Matches(
|
/external/chromium/testing/gmock/test/ |
gmock-matchers_test.cc | 99 using testing::Matches; 192 // Returns the reason why x matches, or doesn't match, m. 271 EXPECT_TRUE(m.Matches(2)); 272 EXPECT_FALSE(m.Matches(3)); 286 EXPECT_TRUE(m.Matches(4)); 287 EXPECT_FALSE(m.Matches(5)); 293 EXPECT_TRUE(m1.Matches(5)); 294 EXPECT_FALSE(m1.Matches(6)); 300 EXPECT_TRUE(m1.Matches(NULL)); 302 EXPECT_FALSE(m1.Matches(&n)) [all...] |
/external/chromium_org/third_party/libjingle/source/talk/media/base/ |
codec_unittest.cc | 85 EXPECT_TRUE(c0.Matches(AudioCodec(95, "", 44100, 20000, 1, 0))); 86 EXPECT_TRUE(c0.Matches(AudioCodec(95, "", 44100, 20000, 0, 0))); 87 EXPECT_TRUE(c0.Matches(AudioCodec(95, "", 44100, 0, 0, 0))); 88 EXPECT_TRUE(c0.Matches(AudioCodec(95, "", 0, 0, 0, 0))); 89 EXPECT_FALSE(c0.Matches(AudioCodec(96, "", 44100, 20000, 1, 0))); 90 EXPECT_FALSE(c0.Matches(AudioCodec(95, "", 55100, 20000, 1, 0))); 91 EXPECT_FALSE(c0.Matches(AudioCodec(95, "", 44100, 30000, 1, 0))); 92 EXPECT_FALSE(c0.Matches(AudioCodec(95, "", 44100, 20000, 2, 0))); 93 EXPECT_FALSE(c0.Matches(AudioCodec(95, "", 55100, 30000, 2, 0))); 97 EXPECT_TRUE(c1.Matches(AudioCodec(96, "A", 0, 0, 0, 0))) [all...] |
/external/chromium_org/chrome/common/ |
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(GURL("https://www.google.com"))) [all...] |
/external/llvm/include/llvm/TableGen/ |
StringMatcher.h | 29 /// not exit this code fragment. If nothing matches, execution falls through. 36 const std::vector<StringPair> &Matches; 41 const std::vector<StringPair> &matches, raw_ostream &os) 42 : StrVariableName(strVariableName), Matches(matches), OS(os) {} 48 bool EmitStringMatcherForChar(const std::vector<const StringPair*> &Matches,
|
/external/chromium_org/chrome/browser/chromeos/ |
prerender_condition_network.cc | 24 !default_network->Matches(NetworkTypePattern::Mobile());
|
/external/easymock/src/org/easymock/internal/matchers/ |
Matches.java | 22 public class Matches implements IArgumentMatcher, Serializable {
28 public Matches(String regex) {
32 public boolean matches(Object actual) {
method in class:Matches 33 return (actual instanceof String) && ((String) actual).matches(regex);
37 buffer.append("matches(\"" + regex.replaceAll("\\\\", "\\\\\\\\")
|
/external/chromium/third_party/libjingle/source/talk/session/phone/ |
codec.cc | 35 bool AudioCodec::Matches(int payload, const std::string& nm) const { 40 bool AudioCodec::Matches(const AudioCodec& codec) const { 47 return Matches(codec.id, codec.name) && 61 bool VideoCodec::Matches(int payload, const std::string& nm) const { 66 bool VideoCodec::Matches(const VideoCodec& codec) const { 68 return Matches(codec.id, codec.name);
|
cryptoparams.h | 42 bool Matches(const CryptoParams& params) const {
|
/external/chromium_org/gpu/config/ |
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(config2)) [all...] |
/external/llvm/lib/Support/ |
Regex.cpp | 52 /// matches it contains. 57 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches){ 58 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; 78 if (Matches) { // match position requested 79 Matches->clear(); 84 Matches->push_back(StringRef()); 88 Matches->push_back(StringRef(String.data()+pm[i].rm_so, 98 SmallVector<StringRef, 8> Matches; 104 if (!match(String, &Matches)) 109 std::string Res(String.begin(), Matches[0].begin()) [all...] |
/external/chromium_org/third_party/leveldatabase/src/util/ |
bloom_test.cc | 69 bool Matches(const Slice& s) { 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/chromium_org/components/url_matcher/ |
url_matcher_unittest.cc | 94 // matches = {0} --> matcher did not indicate that m1 was a match. 98 // matches = {0, 1} --> matcher did indicate that m1 was a match. 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)) [all...] |
substring_set_matcher.h | 42 // Matches |text| against all registered StringPatterns. Stores the IDs 43 // of matching patterns in |matches|. |matches| is not cleared before adding 46 std::set<StringPattern::ID>* matches) const; 57 // IDs that are used to report matches. 60 // any registered pattern matches a text at the beginning of the text (i.e. 65 // would report all pattern IDs associated with the trie nodes as matches. 67 // As we are not looking for all prefix matches but all substring matches, 86 typedef std::set<StringPattern::ID> Matches; 104 const Matches& matches() const { return matches_; } function in class:url_matcher::SubstringSetMatcher::AhoCorasickNode [all...] |
/external/chromium/chrome/browser/bookmarks/ |
bookmark_index.h | 59 typedef std::vector<Match> Matches; 62 // Used to sort Matches in decreasing order of typed count. 66 // Extracts |matches.nodes| into NodeTypedCountPairs and sorts the pairs in 68 void SortMatches(const Matches& matches, 80 // count so that the best matches will always be added to the results. 86 // Add |node| to |results| if the node matches the query. 92 // Populates |matches| for the specified term. If |first_term| is true, this 97 Matches* matches); [all...] |
/external/chromium_org/chrome/browser/bookmarks/ |
bookmark_index.h | 57 typedef std::vector<Match> Matches; 60 // Used to sort Matches in decreasing order of typed count. 64 // Extracts |matches.nodes| into NodeTypedCountPairs, sorts the pairs in 65 // decreasing order of typed count, and then de-dupes the matches. 66 void SortMatches(const Matches& matches, 78 // count so that the best matches will always be added to the results. 84 // Add |node| to |results| if the node matches the query. 90 // Populates |matches| for the specified term. If |first_term| is true, this 95 Matches* matches) [all...] |
/external/mockito/src/org/mockito/internal/matchers/ |
Matches.java | 14 public class Matches extends ArgumentMatcher<Object> implements Serializable { 19 public Matches(String regex) { 23 public boolean matches(Object actual) { method in class:Matches 24 return (actual instanceof String) && ((String) actual).matches(regex); 28 description.appendText("matches(\"" + regex.replaceAll("\\\\", "\\\\\\\\")
|
/external/chromium_org/sync/internal_api/public/util/ |
experiments.h | 21 bool Matches(const Experiments& rhs) {
|
/external/chromium_org/net/cert/ |
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(spamco)) [all...] |
/external/chromium_org/tools/gn/ |
pattern_unittest.cc | 18 TEST(Pattern, Matches) { 20 // Empty pattern matches only empty string. 23 // Exact matches.
|
/external/clang/utils/TableGen/ |
ClangCommentHTMLTagsEmitter.cpp | 25 std::vector<StringMatcher::StringPair> Matches; 30 Matches.push_back(StringMatcher::StringPair(Spelling, "return true;")); 36 StringMatcher("Name", Matches, OS).Emit();
|