blob: 4323a745a3c9b602cd58fc5c32fff1c28cb43a28 [file] [log] [blame]
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("history") {
sources = [
"history_backend_client_impl.cc",
"history_backend_client_impl.h",
"history_client_impl.cc",
"history_client_impl.h",
"history_service_factory.cc",
"history_service_factory.h",
"history_utils.cc",
"history_utils.h",
"top_sites_factory.cc",
"top_sites_factory.h",
"web_history_service_factory.cc",
"web_history_service_factory.h",
]
deps = [
"//base",
"//components/bookmarks/browser",
"//components/browser_sync",
"//components/dom_distiller/core",
"//components/history/core/browser",
"//components/history/ios/browser",
"//components/keyed_service/core",
"//components/keyed_service/ios",
"//components/pref_registry",
"//components/prefs",
"//components/sync",
"//ios/chrome/browser",
"//ios/chrome/browser/browser_state",
"//ios/chrome/browser/signin",
"//ios/web",
"//net",
"//url",
]
}
source_set("tab_helper") {
sources = [
"history_tab_helper.h",
"history_tab_helper.mm",
]
deps = [
":history",
"//base",
"//components/history/core/browser",
"//components/keyed_service/core",
"//components/ntp_snippets",
"//components/strings",
"//ios/chrome/browser",
"//ios/chrome/browser/browser_state",
"//ios/web",
"//ui/base",
"//url",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"history_tab_helper_unittest.mm",
]
deps = [
":history",
":tab_helper",
"//base",
"//base/test:test_support",
"//components/history/core/browser",
"//components/keyed_service/core",
"//ios/chrome/browser/",
"//ios/chrome/browser/browser_state:test_support",
"//ios/web",
"//ios/web/public/test/fakes",
"//testing/gtest",
]
configs += [ "//build/config/compiler:enable_arc" ]
}