# 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.
import("//build/config/chrome_build.gni")
source_set("signout_action_sheet") {
sources = [
"signout_action_sheet_coordinator.h",
"signout_action_sheet_coordinator.mm",
]
deps = [
"//base",
"//components/browser_sync",
"//components/signin/public/base",
"//components/strings",
"//components/sync/base:features",
"//components/sync/service",
"//ios/chrome/app/strings",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/shared/ui/util",
"//ios/chrome/browser/shared/ui/util:snackbar_util",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/signin/model:constants",
"//ios/chrome/browser/sync/model",
"//ios/chrome/browser/ui/authentication",
"//ios/third_party/material_components_ios",
"//ui/base",
]
public_deps = [ "//ios/chrome/browser/shared/coordinator/alert" ]
}
source_set("unit_tests") {
testonly = true
sources = [ "signout_action_sheet_coordinator_unittest.mm" ]
deps = [
":signout_action_sheet",
"//base",
"//base/test:test_support",
"//components/prefs",
"//components/signin/public/base",
"//components/sync:test_support",
"//ios/chrome/browser/policy/model:policy_util",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser/test:test_support",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/signin/model:fake_system_identity",
"//ios/chrome/browser/signin/model:fake_system_identity_manager",
"//ios/chrome/browser/signin/model:test_support",
"//ios/chrome/browser/sync/model",
"//ios/chrome/browser/sync/model:test_support",
"//ios/chrome/test:test_support",
"//third_party/ocmock",
"//ui/strings",
]
}
source_set("eg2_tests") {
configs += [ "//build/config/ios:xctest_config" ]
testonly = true
sources = [ "signout_action_sheet_egtest.mm" ]
deps = [
"//base",
"//base/test:test_support",
"//build:branding_buildflags",
"//components/policy/core/common:common_constants",
"//components/sync/base:features",
"//ios/chrome/app/strings",
"//ios/chrome/browser/metrics/model:eg_test_support+eg2",
"//ios/chrome/browser/ntp/ui_bundled:feature_flags",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/signin/model:fake_system_identity",
"//ios/chrome/browser/ui/authentication:eg_test_support+eg2",
"//ios/chrome/browser/ui/settings/google_services:constants",
"//ios/chrome/browser/ui/settings/google_services/manage_accounts:constants",
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:launch_configuration",
"//ui/base",
]
frameworks = [ "UIKit.framework" ]
}