#include "components/offline_pages/core/background/mark_attempt_completed_task.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "components/offline_pages/core/background/request_queue_store.h"
#include "components/offline_pages/core/background/request_queue_task_test_base.h"
#include "components/offline_pages/core/background/test_request_queue_store.h"
#include "components/offline_pages/core/offline_clock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace offline_pages {
namespace {
const int64_t kRequestId1 = …;
const int64_t kRequestId2 = …;
const ClientId kClientId1("download", "1234");
class MarkAttemptCompletedTaskTest : public RequestQueueTaskTestBase { … };
void MarkAttemptCompletedTaskTest::AddStartedItemToStore() { … }
void MarkAttemptCompletedTaskTest::ChangeRequestsStateCallback(
UpdateRequestsResult result) { … }
TEST_F(MarkAttemptCompletedTaskTest, MarkAttemptCompletedWhenExists) { … }
TEST_F(MarkAttemptCompletedTaskTest, MarkAttemptCompletedWhenItemMissing) { … }
}
}