chromium/chrome/browser/share/share_history_unittest.cc

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

#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

namespace sharing {

// Fixture for tests that test the behavior of ShareHistory. These tests use a
// fake LevelDB instance so that they don't need to touch disk and have tight
// control over when callbacks are delivered, etc. These tests are deliberately
// as close as possible to the real async behavior of the production code, so
// database init happens asynchronously and so on.
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) {}

}  // namespace sharing