Searched refs:pattern_pair (Results 1 – 4 of 4) sorted by relevance
12 content_settings::PatternPair pattern_pair; in TEST() local14 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 …]
397 std::pair<ContentSettingsPattern, ContentSettingsPattern> pattern_pair = in ReadContentSettingsFromPref() local399 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() local518 if (!pattern_pair.first.IsValid() || in CanonicalizeContentSettingsExceptions()519 !pattern_pair.second.IsValid()) { in CanonicalizeContentSettingsExceptions()[all …]
97 PatternPair pattern_pair; in ParsePatternString() local98 pattern_pair.first = in ParsePatternString()100 pattern_pair.second = in ParsePatternString()102 return pattern_pair; in ParsePatternString()
276 PatternPair pattern_pair = ParsePatternString(original_pattern_str); in GetContentSettingsFromPreferences() local278 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()