/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...] |
proxy_bypass_rules.h | 18 // if it matches any one of these rules. 27 // Returns true if |url| matches the rule. 28 virtual bool Matches(const GURL& url) const = 0; 56 // Returns true if |url| matches any of the proxy bypass rules. 57 bool Matches(const GURL& url) const; 76 // Adds a rule that matches a URL when all of the following are true: 77 // (a) The URL's scheme matches |optional_scheme|, if 79 // (b) The URL's hostname matches |hostname_pattern|. 80 // (c) The URL's (effective) port number matches |optional_port| if 88 // This matches IE's interpretation of th [all...] |
proxy_config_service_common_unittest.h | 29 // Call this within an EXPECT_TRUE(), to assert that |rules| matches 31 ::testing::AssertionResult Matches(
|
proxy_bypass_rules.cc | 27 virtual bool Matches(const GURL& url) const { 63 virtual bool Matches(const GURL& url) const { 95 virtual bool Matches(const GURL& url) const { 169 bool ProxyBypassRules::Matches(const GURL& url) const { 171 if ((*it)->Matches(url))
|
proxy_config_service_win_unittest.cc | 198 EXPECT_TRUE(tests[i].proxy_rules.Matches(config.proxy_rules()));
|
/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/utils/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...] |
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/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(
|
content_settings_pattern.h | 20 // Returns a pattern that matches the host of this URL and all subdomains. 23 // Returns a pattern that matches exactly this URL. 33 // - [*.]domain.tld (matches domain.tld and all sub-domains) 34 // - host (matches an exact hostname) 35 // - a.b.c.d (matches an exact IPv4 ip) 36 // - [a:b:c:d:e:f:g:h] (matches an exact IPv6 ip) 40 // True if |url| matches this pattern. 41 bool Matches(const GURL& url) const;
|
/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...] |
gmock-generated-matchers_test.cc | 98 // Returns the reason why x matches, or doesn't match, m. 169 EXPECT_TRUE(m.Matches(Tuple3('a', 1, 2))); 170 EXPECT_FALSE(m.Matches(Tuple3('b', 2, 2))); 176 EXPECT_TRUE(m.Matches(Tuple3('a', 'b', 2))); 177 EXPECT_FALSE(m.Matches(Tuple3('b', 'b', 2))); 339 EXPECT_EQ("whose element #0 matches, which is 9 more than 1,\n" 340 "and whose element #2 matches, which is 98 more than 2", 437 EXPECT_FALSE(m.Matches(test_vector)); 445 EXPECT_FALSE(m.Matches(test_vector)); 456 EXPECT_FALSE(m.Matches(test_vector)) [all...] |
gmock_link_test.h | 608 EXPECT_TRUE(m.Matches(helper)); 611 EXPECT_TRUE(m2.Matches(&helper)); 619 EXPECT_TRUE(m.Matches(helper)); 622 EXPECT_TRUE(m2.Matches(&helper)); 628 EXPECT_TRUE(m.Matches(NULL)); 636 EXPECT_TRUE(m.Matches(&n)); 642 EXPECT_TRUE(m.Matches(NULL)); 648 EXPECT_TRUE(m.Matches(1)); 654 EXPECT_TRUE(m.Matches(1)); 660 EXPECT_FALSE(m.Matches(1)) [all...] |
/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 {
|
codec.h | 53 bool Matches(int payload, const std::string& nm) const; 54 bool Matches(const AudioCodec& codec) const; 103 bool Matches(int payload, const std::string& nm) const; 104 bool Matches(const VideoCodec& codec) const;
|
/external/llvm/lib/Support/ |
Regex.cpp | 50 /// matches it contains. 55 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches){ 56 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; 76 if (Matches) { // match position requested 77 Matches->clear(); 82 Matches->push_back(StringRef()); 86 Matches->push_back(StringRef(String.data()+pm[i].rm_so, 96 SmallVector<StringRef, 8> Matches; 102 if (!match(String, &Matches)) 107 std::string Res(String.begin(), Matches[0].begin()) [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...] |
bookmark_index.cc | 84 Matches matches; 86 if (!GetBookmarksWithTitleMatchingTerm(terms[i], i == 0, &matches)) 91 SortMatches(matches, &node_typed_counts); 95 // matches and so this shouldn't be performance critical. 101 // so that the best matches will always be included in the results. The loop 104 // best matches. 110 void BookmarkIndex::SortMatches(const Matches& matches, 118 for (Matches::const_iterator i = matches.begin(); i != matches.end(); ++i [all...] |
/external/llvm/include/llvm/Support/ |
Regex.h | 32 /// expressions and '.' never match newline. A ^ anchor matches the 34 /// function, and the $ anchor matches the null string before any 50 /// matches it contains. The number filled in by match will include this 54 /// matches - Match the regex against a given \arg String. 56 /// \param Matches - If given, on a successful match this will be filled in 61 bool match(StringRef String, SmallVectorImpl<StringRef> *Matches = 0);
|
/external/chromium/chrome/browser/history/ |
query_parser.h | 42 // Returns true if this node matches the specified text. If exact is true, 45 virtual bool Matches(const string16& word, bool exact) const = 0; 47 // Returns true if this node matches at least one of the words in words. If 48 // the node matches at least one word, an entry is added to match_positions 90 // Returns true if the string text matches the query nodes created by a call
|
query_parser.cc | 34 // Coalesces match positions in |matches| after index that intersect the match 37 Snippet::MatchPositions* matches) { 38 Snippet::MatchPosition& mp = (*matches)[index]; 39 for (Snippet::MatchPositions::iterator i = matches->begin() + index + 1; 40 i != matches->end(); ) { 43 i = matches->erase(i); 50 // Sorts the match positions in |matches| by their first index, then coalesces 52 void CoalseAndSortMatchPositions(Snippet::MatchPositions* matches) { 53 std::sort(matches->begin(), matches->end(), &CompareMatchPosition) [all...] |
/external/chromium/net/http/ |
http_auth_filter.cc | 50 return rules_.Matches(url);
|
/external/chromium/net/base/ |
x509_cert_types_mac_unittest.cc | 223 ASSERT_TRUE(spamco.Matches(spamco)); 226 EXPECT_FALSE(bogus.Matches(spamco)); 227 EXPECT_FALSE(spamco.Matches(bogus)); 230 EXPECT_TRUE(bogus.Matches(spamco)); 231 EXPECT_TRUE(spamco.Matches(bogus)); 235 EXPECT_FALSE(bogus.Matches(spamco)); 236 EXPECT_FALSE(spamco.Matches(bogus)); 240 EXPECT_TRUE(bogus.Matches(spamco)); 241 EXPECT_TRUE(spamco.Matches(bogus)); 244 EXPECT_FALSE(bogus.Matches(spamco)) [all...] |