#include "components/feed/core/v2/web_feed_subscriptions/web_feed_index.h"
#include "components/feed/core/proto/v2/wire/web_feed_matcher.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace feed {
namespace {
Criteria;
WebFeedPageInformation MakePageInfo(const GURL& url,
std::vector<GURL> rss_urls = { … }
feedwire::webfeed::WebFeedMatcher::Criteria TextCriteria(
feedwire::webfeed::WebFeedMatcher::Criteria::CriteriaType criteria_type,
const std::string& text) { … }
feedwire::webfeed::WebFeedMatcher::Criteria RegexCriteria(
feedwire::webfeed::WebFeedMatcher::Criteria::CriteriaType criteria_type,
const std::string& regex) { … }
feedwire::webfeed::WebFeedMatcher MakeDomainMatcher(const std::string& domain) { … }
TEST(WebFeedIndex, FindWebFeedForUrlBeforePopulate) { … }
TEST(WebFeedIndex, FindWebFeedResolvesDomainsCorrectly) { … }
TEST(WebFeedIndex, PopulateOverwritesContent) { … }
TEST(WebFeedIndex, FindWebFeedForUrlFindsRecommendedUrl) { … }
TEST(WebFeedIndex, FindWebFeedWithPageInfoFindsSubscribedFeedsPreferentially) { … }
TEST(WebFeedIndex, FindWebFeedCriteriaPageUrlHostMatch) { … }
TEST(WebFeedIndex, FindWebFeedCriteriaPathMatch) { … }
TEST(WebFeedIndex, FindWebFeedCriteriaRssUrlMatch) { … }
TEST(WebFeedIndex, MultipleConditionsRequiredForMatch) { … }
}
}