#include "chrome/browser/background_fetch/background_fetch_delegate_impl.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/time/time.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/test/base/testing_profile.h"
#include "components/history/core/browser/history_service.h"
#include "components/history/core/test/test_history_database.h"
#include "components/ukm/test_ukm_recorder.h"
#include "content/public/test/browser_task_environment.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace {
const char kUserInitiatedAbort[] = …;
}
class BackgroundFetchDelegateImplTest : public testing::Test { … };
TEST_F(BackgroundFetchDelegateImplTest, RecordUkmEvent) { … }