#include "components/download/internal/background_service/test/test_store.h"
#include <memory>
#include "components/download/internal/background_service/entry.h"
namespace download {
namespace test {
TestStore::TestStore() : … { … }
TestStore::~TestStore() { … }
bool TestStore::IsInitialized() { … }
void TestStore::Initialize(InitCallback callback) { … }
void TestStore::HardRecover(StoreCallback callback) { … }
void TestStore::Update(const Entry& entry, StoreCallback callback) { … }
void TestStore::Remove(const std::string& guid, StoreCallback callback) { … }
void TestStore::AutomaticallyTriggerAllFutureCallbacks(bool success) { … }
void TestStore::TriggerInit(bool success,
std::unique_ptr<std::vector<Entry>> entries) { … }
void TestStore::TriggerHardRecover(bool success) { … }
void TestStore::TriggerUpdate(bool success) { … }
void TestStore::TriggerRemove(bool success) { … }
const Entry* TestStore::LastUpdatedEntry() const { … }
std::string TestStore::LastRemovedEntry() const { … }
}
}