Home
last modified time | relevance | path

Searched refs:pattern_pair (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/chrome/browser/content_settings/
Dcontent_settings_utils_unittest.cc12 content_settings::PatternPair pattern_pair; in TEST() local
14 pattern_pair = content_settings::ParsePatternString(std::string()); in TEST()
15 EXPECT_FALSE(pattern_pair.first.IsValid()); in TEST()
16 EXPECT_FALSE(pattern_pair.second.IsValid()); in TEST()
18 pattern_pair = content_settings::ParsePatternString(","); in TEST()
19 EXPECT_FALSE(pattern_pair.first.IsValid()); in TEST()
20 EXPECT_FALSE(pattern_pair.second.IsValid()); in TEST()
22 pattern_pair = content_settings::ParsePatternString("http://www.foo.com"); in TEST()
23 EXPECT_TRUE(pattern_pair.first.IsValid()); in TEST()
24 EXPECT_EQ(pattern_pair.second, ContentSettingsPattern::Wildcard()); in TEST()
[all …]
Dcontent_settings_pref_provider.cc397 std::pair<ContentSettingsPattern, ContentSettingsPattern> pattern_pair = in ReadContentSettingsFromPref() local
399 if (!pattern_pair.first.IsValid() || in ReadContentSettingsFromPref()
400 !pattern_pair.second.IsValid()) { in ReadContentSettingsFromPref()
428 value_map_.SetValue(pattern_pair.first, in ReadContentSettingsFromPref()
429 pattern_pair.second, in ReadContentSettingsFromPref()
458 value_map_.SetValue(pattern_pair.first, in ReadContentSettingsFromPref()
459 pattern_pair.second, in ReadContentSettingsFromPref()
516 std::pair<ContentSettingsPattern, ContentSettingsPattern> pattern_pair = in CanonicalizeContentSettingsExceptions() local
518 if (!pattern_pair.first.IsValid() || in CanonicalizeContentSettingsExceptions()
519 !pattern_pair.second.IsValid()) { in CanonicalizeContentSettingsExceptions()
[all …]
Dcontent_settings_utils.cc97 PatternPair pattern_pair; in ParsePatternString() local
98 pattern_pair.first = in ParsePatternString()
100 pattern_pair.second = in ParsePatternString()
102 return pattern_pair; in ParsePatternString()
Dcontent_settings_policy_provider.cc276 PatternPair pattern_pair = ParsePatternString(original_pattern_str); in GetContentSettingsFromPreferences() local
278 if (!pattern_pair.first.IsValid()) { in GetContentSettingsFromPreferences()
289 !pattern_pair.second.IsValid() ? ContentSettingsPattern::Wildcard() in GetContentSettingsFromPreferences()
290 : pattern_pair.second; in GetContentSettingsFromPreferences()
292 pattern_pair.first, in GetContentSettingsFromPreferences()