#include "chrome/browser/extensions/unpacked_installer.h"
#include "base/files/file_util.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_service_test_base.h"
#include "chrome/browser/extensions/extension_service_test_with_install.h"
#include "chrome/browser/extensions/extension_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/pref_names.h"
#include "components/crx_file/id_util.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_system.h"
#include "extensions/browser/permissions_manager.h"
#include "extensions/browser/test_extension_registry_observer.h"
#include "extensions/browser/test_management_policy.h"
#include "extensions/common/extension_features.h"
#include "extensions/common/mojom/manifest.mojom-shared.h"
#include "extensions/common/switches.h"
namespace extensions {
class UnpackedInstallerUnitTest : public ExtensionServiceTestWithInstall,
public testing::WithParamInterface<bool> { … };
TEST_P(UnpackedInstallerUnitTest, WithheldHostPermissionsWithFlag) { … }
TEST_P(UnpackedInstallerUnitTest,
RecordCommandLineDeveloperModeMetrics_EnabledDeveloperModeOff) { … }
TEST_P(UnpackedInstallerUnitTest,
RecordCommandLineDeveloperModeMetrics_EnabledDeveloperModeOn) { … }
TEST_P(UnpackedInstallerUnitTest,
RecordCommandLineDeveloperModeMetrics_DisabledDeveloperModeOff) { … }
TEST_P(UnpackedInstallerUnitTest,
RecordCommandLineDeveloperModeMetrics_DisabledDeveloperModeOn) { … }
INSTANTIATE_TEST_SUITE_P(…);
}