naiveproxy/ios/chrome/browser/snapshots/BUILD.gn

89 lines
2.2 KiB
Plaintext
Raw Normal View History

2018-12-10 05:59:24 +03:00
# 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("snapshots") {
public = [
"lru_cache.h",
"snapshot_cache.h",
"snapshot_cache_factory.h",
"snapshot_cache_internal.h",
"snapshot_cache_observer.h",
"snapshot_cache_web_state_list_observer.h",
"snapshot_constants.h",
"snapshot_generator_delegate.h",
"snapshot_overlay.h",
"snapshot_tab_helper.h",
"snapshots_util.h",
]
sources = [
"lru_cache.mm",
"snapshot_cache.mm",
"snapshot_cache_factory.mm",
"snapshot_cache_web_state_list_observer.mm",
"snapshot_constants.mm",
"snapshot_generator.h",
"snapshot_generator.mm",
"snapshot_overlay.mm",
"snapshot_tab_helper.mm",
"snapshots_util.mm",
]
deps = [
"//base",
"//components/infobars/core",
"//components/keyed_service/core",
"//components/keyed_service/ios",
"//ios/chrome/browser",
"//ios/chrome/browser/browser_state",
"//ios/chrome/browser/infobars",
"//ios/chrome/browser/ui",
"//ios/chrome/browser/ui:feature_flags",
"//ios/chrome/browser/web:tab_id_tab_helper",
"//ios/chrome/browser/web_state_list",
"//ios/web/public",
]
libs = [
"QuartzCore.framework",
"UIKit.framework",
"WebKit.framework",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("test_utils") {
testonly = true
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"fake_snapshot_generator_delegate.h",
"fake_snapshot_generator_delegate.mm",
]
deps = [
":snapshots",
]
}
source_set("unit_tests") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
sources = [
"lru_cache_unittest.mm",
"snapshot_cache_unittest.mm",
"snapshot_tab_helper_unittest.mm",
"snapshots_util_unittest.mm",
]
deps = [
":snapshots",
":test_utils",
"//base",
"//ios/chrome/browser/browser_state:test_support",
"//ios/chrome/browser/ui",
"//ios/chrome/browser/ui/image_util",
"//ios/web",
"//ios/web/public/test",
"//ios/web/public/test/fakes:fakes",
"//testing/gtest",
"//ui/base:test_support",
"//ui/gfx",
]
}