# Copyright 2023 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("privacy_guide") {
sources = [
"privacy_guide_coordinator_delegate.h",
"privacy_guide_history_sync_coordinator.h",
"privacy_guide_history_sync_coordinator.mm",
"privacy_guide_main_coordinator.h",
"privacy_guide_main_coordinator.mm",
"privacy_guide_main_coordinator_delegate.h",
"privacy_guide_safe_browsing_coordinator.h",
"privacy_guide_safe_browsing_coordinator.mm",
"privacy_guide_url_usage_coordinator.h",
"privacy_guide_url_usage_coordinator.mm",
"privacy_guide_url_usage_mediator.h",
"privacy_guide_url_usage_mediator.mm",
"privacy_guide_welcome_coordinator.h",
"privacy_guide_welcome_coordinator.mm",
]
deps = [
":privacy_guide_constants",
":privacy_guide_ui",
"//base",
"//components/unified_consent",
"//ios/chrome/browser/shared/coordinator/chrome_coordinator",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/prefs",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/common/ui/promo_style",
]
}
source_set("privacy_guide_ui") {
sources = [
"privacy_guide_commands.h",
"privacy_guide_history_sync_view_controller.h",
"privacy_guide_history_sync_view_controller.mm",
"privacy_guide_url_usage_consumer.h",
"privacy_guide_url_usage_view_controller.h",
"privacy_guide_url_usage_view_controller.mm",
"privacy_guide_url_usage_view_controller_delegate.h",
"privacy_guide_utils.h",
"privacy_guide_utils.mm",
"privacy_guide_view_controller_presentation_delegate.h",
"privacy_guide_welcome_view_controller.h",
"privacy_guide_welcome_view_controller.mm",
]
deps = [
":privacy_guide_constants",
"//base",
"//ios/chrome/app/strings",
"//ios/chrome/browser/shared/ui/elements",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/browser/shared/ui/table_view:utils",
"//ios/chrome/browser/shared/ui/table_view/cells",
"//ios/chrome/browser/ui/settings/cells",
"//ios/chrome/browser/ui/settings/privacy/privacy_guide/resources",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/promo_style",
"//ui/base",
]
}
source_set("privacy_guide_constants") {
sources = [
"privacy_guide_constants.h",
"privacy_guide_constants.mm",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "privacy_guide_main_coordinator_unittest.mm" ]
deps = [
":privacy_guide",
"//base/test:test_support",
"//ios/chrome/browser/shared/model/browser/test:test_support",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/chrome/test:test_support",
"//testing/gtest",
]
}
source_set("eg2_tests") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [ "privacy_guide_egtest.mm" ]
deps = [
":features",
":privacy_guide_constants",
"//components/unified_consent",
"//ios/chrome/app/strings",
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:launch_configuration",
]
frameworks = [ "UIKit.framework" ]
}
source_set("features") {
sources = [
"features.h",
"features.mm",
]
deps = [ "//base" ]
}