#include "chrome/browser/extensions/test_blocklist.h"
#include <set>
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "chrome/browser/extensions/blocklist.h"
#include "chrome/browser/extensions/blocklist_state_fetcher.h"
#include "chrome/browser/extensions/fake_safe_browsing_database_manager.h"
namespace extensions {
namespace {
void Assign(BlocklistState* out, BlocklistState in) { … }
}
BlocklistStateFetcherMock::BlocklistStateFetcherMock() : … { … }
BlocklistStateFetcherMock::~BlocklistStateFetcherMock() { … }
void BlocklistStateFetcherMock::Request(const std::string& id,
RequestCallback callback) { … }
void BlocklistStateFetcherMock::SetState(const std::string& id,
BlocklistState state) { … }
void BlocklistStateFetcherMock::Clear() { … }
TestBlocklist::TestBlocklist()
: … { … }
TestBlocklist::TestBlocklist(Blocklist* blocklist)
: … { … }
TestBlocklist::~TestBlocklist() { … }
void TestBlocklist::Attach(Blocklist* blocklist) { … }
void TestBlocklist::Detach() { … }
void TestBlocklist::SetBlocklistState(const std::string& extension_id,
BlocklistState state,
bool notify) { … }
void TestBlocklist::Clear(bool notify) { … }
BlocklistState TestBlocklist::GetBlocklistState(
const std::string& extension_id) { … }
void TestBlocklist::DisableSafeBrowsing() { … }
void TestBlocklist::EnableSafeBrowsing() { … }
void TestBlocklist::NotifyUpdate() { … }
}