chromium/ios/chrome/browser/app_launcher/model/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.

import("//build/config/ios/rules.gni")

source_set("model") {
  sources = [
    "app_launcher_abuse_detector.h",
    "app_launcher_abuse_detector.mm",
    "app_launcher_browser_agent.h",
    "app_launcher_browser_agent.mm",
    "app_launcher_tab_helper.h",
    "app_launcher_tab_helper.mm",
    "app_launcher_tab_helper_browser_presentation_provider.h",
    "app_launcher_tab_helper_delegate.h",
    "app_launching_state.h",
    "app_launching_state.mm",
  ]
  deps = [
    "//base",
    "//components/policy/core/browser",
    "//components/reading_list/core:core",
    "//ios/chrome/browser/mailto_handler/model",
    "//ios/chrome/browser/mailto_handler/model:mailto_handler_factory",
    "//ios/chrome/browser/overlays/model",
    "//ios/chrome/browser/overlays/model/public/web_content_area",
    "//ios/chrome/browser/policy_url_blocking/model",
    "//ios/chrome/browser/policy_url_blocking/model:util",
    "//ios/chrome/browser/reading_list/model",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_observer",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/model/url",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/tabs/model",
    "//ios/web/common",
    "//ios/web/public",
    "//url",
  ]
}

source_set("test_support") {
  testonly = true
  sources = [
    "fake_app_launcher_abuse_detector.h",
    "fake_app_launcher_abuse_detector.mm",
  ]
  deps = [
    ":model",
    "//base",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "app_launcher_abuse_detector_unittest.mm",
    "app_launcher_browser_agent_unittest.mm",
    "app_launcher_tab_helper_unittest.mm",
    "app_launching_state_unittest.mm",
  ]
  deps = [
    ":model",
    ":test_support",
    "//base",
    "//base/test:test_support",
    "//components/policy/core/common:common_constants",
    "//components/policy/core/common:test_support",
    "//components/pref_registry",
    "//components/prefs",
    "//components/reading_list/core:core",
    "//components/sync_preferences",
    "//ios/chrome/app/application_delegate:app_state_header",
    "//ios/chrome/browser/overlays/model",
    "//ios/chrome/browser/overlays/model/public/web_content_area",
    "//ios/chrome/browser/policy/model:test_support",
    "//ios/chrome/browser/policy_url_blocking/model",
    "//ios/chrome/browser/prefs/model",
    "//ios/chrome/browser/reading_list/model",
    "//ios/chrome/browser/reading_list/model:test_support",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/prefs:browser_prefs",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/model/url",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/web/model:web_internal",
    "//ios/web/common:features",
    "//ios/web/public/test",
    "//ios/web/public/test/fakes",
    "//testing/gtest",
    "//third_party/ocmock",
    "//url",
  ]
}