chromium/components/history/core/browser/visit_database_unittest.cc

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

#include <stddef.h>

#include <set>
#include <vector>

#include "base/strings/string_util.h"
#include "base/time/time.h"
#include "components/history/core/browser/url_database.h"
#include "components/history/core/browser/visit_database.h"
#include "components/history/core/browser/visited_link_database.h"
#include "sql/database.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
#include "url/origin.h"

Time;
AllOf;
ElementsAre;
IsEmpty;
Property;

namespace history {

namespace {

bool IsVisitInfoEqual(const VisitRow& a, const VisitRow& b) {}

}  // namespace

class VisitDatabaseTest : public PlatformTest,
                          public URLDatabase,
                          public VisitDatabase,
                          public VisitedLinkDatabase {};

TEST_F(VisitDatabaseTest, Add) {}

TEST_F(VisitDatabaseTest, Delete) {}

TEST_F(VisitDatabaseTest, Update) {}

TEST_F(VisitDatabaseTest, IsKnownToSync) {}

// TODO(brettw) write test for GetMostRecentVisitForURL!

namespace {

std::vector<VisitRow> GetTestVisitRows() {}

}  // namespace

TEST_F(VisitDatabaseTest, GetVisitsForTimes) {}

TEST_F(VisitDatabaseTest, GetAllAppIds) {}

TEST_F(VisitDatabaseTest, GetAllVisitsInRange) {}

TEST_F(VisitDatabaseTest, GetVisibleVisitsInRange) {}

TEST_F(VisitDatabaseTest, GetAllURLIDsForTransition) {}

TEST_F(VisitDatabaseTest, VisitSource) {}

TEST_F(VisitDatabaseTest, GetVisibleVisitsForURL) {}

TEST_F(VisitDatabaseTest, GetHistoryCount) {}

TEST_F(VisitDatabaseTest, GetLastVisitToOrigin_BadURL) {}

TEST_F(VisitDatabaseTest, GetLastVisitToOrigin_NonHttpURL) {}

TEST_F(VisitDatabaseTest, GetLastVisitToOrigin_NoVisits) {}

TEST_F(VisitDatabaseTest, GetLastVisitToOrigin_VisitsOutsideRange) {}

TEST_F(VisitDatabaseTest, GetLastVisitToOrigin_EndTimeNotIncluded) {}

TEST_F(VisitDatabaseTest, GetLastVisitToOrigin_SameOriginOnly) {}

TEST_F(VisitDatabaseTest, GetLastVisitToHost_DifferentScheme) {}

TEST_F(VisitDatabaseTest, GetLastVisitToHost_IncludePort) {}

TEST_F(VisitDatabaseTest, GetLastVisitToHost_DifferentPorts) {}

TEST_F(VisitDatabaseTest, GetLastVisitToOrigin_MostRecentVisitTime) {}

TEST_F(VisitDatabaseTest, GetLastVisitToURL) {}

// TODO(crbug.com/40940281): Test is failing.
TEST_F(VisitDatabaseTest, DISABLED_GetDailyVisitsToHostWithVisits) {}

TEST_F(VisitDatabaseTest, GetDailyVisitsToHostNoVisits) {}

TEST_F(VisitDatabaseTest, GetGoogleDomainVisitsFromSearchesInRange_NoVisits) {}

TEST_F(VisitDatabaseTest,
       GetGoogleDomainVisitsFromSearchesInRange_TwoVistsInRange) {}

TEST_F(VisitDatabaseTest, GetGoogleDomainVisitsFromSearchesInRange_NotSearch) {}

TEST_F(VisitDatabaseTest,
       GetGoogleDomainVisitsFromSearchesInRange_InvalidGoogleDomain) {}

TEST_F(VisitDatabaseTest, GetLastRowForVisitByVisitTime) {}

}  // namespace history