# Copyright 2020 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("screenshot") { configs += [ "//build/config/compiler:enable_arc" ] sources = [ "screenshot_delegate.h", "screenshot_delegate.mm", "screenshot_metrics_recorder.h", "screenshot_metrics_recorder.mm", ] deps = [ "//base", "//ios/chrome/browser/main", "//ios/chrome/browser/ui/main", "//ios/chrome/browser/web_state_list", "//ios/web", ] } source_set("unit_tests") { configs += [ "//build/config/compiler:enable_arc" ] testonly = true sources = [ "screenshot_delegate_unittest.mm", "screenshot_metrics_recorder_unittest.mm", ] deps = [ ":screenshot", "//base", "//base/test:test_support", "//ios/chrome/browser/browser_state:test_support", "//ios/chrome/browser/main:test_support", "//ios/chrome/browser/ui/main", "//ios/chrome/browser/ui/main/test", "//ios/chrome/browser/web_state_list", "//ios/chrome/browser/web_state_list:test_support", "//ios/chrome/test:test_support", "//ios/web/public/test", "//third_party/ocmock", ] }