#include "components/download/internal/background_service/model_impl.h"
#include <algorithm>
#include <memory>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/uuid.h"
#include "components/download/internal/background_service/entry.h"
#include "components/download/internal/background_service/stats.h"
#include "components/download/internal/background_service/test/entry_utils.h"
#include "components/download/internal/background_service/test/mock_model_client.h"
#include "components/download/internal/background_service/test/test_store.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
InSequence;
Return;
_;
namespace download {
namespace {
class DownloadServiceModelImplTest : public testing::Test { … };
}
TEST_F(DownloadServiceModelImplTest, SuccessfulLifecycle) { … }
TEST_F(DownloadServiceModelImplTest, SuccessfulInitWithEntries) { … }
TEST_F(DownloadServiceModelImplTest, BadInit) { … }
TEST_F(DownloadServiceModelImplTest, HardRecoverGoodModel) { … }
TEST_F(DownloadServiceModelImplTest, HardRecoverBadModel) { … }
TEST_F(DownloadServiceModelImplTest, HardRecoverFailsGoodModel) { … }
TEST_F(DownloadServiceModelImplTest, HardRecoverFailsBadModel) { … }
TEST_F(DownloadServiceModelImplTest, Add) { … }
TEST_F(DownloadServiceModelImplTest, Update) { … }
TEST_F(DownloadServiceModelImplTest, Remove) { … }
TEST_F(DownloadServiceModelImplTest, Get) { … }
TEST_F(DownloadServiceModelImplTest, PeekEntries) { … }
TEST_F(DownloadServiceModelImplTest, TestRemoveAfterAdd) { … }
TEST_F(DownloadServiceModelImplTest, TestRemoveAfterUpdate) { … }
}