#include "components/background_sync/background_sync_metrics.h"
#include <memory>
#include "chrome/browser/background_sync/background_sync_delegate_impl.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/ukm/test_ukm_recorder.h"
#include "content/public/test/browser_test.h"
#include "services/metrics/public/cpp/metrics_utils.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "url/gurl.h"
#include "url/origin.h"
class BackgroundSyncMetricsBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(BackgroundSyncMetricsBrowserTest,
OneShotBackgroundSyncUkmEventsAreRecorded) { … }
IN_PROC_BROWSER_TEST_F(BackgroundSyncMetricsBrowserTest,
PeriodicBackgroundSyncUkmEventsAreRecorded) { … }