chromium/components/update_client/test_activity_data_service.h

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_UPDATE_CLIENT_TEST_ACTIVITY_DATA_SERVICE_H_
#define COMPONENTS_UPDATE_CLIENT_TEST_ACTIVITY_DATA_SERVICE_H_

#include <map>
#include <set>
#include <string>
#include <vector>

#include "base/functional/callback_forward.h"
#include "components/update_client/activity_data_service.h"

namespace update_client {

class PersistedData;

namespace test {

// Synchronously set date-last data.
void SetDateLastData(PersistedData* metadata,
                     const std::vector<std::string>& ids,
                     int daynum);

// Synchronously fetch the active bit.
bool GetActiveBit(PersistedData* metadata, const std::string& id);

}  // namespace test

class TestActivityDataService final : public ActivityDataService {};

}  // namespace update_client

#endif  // COMPONENTS_UPDATE_CLIENT_TEST_ACTIVITY_DATA_SERVICE_H_