| # Copyright 2016 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("safe_mode") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "safe_mode_coordinator.h", |
| "safe_mode_coordinator.mm", |
| "safe_mode_view_controller.h", |
| "safe_mode_view_controller.mm", |
| ] |
| |
| deps = [ |
| "resources:fatal_error", |
| "//base", |
| "//ios/chrome/app", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/crash_report", |
| "//ios/chrome/browser/safe_mode", |
| "//ios/chrome/browser/ui/coordinators:chrome_coordinators", |
| "//ios/chrome/browser/ui/fancy_ui", |
| "//ios/chrome/browser/ui/util", |
| "//ios/chrome/common/crash_report", |
| "//ios/chrome/common/ui/colors", |
| "//ui/base", |
| "//ui/gfx", |
| ] |
| |
| frameworks = [ "UIKit.framework" ] |
| } |
| |
| source_set("eg_app_support+eg2") { |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ |
| "safe_mode_app_interface.h", |
| "safe_mode_app_interface.mm", |
| ] |
| deps = [ |
| ":safe_mode", |
| "//ios/chrome/test/app:test_support", |
| ] |
| } |
| |
| source_set("eg_test_support+eg2") { |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| |
| sources = [ |
| "safe_mode_app_interface.h", |
| "safe_mode_app_interface_stub.mm", |
| ] |
| deps = [ "//ios/third_party/earl_grey2:test_lib" ] |
| } |
| |
| source_set("eg2_tests") { |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ "safe_mode_egtest.mm" ] |
| deps = [ |
| ":eg_test_support+eg2", |
| "//base:base", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/ui:feature_flags", |
| "//ios/chrome/test/earl_grey:eg_test_support+eg2", |
| "//ios/testing:block_swizzler", |
| "//ios/testing/earl_grey:eg_test_support+eg2", |
| "//ios/third_party/earl_grey2:test_lib", |
| "//ui/base", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |
| |
| source_set("unit_tests") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ |
| "safe_mode_coordinator_unittest.mm", |
| "safe_mode_view_controller_unittest.mm", |
| ] |
| deps = [ |
| ":safe_mode", |
| "//base", |
| "//base/test:test_support", |
| "//components/crash/core/app", |
| "//components/crash/core/common:reporter_running_ios", |
| "//ios/chrome/browser/crash_report", |
| "//ios/chrome/common/crash_report", |
| "//ios/testing:block_swizzler", |
| "//testing/gtest", |
| "//third_party/crashpad/crashpad/client", |
| "//third_party/ocmock", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |