#include "chrome/browser/extensions/component_loader.h"
#include <stddef.h>
#include <memory>
#include <optional>
#include <string>
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/memory/raw_ptr.h"
#include "base/path_service.h"
#include "base/scoped_observation.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/values.h"
#include "build/build_config.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_service_user_test_base.h"
#include "chrome/browser/extensions/test_extension_system.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/browser_task_environment.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_registry_observer.h"
#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_set.h"
#include "extensions/common/manifest_handlers/background_info.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace extensions {
class ExtensionUnloadedObserver : public ExtensionRegistryObserver { … };
class ComponentLoaderTest : public ExtensionServiceUserTestBase { … };
TEST_F(ComponentLoaderTest, ParseManifest) { … }
TEST_F(ComponentLoaderTest, AddWhenNotReady) { … }
TEST_F(ComponentLoaderTest, AddWhenReady) { … }
TEST_F(ComponentLoaderTest, Remove) { … }
TEST_F(ComponentLoaderTest, LoadAll) { … }
TEST_F(ComponentLoaderTest, LoadAll_EmitUserHistograms) { … }
TEST_F(ComponentLoaderTest, LoadAll_NonUserEmitHistograms) { … }
TEST_F(ComponentLoaderTest, DISABLED_AddOrReplace) { … }
}