chromium/ios/chrome/browser/shared/ui/table_view/cells/BUILD.gn

# Copyright 2018 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("cells") {
  sources = [
    "table_view_activity_indicator_header_footer_item.h",
    "table_view_activity_indicator_header_footer_item.mm",
    "table_view_attributed_string_header_footer_item.h",
    "table_view_attributed_string_header_footer_item.mm",
    "table_view_cell.h",
    "table_view_cell.mm",
    "table_view_detail_icon_item.h",
    "table_view_detail_icon_item.mm",
    "table_view_detail_text_item.h",
    "table_view_detail_text_item.mm",
    "table_view_disclosure_header_footer_item.h",
    "table_view_disclosure_header_footer_item.mm",
    "table_view_header_footer_item.h",
    "table_view_header_footer_item.mm",
    "table_view_illustrated_item.h",
    "table_view_illustrated_item.mm",
    "table_view_image_item.h",
    "table_view_image_item.mm",
    "table_view_info_button_cell.h",
    "table_view_info_button_cell.mm",
    "table_view_info_button_item.h",
    "table_view_info_button_item.mm",
    "table_view_info_button_item_delegate.h",
    "table_view_item.h",
    "table_view_item.mm",
    "table_view_link_header_footer_item.h",
    "table_view_link_header_footer_item.mm",
    "table_view_multi_detail_text_item.h",
    "table_view_multi_detail_text_item.mm",
    "table_view_multi_line_text_edit_item.h",
    "table_view_multi_line_text_edit_item.mm",
    "table_view_multi_line_text_edit_item_delegate.h",
    "table_view_switch_cell.h",
    "table_view_switch_cell.mm",
    "table_view_switch_item.h",
    "table_view_switch_item.mm",
    "table_view_tabs_search_suggested_history_item.h",
    "table_view_tabs_search_suggested_history_item.mm",
    "table_view_text_button_item.h",
    "table_view_text_button_item.mm",
    "table_view_text_edit_item.h",
    "table_view_text_edit_item.mm",
    "table_view_text_edit_item_delegate.h",
    "table_view_text_header_footer_item.h",
    "table_view_text_header_footer_item.mm",
    "table_view_text_item.h",
    "table_view_text_item.mm",
    "table_view_text_link_item.h",
    "table_view_text_link_item.mm",
    "table_view_url_item.h",
    "table_view_url_item.mm",
  ]

  deps = [
    "//base",
    "//base:i18n",
    "//components/url_formatter",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/elements",
    "//ios/chrome/browser/shared/ui/list_model",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/table_view:styler",
    "//ios/chrome/browser/shared/ui/table_view/cells/resources",
    "//ios/chrome/browser/ui/settings/cells:public",
    "//ios/chrome/browser/ui/tab_switcher/tab_grid/suggested_actions/resources",
    "//ios/chrome/common:string_util",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/favicon",
    "//ios/chrome/common/ui/table_view",
    "//ios/chrome/common/ui/table_view:cells_constants",
    "//ios/chrome/common/ui/util",
    "//ios/third_party/material_components_ios",
    "//net",
    "//ui/base",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "table_view_detail_icon_item_unittest.mm",
    "table_view_detail_text_item_unittest.mm",
    "table_view_header_footer_item_unittest.mm",
    "table_view_image_item_unittest.mm",
    "table_view_item_unittest.mm",
    "table_view_multi_detail_text_item_unittest.mm",
    "table_view_multi_line_text_edit_item_unittest.mm",
    "table_view_text_button_item_unittest.mm",
    "table_view_text_edit_item_unittest.mm",
    "table_view_text_header_footer_item_unittest.mm",
    "table_view_text_item_unittest.mm",
    "table_view_url_item_unittest.mm",
  ]

  deps = [
    ":cells",
    "//base",
    "//base/test:test_support",
    "//components/url_formatter",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/symbols:icons",
    "//ios/chrome/browser/shared/ui/table_view:styler",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/table_view:cells_constants",
    "//net:net",
    "//testing/gtest",
    "//third_party/ocmock:ocmock",
  ]
}