# Copyright 2017 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("session_metrics") {
sources = [
"session_metrics.cc",
"session_metrics.h",
]
deps = [
"//base",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/profile",
]
}
source_set("model") {
sources = [
"web_state_dependency_installation_observer.h",
"web_state_dependency_installation_observer.mm",
"web_state_dependency_installer_bridge.h",
"web_state_dependency_installer_bridge.mm",
"web_state_list_favicon_driver_observer.h",
"web_state_list_favicon_driver_observer.mm",
]
deps = [
"//base",
"//components/favicon/core",
"//components/favicon/ios",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/web/public",
"//ios/web/public:web_state_observer",
]
frameworks = [ "Foundation.framework" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"session_metrics_unittest.cc",
"web_state_dependency_installation_observer_unittest.mm",
"web_state_dependency_installer_bridge_unittest.mm",
"web_state_list_favicon_driver_observer_unittest.mm",
]
deps = [
":model",
":session_metrics",
"//base/test:test_support",
"//components/favicon/ios",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/browser/test:test_support",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/shared/model/web_state_list/test:test_support",
"//ios/chrome/browser/url_loading/model:new_tab_animation_tab_helper",
"//ios/web/public/navigation",
"//ios/web/public/navigation:referrer",
"//ios/web/public/session",
"//ios/web/public/test",
"//ios/web/public/test/fakes",
"//testing/gtest",
"//ui/gfx",
"//url",
]
}