#include <map>
#include <memory>
#include <optional>
#include <vector>
#include "base/command_line.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/strings/string_util.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "build/build_config.h"
#include "chrome/browser/content_index/content_index_provider_impl.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/offline_items_collection/core/offline_content_provider.h"
#include "components/offline_items_collection/core/offline_item.h"
#include "components/ukm/test_ukm_recorder.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/blink/public/common/service_worker/service_worker_status_code.h"
#include "third_party/re2/src/re2/re2.h"
#include "url/gurl.h"
ContentId;
OfflineContentProvider;
OfflineItem;
OfflineItemVisuals;
namespace {
std::string GetDescriptionIdFromOfflineItemKey(const std::string& id) { … }
class ContentIndexTest : public InProcessBrowserTest,
public OfflineContentProvider::Observer,
public TabStripModelObserver { … };
IN_PROC_BROWSER_TEST_F(ContentIndexTest, OfflineItemObserversReceiveEvents) { … }
IN_PROC_BROWSER_TEST_F(ContentIndexTest, OfflineItemIframe) { … }
IN_PROC_BROWSER_TEST_F(ContentIndexTest, ContextAPI) { … }
IN_PROC_BROWSER_TEST_F(ContentIndexTest, GetVisuals) { … }
IN_PROC_BROWSER_TEST_F(ContentIndexTest, LaunchUrl) { … }
IN_PROC_BROWSER_TEST_F(ContentIndexTest, UserDeletedEntryDispatchesEvent) { … }
IN_PROC_BROWSER_TEST_F(ContentIndexTest, DISABLED_MetricsCollected) { … }
}