#include "chrome/browser/metrics/extensions_metrics_provider.h"
#include <stdint.h>
#include <memory>
#include <optional>
#include <string>
#include "base/containers/contains.h"
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "base/values.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_service_test_base.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "components/metrics/client_info.h"
#include "components/metrics/metrics_service.h"
#include "components/metrics/metrics_state_manager.h"
#include "components/metrics/test/test_enabled_state_provider.h"
#include "components/prefs/testing_pref_service.h"
#include "extensions/browser/blocklist_extension_prefs.h"
#include "extensions/browser/disable_reason.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/common/api/extension_action/action_info.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_builder.h"
#include "extensions/common/extension_set.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/metrics_proto/extension_install.pb.h"
#include "third_party/metrics_proto/system_profile.pb.h"
Extension;
ExtensionBuilder;
Manifest;
ManifestLocation;
ExtensionInstallProto;
namespace {
class TestExtensionsMetricsProvider : public ExtensionsMetricsProvider { … };
}
TEST(ExtensionsMetricsProvider, HashExtension) { … }
TEST(ExtensionsMetricsProvider, SystemProtoEncoding) { … }
class ExtensionMetricsProviderInstallsTest
: public extensions::ExtensionServiceTestBase { … };
TEST_F(ExtensionMetricsProviderInstallsTest, TestProtoConstruction) { … }
TEST_F(ExtensionMetricsProviderInstallsTest,
TestGettingAllExtensionsInProfile) { … }