chromium/ios/chrome/browser/ntp/ui_bundled/feed_management/BUILD.gn

# Copyright 2022 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("feed_management") {
  sources = [
    "feed_management_coordinator.h",
    "feed_management_coordinator.mm",
  ]
  deps = [
    ":feed_management_ui",
    "//ios/chrome/browser/favicon/model",
    "//ios/chrome/browser/follow/model:browser_agent",
    "//ios/chrome/browser/follow/ui_bundled",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/ui/table_view",
    "//ios/chrome/browser/ntp/shared/metrics",
  ]
  public_deps = [ ":navigation_delegate" ]
}

source_set("feed_management_ui") {
  sources = [
    "feed_management_view_controller.h",
    "feed_management_view_controller.mm",
  ]
  deps = [
    ":navigation_delegate",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/shared/ui/table_view",
    "//ios/chrome/browser/shared/ui/table_view/cells",
    "//ui/base",
  ]
}

source_set("navigation_delegate") {
  sources = [ "feed_management_navigation_delegate.h" ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [ "feed_management_egtest.mm" ]
  deps = [
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/signin/model:fake_system_identity",
    "//ios/chrome/browser/ui/authentication:eg_test_support+eg2",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/testing/earl_grey:eg_test_support+eg2",
  ]
}