#include "components/webapps/browser/banners/app_banner_settings_helper.h"
#include "base/auto_reset.h"
#include "base/time/time.h"
#include "components/permissions/test/test_permissions_client.h"
#include "components/prefs/testing_pref_service.h"
#include "components/site_engagement/content/site_engagement_service.h"
#include "components/user_prefs/user_prefs.h"
#include "components/webapps/browser/banners/app_banner_metrics.h"
#include "content/public/browser/browser_context.h"
#include "content/public/test/test_renderer_host.h"
namespace webapps {
namespace {
const char kTestURL[] = …;
const char kSameOriginTestURL[] = …;
const char kSameOriginTestURL1[] = …;
const char kSameOriginTestURL2[] = …;
const char kTestPackageName[] = …;
base::Time GetReferenceTime() { … }
class AppBannerSettingsHelperTest
: public content::RenderViewHostTestHarness,
public site_engagement::SiteEngagementService::ServiceProvider { … };
}
TEST_F(AppBannerSettingsHelperTest, SingleEvents) { … }
TEST_F(AppBannerSettingsHelperTest, ShouldShowFromEngagement) { … }
TEST_F(AppBannerSettingsHelperTest, ReportsWhetherBannerWasRecentlyBlocked) { … }
TEST_F(AppBannerSettingsHelperTest, ReportsWhetherBannerWasRecentlyIgnored) { … }
TEST_F(AppBannerSettingsHelperTest, OperatesOnOrigins) { … }
TEST_F(AppBannerSettingsHelperTest, ShouldShowWithHigherTotal) { … }
TEST_F(AppBannerSettingsHelperTest, NulloptSingleBannerEvent) { … }
}