chromium/ios/chrome/browser/sad_tab/ui_bundled/BUILD.gn

# Copyright 2016 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("ui_bundled") {
  sources = [
    "sad_tab_view.h",
    "sad_tab_view.mm",
    "sad_tab_view_controller.h",
    "sad_tab_view_controller.mm",
  ]
  deps = [
    "//base",
    "//components/resources",
    "//components/strings",
    "//components/ui_metrics",
    "//ios/chrome/browser/overscroll_actions/ui_bundled",
    "//ios/chrome/browser/shared/model/url:constants",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/web/model",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/util",
    "//ios/web",
    "//net",
    "//ui/base",
    "//ui/gfx",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("coordinator") {
  sources = [
    "sad_tab_coordinator.h",
    "sad_tab_coordinator.mm",
  ]
  deps = [
    ":ui_bundled",
    "//components/ui_metrics",
    "//ios/chrome/browser/overscroll_actions/ui_bundled",
    "//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/profile",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/ui/fullscreen:coordinators",
    "//ios/chrome/browser/web/model",
    "//ios/chrome/browser/web/model:tab_helper_delegates",
    "//ios/chrome/browser/web_state_list/model",
    "//ios/chrome/common/ui/util",
    "//ios/web",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "sad_tab_coordinator_unittest.mm",
    "sad_tab_view_controller_unittest.mm",
  ]
  deps = [
    "//components/strings",
    "//ios/chrome/browser/lens/model",
    "//ios/chrome/browser/sad_tab/ui_bundled",
    "//ios/chrome/browser/sad_tab/ui_bundled:coordinator",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/web/model",
    "//ios/chrome/common/ui/util",
    "//ios/web/public/test",
    "//ios/web/public/test/fakes",
    "//testing/gtest",
    "//third_party/ocmock",
    "//ui/base",
  ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [ "sad_tab_view_egtest.mm" ]

  deps = [
    "//components/strings",
    "//ios/chrome/browser/ui/popup_menu:constants",
    "//ios/chrome/test:eg_test_support+eg2",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/testing:embedded_test_server_support",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//net:test_support",
    "//ui/base",
  ]

  frameworks = [ "UIKit.framework" ]
}