#include "chrome/browser/extensions/extension_telemetry_service_verdict_handler.h"
#include "base/test/metrics/histogram_tester.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_service_test_base.h"
#include "chrome/browser/profiles/profile.h"
#include "extensions/browser/blocklist_extension_prefs.h"
#include "extensions/test/extension_state_tester.h"
namespace extensions {
namespace {
constexpr char kTestExtensionId[] = …;
constexpr char kUninstalledExtensionId[] = …;
}
class ExtensionTelemetryServiceVerdictHandlerTest
: public ExtensionServiceTestBase { … };
TEST_F(ExtensionTelemetryServiceVerdictHandlerTest, HandlesMalwareExtension) { … }
TEST_F(ExtensionTelemetryServiceVerdictHandlerTest,
ReenablesUnblocklistedExtension) { … }
TEST_F(ExtensionTelemetryServiceVerdictHandlerTest,
IgnoresUninstalledExtension) { … }
TEST_F(ExtensionTelemetryServiceVerdictHandlerTest,
IgnoresUnknownBlocklistState) { … }
TEST_F(ExtensionTelemetryServiceVerdictHandlerTest,
ExtensionAlreadyUninstalled) { … }
}