# 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("model") {
sources = [
"image_search_param_generator.h",
"image_search_param_generator.mm",
"scene_url_loading_service.h",
"scene_url_loading_service.mm",
"url_loading_browser_agent.h",
"url_loading_browser_agent.mm",
"url_loading_notifier_browser_agent.h",
"url_loading_notifier_browser_agent.mm",
"url_loading_observer.h",
"url_loading_observer.mm",
"url_loading_observer_bridge.h",
"url_loading_observer_bridge.mm",
"url_loading_params.h",
"url_loading_params.mm",
"url_loading_util.h",
"url_loading_util.mm",
]
public_deps = [ "//base" ]
deps = [
"//components/keyed_service/ios",
"//components/search_engines",
"//components/sessions",
"//ios/chrome/app:mode",
"//ios/chrome/app/application_delegate:tab_opening",
"//ios/chrome/browser/crash_report/model:model_internal",
"//ios/chrome/browser/feature_engagement/model",
"//ios/chrome/browser/incognito_reauth/ui_bundled:incognito_reauth_scene_agent",
"//ios/chrome/browser/ntp/model:util",
"//ios/chrome/browser/policy/model:policy_util",
"//ios/chrome/browser/prerender/model",
"//ios/chrome/browser/sessions/model",
"//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
"//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:constants",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/snapshots/model",
"//ios/chrome/browser/tab_insertion/model",
"//ios/chrome/browser/web/model",
"//ios/components/webui:url_constants",
"//ios/web/public",
"//ui/base",
"//url",
]
}
source_set("url_loading_params_header") {
sources = [ "url_loading_params.h" ]
deps = [
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/shared/public/commands",
"//ios/web/public",
"//ui/base",
]
}
source_set("new_tab_animation_tab_helper") {
sources = [
"new_tab_animation_tab_helper.h",
"new_tab_animation_tab_helper.mm",
]
deps = [
"//base",
"//ios/web/public",
]
}
source_set("test_support") {
testonly = true
sources = [
"fake_url_loading_browser_agent.h",
"fake_url_loading_browser_agent.mm",
"test_scene_url_loading_service.h",
"test_scene_url_loading_service.mm",
]
deps = [ ":model" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"image_search_param_generator_unittest.mm",
"url_loading_browser_agent_unittest.mm",
"url_loading_observer_bridge_unittest.mm",
]
deps = [
":model",
":test_support",
"//base",
"//base/test:test_support",
"//ios/chrome/browser/ntp/model",
"//ios/chrome/browser/search_engines/model",
"//ios/chrome/browser/shared/model/browser/test:test_support",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/tab_insertion/model",
"//ios/chrome/browser/web/model",
"//ios/chrome/browser/web/model:web_internal",
"//ios/chrome/browser/web_state_list/model/web_usage_enabler",
"//ios/chrome/test:test_support",
"//ios/testing:ocmock_support",
"//ios/web",
"//ios/web/public/test",
"//ios/web/public/test/fakes",
"//testing/gmock",
"//testing/gtest",
"//third_party/ocmock",
"//ui/base",
"//ui/base:test_support",
"//url",
]
}