| # Copyright 2021 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("feature_flags") { |
| sources = [ |
| "start_surface_features.h", |
| "start_surface_features.mm", |
| ] |
| |
| configs += [ "//build/config/compiler:enable_arc" ] |
| |
| deps = [ |
| "//base", |
| "//ui/base", |
| ] |
| } |
| |
| source_set("start_surface") { |
| sources = [ |
| "start_surface_recent_tab_browser_agent.h", |
| "start_surface_recent_tab_browser_agent.mm", |
| "start_surface_recent_tab_removal_observer_bridge.h", |
| "start_surface_recent_tab_removal_observer_bridge.mm", |
| "start_surface_scene_agent.h", |
| "start_surface_scene_agent.mm", |
| "start_surface_util.h", |
| "start_surface_util.mm", |
| ] |
| |
| configs += [ "//build/config/compiler:enable_arc" ] |
| |
| deps = [ |
| ":feature_flags", |
| "//base", |
| "//components/favicon/ios", |
| "//ios/chrome/app/application_delegate:app_state_header", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/ntp", |
| "//ios/chrome/browser/shared/coordinator/scene:observing_scene_agent", |
| "//ios/chrome/browser/shared/coordinator/scene:scene_state_browser_agent", |
| "//ios/chrome/browser/shared/coordinator/scene:scene_state_header", |
| "//ios/chrome/browser/shared/model/url", |
| "//ios/chrome/browser/shared/model/url:constants", |
| "//ios/chrome/browser/shared/model/web_state_list", |
| "//ios/chrome/browser/shared/public/features", |
| "//ios/chrome/browser/web_state_list:agents", |
| "//ios/web/public", |
| "//ios/web/public:web_state_observer", |
| "//ui/base", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| |
| sources = [ "start_surface_scene_agent_unittest.mm" ] |
| deps = [ |
| ":feature_flags", |
| ":start_surface", |
| "//base", |
| "//base/test:test_support", |
| "//components/favicon/ios", |
| "//ios/chrome/app:app_internal", |
| "//ios/chrome/app/application_delegate:app_state_header", |
| "//ios/chrome/app/application_delegate:application_delegate_internal", |
| "//ios/chrome/app/application_delegate:test_support", |
| "//ios/chrome/browser/ntp", |
| "//ios/chrome/browser/shared/coordinator/scene", |
| "//ios/chrome/browser/shared/coordinator/scene/test", |
| "//ios/chrome/browser/shared/model/browser_state:test_support", |
| "//ios/chrome/browser/shared/model/url", |
| "//ios/chrome/browser/shared/model/url:constants", |
| "//ios/chrome/browser/shared/model/web_state_list", |
| "//ios/chrome/browser/shared/public/features", |
| "//ios/chrome/test:test_support", |
| "//ios/web/public/test/fakes", |
| "//testing/gtest", |
| "//third_party/ocmock", |
| ] |
| } |
| |
| source_set("eg2_tests") { |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| |
| sources = [ "start_surface_egtest.mm" ] |
| |
| deps = [ |
| ":feature_flags", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/ui/content_suggestions:feature_flags", |
| "//ios/chrome/test/earl_grey:eg_test_support+eg2", |
| "//ios/testing/earl_grey:eg_test_support+eg2", |
| "//net:test_support", |
| "//ui/base", |
| ] |
| |
| frameworks = [ "UIKit.framework" ] |
| } |