chromium/components/history/core/test/BUILD.gn

# Copyright 2014 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("test") {
  testonly = true
  sources = [
    "database_test_utils.cc",
    "database_test_utils.h",
    "fake_web_history_service.cc",
    "fake_web_history_service.h",
    "history_backend_db_base_test.cc",
    "history_backend_db_base_test.h",
    "history_client_fake_bookmarks.cc",
    "history_client_fake_bookmarks.h",
    "history_service_test_util.cc",
    "history_service_test_util.h",
    "history_unittest_base.cc",
    "history_unittest_base.h",
    "test_history_database.cc",
    "test_history_database.h",
    "thumbnail-inl.h",
    "thumbnail.h",
    "visit_annotations_test_utils.cc",
    "visit_annotations_test_utils.h",
    "wait_top_sites_loaded_observer.cc",
    "wait_top_sites_loaded_observer.h",
  ]

  deps = [
    "//base",
    "//base/test:test_support",
    "//components/history/core/browser",
    "//components/sync/protocol:protocol",
    "//components/version_info",
    "//net",
    "//services/network/public/cpp",
    "//sql",
    "//sql:test_support",
    "//testing/gtest",
    "//ui/gfx",
    "//url",
  ]

  if (is_ios) {
    sources += [ "thumbnail_ios.mm" ]
  } else {
    sources += [ "thumbnail.cc" ]
  }
}