# 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 = [ "snapshot_browser_agent.h", "snapshot_cache.h", "snapshot_cache_internal.h", "snapshot_cache_observer.h", "snapshot_cache_web_state_list_observer.h", "snapshot_generator_delegate.h", "snapshot_lru_cache.h", "snapshot_tab_helper.h", "snapshots_util.h", ] sources = [ "snapshot_browser_agent.mm", "snapshot_cache.mm", "snapshot_cache_web_state_list_observer.mm", "snapshot_generator.h", "snapshot_generator.mm", "snapshot_lru_cache.mm", "snapshot_tab_helper.mm", "snapshots_util.mm", ] deps = [ "//base", "//ios/chrome/browser/browser_state", "//ios/chrome/browser/main:public", "//ios/chrome/browser/ui:feature_flags", "//ios/chrome/browser/ui/util", "//ios/chrome/browser/ui/util:multiwindow_util", "//ios/chrome/browser/web:tab_id_tab_helper", "//ios/chrome/browser/web_state_list", "//ios/third_party/webkit", "//ios/web/public", "//ui/gfx", ] frameworks = [ "QuartzCore.framework", "UIKit.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 = [ "snapshot_browser_agent_unittest.mm", "snapshot_cache_unittest.mm", "snapshot_lru_cache_unittest.mm", "snapshot_tab_helper_unittest.mm", "snapshots_util_unittest.mm", ] deps = [ ":snapshots", ":test_utils", "//base", "//base/test:test_support", "//ios/chrome/browser/main:public", "//ios/chrome/browser/main:test_support", "//ios/chrome/browser/ui/image_util", "//ios/chrome/browser/ui/util", "//ios/chrome/browser/web:tab_id_tab_helper", "//ios/web", "//ios/web/public/test", "//ios/web/public/test/fakes:fakes", "//testing/gmock", "//testing/gtest", "//third_party/ocmock", "//ui/base:test_support", "//ui/gfx", ] }