# Copyright 2022 The Chromium Authors. All rights resAerved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/apple/swift_source_set.gni")
import("//build/config/ios/ios_test_runner_xcuitest.gni")
import("//build/config/ios/rules.gni")

ios_app_bundle("ios_swift_interop_xcuitests") {
  testonly = true
  info_plist = "host-Info.plist"
  sources = [ "test_host.mm" ]
  frameworks = [
    "UIKit.framework",
    "Foundation.framework",
  ]
}

ios_test_runner_xcuitest("ios_swift_interop_xcuitests_module") {
  xcode_test_application_name = "ios_swift_interop_xcuitests"
  deps = []
  if (enable_swift_cxx_interop) {
    deps += [
      "//ios/chrome/test/swift_interop/chromium:tests",
      "//ios/chrome/test/swift_interop/classes:tests",
      "//ios/chrome/test/swift_interop/closure:tests",
      "//ios/chrome/test/swift_interop/enum:tests",
      "//ios/chrome/test/swift_interop/namespace:tests",
      "//ios/chrome/test/swift_interop/objc:tests",
      "//ios/chrome/test/swift_interop/pointer:tests",
      "//ios/chrome/test/swift_interop/std:tests",
      "//ios/chrome/test/swift_interop/struct:tests",
    ]
  }

  data_deps = [ ":ios_swift_interop_xcuitests" ]
}
