chromium/components/history/content/browser/BUILD.gn

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

static_library("browser") {
  sources = [
    "content_visit_delegate.cc",
    "content_visit_delegate.h",
    "download_conversions.cc",
    "download_conversions.h",
    "history_context_helper.cc",
    "history_context_helper.h",
    "history_database_helper.cc",
    "history_database_helper.h",
    "visited_link_navigation_throttle.cc",
    "visited_link_navigation_throttle.h",
    "web_contents_top_sites_observer.cc",
    "web_contents_top_sites_observer.h",
  ]

  deps = [
    "//base",
    "//components/download/public/common:public",
    "//components/history/core/browser",
    "//components/version_info",
    "//components/visitedlink/browser",
    "//components/visitedlink/core",
    "//content/public/browser",
    "//url:url",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "content_history_backend_db_unittest.cc",
    "download_conversions_unittest.cc",
    "web_contents_top_sites_observer_unittest.cc",
  ]
  deps = [
    ":browser",
    "//base",
    "//components/history/core/browser:browser",
    "//components/history/core/test",
    "//content/test:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}