Home
last modified time | relevance | path

Searched refs:rules (Results 1 – 25 of 1616) sorted by relevance

12345678910>>...65

/external/chromium_org/net/proxy/
Dproxy_bypass_rules_unittest.cc17 ProxyBypassRules rules; in TEST() local
18 rules.ParseFromString("wWw.gOogle.com"); in TEST()
19 ASSERT_EQ(1u, rules.rules().size()); in TEST()
20 EXPECT_EQ("www.google.com", rules.rules()[0]->ToString()); in TEST()
24 EXPECT_TRUE(rules.Matches(GURL("http://www.google.com"))); in TEST()
25 EXPECT_TRUE(rules.Matches(GURL("ftp://www.google.com:99"))); in TEST()
26 EXPECT_TRUE(rules.Matches(GURL("https://www.google.com:81"))); in TEST()
29 EXPECT_FALSE(rules.Matches(GURL("http://foo.www.google.com"))); in TEST()
30 EXPECT_FALSE(rules.Matches(GURL("http://xxx.google.com"))); in TEST()
31 EXPECT_FALSE(rules.Matches(GURL("http://google.com"))); in TEST()
[all …]
Dproxy_script_decider_unittest.cc100 explicit RuleBasedProxyScriptFetcher(const Rules* rules) in RuleBasedProxyScriptFetcher() argument
101 : rules_(rules), request_context_(NULL) {} in RuleBasedProxyScriptFetcher()
181 Rules rules; in TEST() local
182 RuleBasedProxyScriptFetcher fetcher(&rules); in TEST()
188 Rules::Rule rule = rules.AddSuccessRule("http://custom/proxy.pac"); in TEST()
217 Rules rules; in TEST() local
218 RuleBasedProxyScriptFetcher fetcher(&rules); in TEST()
224 rules.AddFailDownloadRule("http://custom/proxy.pac"); in TEST()
253 Rules rules; in TEST() local
254 RuleBasedProxyScriptFetcher fetcher(&rules); in TEST()
[all …]
Dproxy_config_service_common_unittest.cc64 bypass_rules.rules().begin(); in FlattenProxyBypass()
65 it != bypass_rules.rules().end(); ++it) { in FlattenProxyBypass()
96 const ProxyConfig::ProxyRules& rules) const { in Matches()
100 if (rules.type != type) { in Matches()
102 << type << " but was: " << rules.type; in Matches()
107 rules.single_proxies, &failure_details, &failed); in Matches()
109 rules.proxies_for_http, &failure_details, in Matches()
112 rules.proxies_for_https, &failure_details, in Matches()
115 rules.fallback_proxies, &failure_details, &failed); in Matches()
117 std::string actual_flattened_bypass = FlattenProxyBypass(rules.bypass_rules); in Matches()
[all …]
Dproxy_resolver_v8_tracing_unittest.cc283 host_resolver.rules()->AddRuleForAddressFamily( in TEST_F()
285 host_resolver.rules() in TEST_F()
287 host_resolver.rules()->AddSimulatedFailure("host2"); in TEST_F()
288 host_resolver.rules()->AddRule("host3", "166.155.144.33"); in TEST_F()
289 host_resolver.rules()->AddRule("host5", "166.155.144.55"); in TEST_F()
290 host_resolver.rules()->AddSimulatedFailure("host6"); in TEST_F()
291 host_resolver.rules()->AddRuleForAddressFamily( in TEST_F()
293 host_resolver.rules()->AddRule("*", "133.122.100.200"); in TEST_F()
360 host_resolver.rules()->AddRule("foopy", "166.155.144.11"); in TEST_F()
361 host_resolver.rules()->AddRule("*", "122.133.144.155"); in TEST_F()
[all …]
/external/chromium_org/native_client_sdk/src/build_tools/tests/
Dverify_filelist_test.py18 rules = verify_filelist.Rules('test', platform, rules_contents)
19 rules.VerifyDirectoryList(directory_list)
24 rules = """\
31 Verify('linux', rules, dirlist)
34 rules = 'foo/*'
36 Verify('linux', rules, dirlist)
39 rules = 'dir/${PLATFORM}/blah'
41 Verify('linux', rules, dirlist)
44 rules = 'dir/${PLATFORM}/*'
46 Verify('linux', rules, dirlist)
[all …]
/external/chromium_org/net/tools/tld_cleanup/
Dtld_cleanup_util_unittest.cc28 RuleMap rules; in TEST() local
29 NormalizeResult result = NormalizeDataToRuleMap(data, &rules); in TEST()
31 ASSERT_EQ(2U, rules.size()); in TEST()
32 RuleMap::const_iterator foo_iter = rules.find("foo"); in TEST()
33 ASSERT_FALSE(rules.end() == foo_iter); in TEST()
37 RuleMap::const_iterator bar_iter = rules.find("bar"); in TEST()
38 ASSERT_FALSE(rules.end() == bar_iter); in TEST()
48 RuleMap rules; in TEST() local
49 NormalizeResult result = NormalizeDataToRuleMap(data, &rules); in TEST()
51 ASSERT_EQ(2U, rules.size()); in TEST()
[all …]
Dtld_cleanup_util.cc30 bool WriteRules(const RuleMap& rules, const base::FilePath& outfile) { in WriteRules() argument
46 for (RuleMap::const_iterator i = rules.begin(); i != rules.end(); ++i) { in WriteRules()
133 RuleMap* rules) { in NormalizeDataToRuleMap() argument
134 CHECK(rules); in NormalizeDataToRuleMap()
180 CHECK(rules->find(domain) == rules->end()) in NormalizeDataToRuleMap()
183 (*rules)[domain] = rule; in NormalizeDataToRuleMap()
225 if (rules->find(iter->first) == rules->end()) { in NormalizeDataToRuleMap()
226 (*rules)[iter->first] = iter->second; in NormalizeDataToRuleMap()
235 RuleMap rules; in NormalizeFile() local
243 NormalizeResult result = NormalizeDataToRuleMap(data, &rules); in NormalizeFile()
[all …]
/external/chromium_org/net/base/
Dhost_mapping_rules_unittest.cc15 HostMappingRules rules; in TEST() local
16 rules.SetRulesFromString( in TEST()
20 EXPECT_FALSE(rules.RewriteHost(&host_port)); in TEST()
25 EXPECT_TRUE(rules.RewriteHost(&host_port)); in TEST()
30 EXPECT_TRUE(rules.RewriteHost(&host_port)); in TEST()
35 EXPECT_FALSE(rules.RewriteHost(&host_port)); in TEST()
41 HostMappingRules rules; in TEST() local
42 rules.SetRulesFromString( in TEST()
47 EXPECT_FALSE(rules.RewriteHost(&host_port)); in TEST()
53 EXPECT_TRUE(rules.RewriteHost(&host_port)); in TEST()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/css/
DRuleSetTest.cpp45 const TerminatedArray<RuleData>* rules = ruleSet.shadowPseudoElementRules(str); in TEST() local
46 ASSERT_EQ(1u, rules->size()); in TEST()
47 ASSERT_EQ(str, rules->at(0).selector().value()); in TEST()
57 const TerminatedArray<RuleData>* rules = ruleSet.idRules(str); in TEST() local
58 ASSERT_EQ(1u, rules->size()); in TEST()
59 ASSERT_EQ(str, rules->at(0).selector().value()); in TEST()
69 const TerminatedArray<RuleData>* rules = ruleSet.tagRules(str); in TEST() local
70 ASSERT_EQ(1u, rules->size()); in TEST()
71 ASSERT_EQ(str, rules->at(0).selector().tagQName().localName()); in TEST()
82 const TerminatedArray<RuleData>* rules = ruleSet.idRules(str); in TEST() local
[all …]
/external/chromium_org/chrome/browser/chromeos/
Dui_proxy_config.cc45 void UIProxyConfig::SetBypassRules(const net::ProxyBypassRules& rules) { in SetBypassRules() argument
51 bypass_rules = rules; in SetBypassRules()
56 const net::ProxyConfig::ProxyRules& rules = net_config.proxy_rules(); in FromNetProxyConfig() local
57 switch (rules.type) { in FromNetProxyConfig()
71 if (rules.single_proxies.IsEmpty()) in FromNetProxyConfig()
74 single_proxy.server = rules.single_proxies.Get(); in FromNetProxyConfig()
75 bypass_rules = rules.bypass_rules; in FromNetProxyConfig()
79 if (rules.proxies_for_http.IsEmpty() && in FromNetProxyConfig()
80 rules.proxies_for_https.IsEmpty() && in FromNetProxyConfig()
81 rules.proxies_for_ftp.IsEmpty() && in FromNetProxyConfig()
[all …]
/external/icu/icu4c/source/i18n/
Dcollationruleparser.cpp61 rules(NULL), baseData(base), settings(NULL), in CollationRuleParser()
91 rules = &ruleString; in parse()
94 while(ruleIndex < rules->length()) { in parse()
95 UChar c = rules->charAt(ruleIndex); in parse()
136 if(ruleIndex < rules->length() && rules->charAt(ruleIndex) == 0x23) { in parseRuleChain()
179 if(rules->compare(i, BEFORE_LENGTH, BEFORE, 0, BEFORE_LENGTH) == 0 && in parseResetAndPosition()
180 (j = i + BEFORE_LENGTH) < rules->length() && in parseResetAndPosition()
181 PatternProps::isWhiteSpace(rules->charAt(j)) && in parseResetAndPosition()
182 ((j = skipWhiteSpace(j + 1)) + 1) < rules->length() && in parseResetAndPosition()
183 0x31 <= (c = rules->charAt(j)) && c <= 0x33 && in parseResetAndPosition()
[all …]
Dnfrs.cpp123 , rules(0) in NFRuleSet()
194 rules.deleteAll(); in parseRules()
207 NFRule::makeRules(currentDescription, this, rules.last(), owner, rules, status); in parseRules()
221 while (i < rules.size()) { in parseRules()
222 NFRule* rule = rules[i]; in parseRules()
244 negativeNumberRule = rules.remove(i); in parseRules()
253 fractionRules[0] = rules.remove(i); in parseRules()
262 fractionRules[1] = rules.remove(i); in parseRules()
271 fractionRules[2] = rules.remove(i); in parseRules()
317 if (rules.size() == rhs.rules.size() && in operator ==()
[all …]
/external/deqp/modules/egl/
DteglChooseConfigReference.cpp205 std::map<EGLenum, AttribRule> rules; in initAttribRules() local
208rules[EGL_BUFFER_SIZE] = AttribRule(EGL_BUFFER_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SMA… in initAttribRules()
209rules[EGL_RED_SIZE] = AttribRule(EGL_RED_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECIAL… in initAttribRules()
210rules[EGL_GREEN_SIZE] = AttribRule(EGL_GREEN_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECI… in initAttribRules()
211rules[EGL_BLUE_SIZE] = AttribRule(EGL_BLUE_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECIA… in initAttribRules()
212rules[EGL_LUMINANCE_SIZE] = AttribRule(EGL_LUMINANCE_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER… in initAttribRules()
213rules[EGL_ALPHA_SIZE] = AttribRule(EGL_ALPHA_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECI… in initAttribRules()
214rules[EGL_ALPHA_MASK_SIZE] = AttribRule(EGL_ALPHA_MASK_SIZE, 0, CRITERIA_AT_LEAST, SORTORD… in initAttribRules()
215rules[EGL_BIND_TO_TEXTURE_RGB] = AttribRule(EGL_BIND_TO_TEXTURE_RGB, EGL_DONT_CARE, CRITERIA_EX… in initAttribRules()
216rules[EGL_BIND_TO_TEXTURE_RGBA] = AttribRule(EGL_BIND_TO_TEXTURE_RGBA, EGL_DONT_CARE, CRITERIA_… in initAttribRules()
[all …]
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/
DTestSuite.java36 protected List<Rule> rules ; field in TestSuite
44 rules = new ArrayList<Rule>(); in TestSuite()
54 rules.add(currentRule); in addRule()
59 for(Rule r: rules) { in hasRule()
68 return rules.size(); in getRuleCount()
72 rules.clear(); in setRules()
73 rules.addAll(newRules); in setRules()
82 public Rule getRule(int index) { return rules.get(index); } in getRule()
89 for(Rule rule: rules) { in getRule()
98 public List getRulesForStringTemplate() {return rules;} in getRulesForStringTemplate()
/external/chromium_org/extensions/browser/api/declarative/
Drules_registry.cc32 const std::vector<linked_ptr<extensions::RulesRegistry::Rule> >& rules) { in RulesToValue()
34 for (size_t i = 0; i < rules.size(); ++i) in RulesToValue()
35 list->Append(rules[i]->ToValue().release()); in RulesToValue()
41 std::vector<linked_ptr<extensions::RulesRegistry::Rule> > rules; in RulesFromValue() local
45 return rules; in RulesFromValue()
47 rules.reserve(list->GetSize()); in RulesFromValue()
55 rules.push_back(rule); in RulesFromValue()
58 return rules; in RulesFromValue()
93 const std::vector<linked_ptr<Rule> >& rules) { in AddRulesNoFill()
98 rules.begin(); i != rules.end(); ++i) { in AddRulesNoFill()
[all …]
/external/bison/src/
Dgram.c37 rule *rules = NULL; variable
164 int length = rule_rhs_length (&rules[r]); in ritem_longest_rhs()
183 if (filter && !filter (&rules[r])) in grammar_rules_partial_print()
187 else if (previous_lhs && previous_lhs != rules[r].lhs) in grammar_rules_partial_print()
190 rule_lhs_print (&rules[r], previous_lhs, out); in grammar_rules_partial_print()
191 rule_rhs_print (&rules[r], out); in grammar_rules_partial_print()
192 previous_lhs = rules[r].lhs; in grammar_rules_partial_print()
217 if (rule_useless_in_grammar_p (&rules[r])) in grammar_rules_print_xml()
219 else if (rule_useless_in_parser_p (&rules[r])) in grammar_rules_print_xml()
225 rules[r].number, usefulness); in grammar_rules_print_xml()
[all …]
/external/chromium_org/chrome/browser/extensions/api/content_settings/
Dcontent_settings_store_unittest.cc68 std::vector<content_settings::Rule>* rules) { in GetSettingsForOneTypeFromStore() argument
69 rules->clear(); in GetSettingsForOneTypeFromStore()
73 rules->push_back(rule_iterator->Next()); in GetSettingsForOneTypeFromStore()
194 std::vector<content_settings::Rule> rules; in TEST_F() local
196 store(), CONTENT_SETTINGS_TYPE_COOKIES, std::string(), incognito, &rules); in TEST_F()
197 ASSERT_EQ(0u, rules.size()); in TEST_F()
213 store(), CONTENT_SETTINGS_TYPE_COOKIES, std::string(), incognito, &rules); in TEST_F()
214 ASSERT_EQ(1u, rules.size()); in TEST_F()
215 CheckRule(rules[0], pattern, pattern, CONTENT_SETTING_ALLOW); in TEST_F()
231 store(), CONTENT_SETTINGS_TYPE_COOKIES, std::string(), incognito, &rules); in TEST_F()
[all …]
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/proxy_configuration/test/
Dproxy_form_controller_test.js215 rules: {}, property
225 rules: {}, property
235 rules: {}, property
245 rules: {}, property
255 rules: {}, property
266 rules: { property
283 rules: {}, property
294 rules: { property
316 rules: { property
458 this.assertEqual('http', result.rules.singleProxy.scheme);
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcg7coll.c202 static const char rules[] = "& Z < p, P"; in TestDemo1() local
203 int32_t len=(int32_t)strlen(rules); in TestDemo1()
204 UChar temp[sizeof(rules)]; in TestDemo1()
206 u_uastrcpy(temp, rules); in TestDemo1()
233 static const char rules[] = "& C < ch , cH, Ch, CH"; in TestDemo2() local
234 int32_t len=(int32_t)strlen(rules); in TestDemo2()
235 UChar temp[sizeof(rules)]; in TestDemo2()
237 u_uastrcpy(temp, rules); in TestDemo2()
262 static const char rules[] = "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'"; in TestDemo3() local
263 int32_t len=(int32_t)strlen(rules); in TestDemo3()
[all …]
/external/chromium_org/third_party/icu/source/test/cintltst/
Dcg7coll.c191 static const char rules[] = "& Z < p, P"; in TestDemo1() local
192 int32_t len=(int32_t)strlen(rules); in TestDemo1()
193 UChar temp[sizeof(rules)]; in TestDemo1()
195 u_uastrcpy(temp, rules); in TestDemo1()
222 static const char rules[] = "& C < ch , cH, Ch, CH"; in TestDemo2() local
223 int32_t len=(int32_t)strlen(rules); in TestDemo2()
224 UChar temp[sizeof(rules)]; in TestDemo2()
226 u_uastrcpy(temp, rules); in TestDemo2()
251 static const char rules[] = "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'"; in TestDemo3() local
252 int32_t len=(int32_t)strlen(rules); in TestDemo3()
[all …]
/external/chromium_org/third_party/icu/source/i18n/
Dnfrs.cpp123 , rules(0) in NFRuleSet()
194 rules.deleteAll(); in parseRules()
207 NFRule::makeRules(currentDescription, this, rules.last(), owner, rules, status); in parseRules()
221 while (i < rules.size()) { in parseRules()
222 NFRule* rule = rules[i]; in parseRules()
244 negativeNumberRule = rules.remove(i); in parseRules()
253 fractionRules[0] = rules.remove(i); in parseRules()
262 fractionRules[1] = rules.remove(i); in parseRules()
271 fractionRules[2] = rules.remove(i); in parseRules()
317 if (rules.size() == rhs.rules.size() && in operator ==()
[all …]
/external/chromium_org/sandbox/mac/
Dpolicy_unittest.cc17 policy.rules["allow"] = Rule(POLICY_ALLOW); in TEST()
18 policy.rules["deny_error"] = Rule(POLICY_DENY_ERROR); in TEST()
19 policy.rules["deny_dummy"] = Rule(POLICY_DENY_DUMMY_PORT); in TEST()
20 policy.rules["substitue"] = Rule(mach_task_self()); in TEST()
27 policy.rules["test"] = rule; in TEST()
34 policy.rules["test"] = rule; in TEST()
42 policy.rules["allow"] = rule; in TEST()
50 policy.rules["deny_error"] = rule; in TEST()
58 policy.rules["deny_dummy"] = rule; in TEST()
/external/chromium_org/chrome/installer/util/
Dadvanced_firewall_manager_win.cc64 std::vector<base::win::ScopedComPtr<INetFwRule> > rules; in HasAnyRule() local
65 GetAllRules(&rules); in HasAnyRule()
66 return !rules.empty(); in HasAnyRule()
90 std::vector<base::win::ScopedComPtr<INetFwRule> > rules; in DeleteRuleByName() local
91 GetAllRules(&rules); in DeleteRuleByName()
92 for (size_t i = 0; i < rules.size(); ++i) { in DeleteRuleByName()
94 HRESULT hr = rules[i]->get_Name(name.Receive()); in DeleteRuleByName()
96 DeleteRule(rules[i]); in DeleteRuleByName()
113 std::vector<base::win::ScopedComPtr<INetFwRule> > rules; in DeleteAllRules() local
114 GetAllRules(&rules); in DeleteAllRules()
[all …]
/external/chromium_org/chrome/common/extensions/docs/examples/api/downloads/download_filename_controller/
Dbg.js33 var rules = localStorage.rules;
35 rules = JSON.parse(rules);
37 localStorage.rules = JSON.stringify([]);
39 for (var index = 0; index < rules.length; ++index) {
40 var rule = rules[index];
/external/chromium_org/third_party/libaddressinput/src/cpp/src/
Dregion_data_builder.cc43 const std::map<std::string, const Rule*>& rules, in BuildRegionTreeRecursively() argument
60 if (hint == rules.end() || hint->first != lookup_key_string) { in BuildRegionTreeRecursively()
61 hint = rules.find(lookup_key_string); in BuildRegionTreeRecursively()
62 if (hint == rules.end()) { in BuildRegionTreeRecursively()
79 BuildRegionTreeRecursively(rules, in BuildRegionTreeRecursively()
91 RegionData* BuildRegion(const std::map<std::string, const Rule*>& rules, in BuildRegion() argument
101 rules.find(lookup_key.ToKeyString(kLookupKeysMaxDepth)); in BuildRegion()
102 assert(hint != rules.end()); in BuildRegion()
115 BuildRegionTreeRecursively(rules, in BuildRegion()
175 const std::map<std::string, const Rule*>& rules = in Build() local
[all …]

12345678910>>...65