chromium/chrome/browser/page_load_metrics/integration_tests/cross_document_resource_reuse_test.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/page_load_metrics/integration_tests/metric_integration_test.h"

#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/metrics/content/subprocess_metrics_provider.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource.h"

CrossDocumentResourceReuseTest;

// The test verifies the metrics for reusing resources among different
// documents. The first and the second page share an image in common. We
// verify the resource reuse is correctly recorded in the UMA.
IN_PROC_BROWSER_TEST_F(CrossDocumentResourceReuseTest,
                       CrossDocumentResourceReuse) {}