# Copyright 2017 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("payments") {
  sources = [
    "sc_payments_editor_coordinator.h",
    "sc_payments_editor_coordinator.mm",
    "sc_payments_picker_coordinator.h",
    "sc_payments_picker_coordinator.mm",
    "sc_payments_selector_coordinator.h",
    "sc_payments_selector_coordinator.mm",
  ]
  deps = [
    "//base",
    "//ios/chrome/browser/ui/autofill",
    "//ios/chrome/browser/ui/autofill:autofill_ui",
    "//ios/chrome/browser/ui/autofill/cells",
    "//ios/chrome/browser/ui/collection_view/cells",
    "//ios/chrome/browser/ui/payments:payments_ui",
    "//ios/chrome/browser/ui/payments/cells",
    "//ios/chrome/browser/ui/settings/cells",
    "//ios/showcase/common",
  ]
  libs = [ "UIKit.framework" ]
  configs += [ "//build/config/compiler:enable_arc" ]
}

source_set("eg_tests") {
  testonly = true
  sources = [
    "sc_payments_editor_egtest.mm",
    "sc_payments_picker_egtest.mm",
    "sc_payments_selector_egtest.mm",
  ]
  deps = [
    "//base",
    "//components/strings",
    "//ios/chrome/app/strings:ios_strings_grit",
    "//ios/chrome/browser/ui",
    "//ios/chrome/browser/ui/autofill:autofill_ui",
    "//ios/chrome/browser/ui/payments:payments_ui",
    "//ios/chrome/browser/ui/settings",
    "//ios/chrome/test/earl_grey:test_support",
    "//ios/showcase/test",
    "//ios/third_party/earl_grey:earl_grey+link",
    "//ui/base",
  ]
  configs += [ "//build/config/compiler:enable_arc" ]
}
