blob: 934bdad7ec2f8a52784060a86c5ec3352a506613 [file] [log] [blame]
# Copyright 2020 The Chromium Authors
# 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/shared/model/web_state_list",
"//ios/chrome/browser/ui/main",
"//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/shared/coordinator/scene/test",
"//ios/chrome/browser/shared/model/browser/test:test_support",
"//ios/chrome/browser/shared/model/browser_state:test_support",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/shared/model/web_state_list/test:test_support",
"//ios/chrome/browser/ui/main",
"//ios/chrome/test:test_support",
"//ios/web/public/test",
"//third_party/ocmock",
]
}