#include "components/update_client/test_activity_data_service.h"
#include <set>
#include <string>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/bind.h"
#include "components/update_client/persisted_data.h"
namespace update_client {
namespace {
constexpr int kUnknown = …;
}
namespace test {
void SetDateLastData(PersistedData* metadata,
const std::vector<std::string>& ids,
int daynum) { … }
bool GetActiveBit(PersistedData* metadata, const std::string& id) { … }
}
TestActivityDataService::TestActivityDataService() = default;
TestActivityDataService::~TestActivityDataService() = default;
bool TestActivityDataService::GetActiveBit(const std::string& id) const { … }
void TestActivityDataService::GetActiveBits(
const std::vector<std::string>& ids,
base::OnceCallback<void(const std::set<std::string>&)> callback) const { … }
void TestActivityDataService::GetAndClearActiveBits(
const std::vector<std::string>& ids,
base::OnceCallback<void(const std::set<std::string>&)> callback) { … }
int TestActivityDataService::GetDaysSinceLastActive(
const std::string& id) const { … }
int TestActivityDataService::GetDaysSinceLastRollCall(
const std::string& id) const { … }
void TestActivityDataService::SetActiveBit(const std::string& id, bool value) { … }
void TestActivityDataService::SetDaysSinceLastActive(const std::string& id,
int daynum) { … }
void TestActivityDataService::SetDaysSinceLastRollCall(const std::string& id,
int daynum) { … }
}