| # 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. |
| |
| import("//build/config/chrome_build.gni") |
| |
| source_set("unified_consent") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "unified_consent_coordinator.h", |
| "unified_consent_coordinator.mm", |
| "unified_consent_mediator.h", |
| "unified_consent_mediator.mm", |
| ] |
| deps = [ |
| ":unified_consent_ui", |
| "//base", |
| "//ios/chrome/browser/shared/coordinator/chrome_coordinator", |
| "//ios/chrome/browser/shared/model/browser", |
| "//ios/chrome/browser/shared/model/browser_state", |
| "//ios/chrome/browser/shared/public/commands", |
| "//ios/chrome/browser/signin", |
| "//ios/chrome/browser/signin:system_identity", |
| "//ios/chrome/browser/sync", |
| "//ios/chrome/browser/ui/authentication/enterprise:enterprise_utils", |
| "//ios/chrome/browser/ui/authentication/unified_consent/identity_chooser", |
| ] |
| } |
| |
| source_set("unified_consent_ui") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "unified_consent_view_controller.h", |
| "unified_consent_view_controller.mm", |
| "unified_consent_view_controller_delegate.h", |
| ] |
| deps = [ |
| "resources:identity_picker_view_arrow_down", |
| "resources:identity_picker_view_arrow_right", |
| "resources:unified_consent_header", |
| "//base", |
| "//components/google/core/common", |
| "//components/password_manager/core/common:features", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/shared/model/application_context", |
| "//ios/chrome/browser/shared/model/url:constants", |
| "//ios/chrome/browser/shared/public/features", |
| "//ios/chrome/browser/shared/ui/util", |
| "//ios/chrome/browser/ui/authentication:authentication_constants", |
| "//ios/chrome/browser/ui/authentication/unified_consent/identity_chooser:identity_chooser_ui", |
| "//ios/chrome/browser/ui/authentication/views", |
| "//ios/chrome/common:string_util", |
| "//ios/chrome/common/ui/colors", |
| "//ios/chrome/common/ui/util", |
| "//ui/base", |
| ] |
| public_deps = [ ":constants" ] |
| } |
| |
| source_set("constants") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "unified_consent_constants.h", |
| "unified_consent_constants.mm", |
| ] |
| frameworks = [ "Foundation.framework" ] |
| } |
| |
| source_set("unit_tests") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ |
| "unified_consent_mediator_unittest.mm", |
| "unified_consent_view_controller_unittest.mm", |
| ] |
| deps = [ |
| ":unified_consent", |
| ":unified_consent_ui", |
| "//base/test:test_support", |
| "//components/prefs:test_support", |
| "//ios/chrome/browser/shared/model/application_context", |
| "//ios/chrome/browser/shared/model/browser/test:test_support", |
| "//ios/chrome/browser/shared/model/browser_state:test_support", |
| "//ios/chrome/browser/signin", |
| "//ios/chrome/browser/signin:fake_system_identity", |
| "//ios/chrome/browser/signin:fake_system_identity_manager", |
| "//ios/chrome/browser/signin:test_support", |
| "//ios/chrome/browser/unified_consent", |
| "//ios/chrome/common:string_util", |
| "//ios/chrome/test:test_support", |
| "//ios/web/public/test", |
| "//testing/gmock", |
| "//testing/gtest", |
| "//third_party/ocmock", |
| "//ui/base", |
| ] |
| } |