#include "chrome/browser/extensions/warning_badge_service.h"
#include "base/memory/raw_ptr.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/global_error/global_error_service.h"
#include "chrome/browser/ui/global_error/global_error_service_factory.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/browser_task_environment.h"
#include "extensions/browser/warning_service.h"
#include "extensions/browser/warning_set.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace extensions {
namespace {
class TestExtensionWarningSet : public WarningService { … };
class TestWarningBadgeService : public WarningBadgeService { … };
bool HasBadge(Profile* profile) { … }
const char ext1_id[] = …;
const char ext2_id[] = …;
}
TEST(WarningBadgeServiceTest, SuppressBadgeForCurrentWarnings) { … }
}