#include "components/download/database/download_db_impl.h"
#include <algorithm>
#include <memory>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/uuid.h"
#include "components/download/database/download_db_conversions.h"
#include "components/download/database/download_db_entry.h"
#include "components/download/database/proto/download_entry.pb.h"
#include "components/leveldb_proto/testing/fake_db.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
namespace download {
namespace {
DownloadDBEntry CreateDownloadDBEntry() { … }
std::string GetKey(const std::string& guid) { … }
}
class DownloadDBTest : public testing::Test { … };
TEST_F(DownloadDBTest, InitializeSucceeded) { … }
TEST_F(DownloadDBTest, InitializeFailed) { … }
TEST_F(DownloadDBTest, LoadEntries) { … }
TEST_F(DownloadDBTest, AddEntry) { … }
TEST_F(DownloadDBTest, ReplaceEntry) { … }
TEST_F(DownloadDBTest, Remove) { … }
TEST_F(DownloadDBTest, DestroyAndReinitialize) { … }
}