chromium/ios/chrome/browser/tabs/ui_bundled/tests/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("fake_distant_tab") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [
    "fake_distant_tab.h",
    "fake_distant_tab.mm",
  ]
  deps = [
    "//base",
    "//url",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("eg_app_support+eg2") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [
    "distant_tabs_app_interface.h",
    "distant_tabs_app_interface.mm",
  ]
  deps = [
    ":fake_distant_tab",
    "//base",
    "//base/test:test_support",
    "//components/sync_device_info",
    "//ios/chrome/browser/synced_sessions/model",
    "//ios/chrome/test/app:test_support",
    "//ios/testing/earl_grey:eg_app_support+eg2",
    "//url",
  ]
}

source_set("eg_test_support+eg2") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [
    "distant_tabs_app_interface.h",
    "distant_tabs_app_interface_stub.mm",
  ]
  deps = [
    "//base",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//url",
  ]
}