chromium/ios/chrome/browser/ui/save_to_photos/BUILD.gn

# Copyright 2023 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("save_to_photos") {
  sources = [
    "save_to_photos_coordinator.h",
    "save_to_photos_coordinator.mm",
    "save_to_photos_mediator.h",
    "save_to_photos_mediator.mm",
    "save_to_photos_mediator_delegate.h",
  ]
  deps = [
    "//base",
    "//components/prefs",
    "//components/strings:components_strings_grit",
    "//ios/chrome/app/strings",
    "//ios/chrome/app/strings:ios_strings_grit",
    "//ios/chrome/browser/account_picker/ui_bundled",
    "//ios/chrome/browser/account_picker/ui_bundled:account_picker_configuration",
    "//ios/chrome/browser/account_picker/ui_bundled:account_picker_logger",
    "//ios/chrome/browser/drive/model:manage_storage_url_util",
    "//ios/chrome/browser/photos/model",
    "//ios/chrome/browser/photos/model:metrics",
    "//ios/chrome/browser/photos/model:photos_service_factory",
    "//ios/chrome/browser/shared/coordinator/alert",
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/symbols:buildflags",
    "//ios/chrome/browser/signin/model",
    "//ios/chrome/browser/signin/model:system_identity",
    "//ios/chrome/browser/store_kit/model",
    "//ios/chrome/browser/ui/authentication/signin:constants",
    "//ios/chrome/browser/ui/authentication/signin:signin_headers",
    "//ios/chrome/browser/web/model/image_fetch",
    "//ios/web/public",
    "//ios/web/public/navigation:referrer",
    "//url",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "save_to_photos_coordinator_unittest.mm",
    "save_to_photos_mediator_unittest.mm",
  ]
  deps = [
    ":save_to_photos",
    "//base",
    "//base/test:test_support",
    "//components/prefs:test_support",
    "//components/signin/public/identity_manager:test_support",
    "//components/strings:components_strings_grit",
    "//components/variations:test_support",
    "//ios/chrome/app/strings:ios_strings_grit",
    "//ios/chrome/browser/account_picker/ui_bundled",
    "//ios/chrome/browser/account_picker/ui_bundled:account_picker_configuration",
    "//ios/chrome/browser/photos/model:metrics",
    "//ios/chrome/browser/photos/model:photos_service_factory",
    "//ios/chrome/browser/shared/coordinator/alert",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/prefs:browser_prefs",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/signin/model",
    "//ios/chrome/browser/signin/model:fake_system_identity",
    "//ios/chrome/browser/signin/model:fake_system_identity_manager",
    "//ios/chrome/browser/signin/model:test_support",
    "//ios/chrome/browser/store_kit/model",
    "//ios/chrome/browser/ui/authentication/signin:constants",
    "//ios/chrome/browser/ui/authentication/signin:signin_headers",
    "//ios/chrome/browser/web/model/image_fetch",
    "//ios/chrome/test:test_support",
    "//ios/chrome/test/fakes",
    "//ios/chrome/test/providers/photos",
    "//ios/web/public/test",
    "//ios/web/public/test/fakes",
    "//testing/gtest",
    "//third_party/ocmock:ocmock",
  ]
}