chromium/chrome/browser/ui/webui/history/browsing_history_handler_unittest.cc

// Copyright 2013 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/ui/webui/history/browsing_history_handler.h"

#include <stdint.h>

#include <memory>
#include <set>
#include <utility>

#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/simple_test_clock.h"
#include "base/time/time.h"
#include "base/values.h"
#include "build/build_config.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/history/web_history_service_factory.h"
#include "chrome/browser/sync/sync_service_factory.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
#include "components/history/core/browser/browsing_history_service.h"
#include "components/history/core/test/fake_web_history_service.h"
#include "components/sync/base/data_type.h"
#include "components/sync/test/test_sync_service.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/test_web_ui.h"
#include "net/http/http_status_code.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "url/gurl.h"

namespace history {

class MockBrowsingHistoryService : public BrowsingHistoryService {};

}  // namespace history

namespace {

base::Time PretendNow() {}

class BrowsingHistoryHandlerWithWebUIForTesting
    : public BrowsingHistoryHandler {};

}  // namespace

class BrowsingHistoryHandlerTest : public ChromeRenderViewHostTestHarness {};

// Tests that BrowsingHistoryHandler is informed about WebHistoryService
// deletions.
TEST_F(BrowsingHistoryHandlerTest, ObservingWebHistoryDeletions) {}

TEST_F(BrowsingHistoryHandlerTest, HostPrefixParameter) {}

TEST_F(BrowsingHistoryHandlerTest, WithoutHostPrefixParameter) {}

TEST_F(BrowsingHistoryHandlerTest, MisplacedHostPrefixParameter) {}

TEST_F(BrowsingHistoryHandlerTest, BeginTimestamp) {}

#if !BUILDFLAG(IS_ANDROID)
TEST_F(BrowsingHistoryHandlerTest, MdTruncatesTitles) {}

TEST_F(BrowsingHistoryHandlerTest, Reload) {}
#endif