chromium/ios/chrome/browser/ui/settings/sync/BUILD.gn

# Copyright 2019 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("sync") {
  sources = [
    "sync_create_passphrase_table_view_controller.h",
    "sync_create_passphrase_table_view_controller.mm",
    "sync_encryption_passphrase_table_view_controller.h",
    "sync_encryption_passphrase_table_view_controller.mm",
    "sync_encryption_table_view_controller.h",
    "sync_encryption_table_view_controller.mm",
  ]
  deps = [
    "//base",
    "//components/autofill/core/common",
    "//components/browser_sync",
    "//components/google/core/common",
    "//components/prefs",
    "//components/signin/public/identity_manager/objc",
    "//components/strings",
    "//components/sync",
    "//components/unified_consent",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/settings/model/sync/utils",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/model/url:constants",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/table_view",
    "//ios/chrome/browser/shared/ui/table_view:utils",
    "//ios/chrome/browser/shared/ui/table_view/cells",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/signin/model",
    "//ios/chrome/browser/signin/model:system_identity",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/ui/authentication",
    "//ios/chrome/browser/ui/authentication/cells",
    "//ios/chrome/browser/ui/scoped_ui_blocker",
    "//ios/chrome/browser/ui/settings:settings_root",
    "//ios/chrome/browser/ui/settings/cells",
    "//ios/chrome/browser/ui/settings/google_services:constants",
    "//ios/chrome/browser/ui/settings/utils",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/table_view:cells_constants",
    "//ui/base",
    "//url",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "sync_create_passphrase_table_view_controller_unittest.mm",
    "sync_encryption_passphrase_table_view_controller_unittest.mm",
    "sync_encryption_table_view_controller_unittest.mm",
  ]
  deps = [
    ":sync",
    "//base/test:test_support",
    "//components/autofill/core/common",
    "//components/google/core/common",
    "//components/strings",
    "//components/sync:test_support",
    "//components/sync_preferences",
    "//components/sync_preferences:test_support",
    "//components/unified_consent",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/prefs/model",
    "//ios/chrome/browser/settings/model/sync/utils",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/prefs:browser_prefs",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/ui/table_view",
    "//ios/chrome/browser/shared/ui/table_view:test_support",
    "//ios/chrome/browser/shared/ui/table_view/cells",
    "//ios/chrome/browser/signin/model",
    "//ios/chrome/browser/signin/model:system_identity",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/sync/model:test_support",
    "//ios/chrome/browser/ui/settings:settings_root",
    "//ios/chrome/browser/ui/settings:test_support",
    "//ios/chrome/browser/ui/settings/cells",
    "//ios/chrome/browser/ui/settings/content_settings",
    "//ios/web/public/test",
    "//testing/gtest",
    "//ui/base",
  ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [ "sync_encryption_passphrase_table_view_controller_egtest.mm" ]
  deps = [
    "//base/test:test_support",
    "//components/feature_engagement/public",
    "//components/strings",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/metrics/model:eg_test_support+eg2",
    "//ios/chrome/browser/signin/model:fake_system_identity",
    "//ios/chrome/browser/ui/authentication:eg_test_support+eg2",
    "//ios/chrome/browser/ui/settings:constants",
    "//ios/chrome/browser/ui/settings:eg_test_support+eg2",
    "//ios/chrome/browser/ui/settings/google_services:constants",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//ui/base",
  ]
  frameworks = [ "UIKit.framework" ]
}