#include "chrome/browser/share/share_history.h"
#include "base/cancelable_callback.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/time/time.h"
#include "chrome/test/base/testing_profile.h"
#include "components/leveldb_proto/testing/fake_db.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const char* kTarget0Name = …;
const char* kTarget1Name = …;
int DaysSinceUnixEpoch() { … }
sharing::mojom::ShareHistory BuildTestProto() { … }
}
namespace sharing {
class ShareHistoryTest : public testing::Test { … };
TEST_F(ShareHistoryTest, CreateAndInitializeEmpty) { … }
TEST_F(ShareHistoryTest, AddInMemory) { … }
TEST_F(ShareHistoryTest, AddsWrittenToBackingDb) { … }
TEST_F(ShareHistoryTest, BackingDbIsLoaded) { … }
TEST_F(ShareHistoryTest, BackingDbInitFailureStillRunsCallbacks) { … }
TEST_F(ShareHistoryTest, OffTheRecordProfileHasNoInstance) { … }
TEST_F(ShareHistoryTest, ClearYesterdayOnly) { … }
TEST_F(ShareHistoryTest, OldEntriesExpired) { … }
}