#include "extensions/test/extension_state_tester.h"
#include "base/memory/raw_ref.h"
#include "base/strings/stringprintf.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension_set.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace extensions {
namespace {
constexpr char kEnabledSet[] = …;
constexpr char kDisabledSet[] = …;
constexpr char kTerminatedSet[] = …;
constexpr char kBlocklistedSet[] = …;
}
ExtensionStateTester::ExtensionStateTester(
content::BrowserContext* browser_context)
: … { … }
ExtensionStateTester::~ExtensionStateTester() = default;
bool ExtensionStateTester::ExpectEnabled(const ExtensionId& extension_id) { … }
bool ExtensionStateTester::ExpectDisabledWithSingleReason(
const ExtensionId& extension_id,
disable_reason::DisableReason expected_reason) { … }
bool ExtensionStateTester::ExpectDisabledWithReasons(
const ExtensionId& extension_id,
int expected_reasons) { … }
bool ExtensionStateTester::ExpectBlocklisted(const ExtensionId& extension_id) { … }
bool ExtensionStateTester::ExpectTerminated(const ExtensionId& extension_id) { … }
bool ExtensionStateTester::ExpectOnlyInSet(const ExtensionId& extension_id,
const char* expected_set_name) { … }
}