sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 1 | # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | source_set("application_delegate") { |
| 6 | sources = [ |
| 7 | "memory_warning_helper.h", |
| 8 | "memory_warning_helper.mm", |
| 9 | ] |
| 10 | deps = [ |
| 11 | "//base", |
| 12 | "//ios/chrome/browser/crash_report", |
| 13 | "//ios/chrome/browser/metrics", |
| 14 | ] |
| 15 | libs = [ "Foundation.framework" ] |
stkhapugin | 96c43169 | 2016-11-15 15:40:32 | [diff] [blame] | 16 | |
| 17 | configs += [ "//build/config/compiler:enable_arc" ] |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | source_set("unit_tests") { |
stkhapugin | 3c11a69 | 2017-02-20 17:59:33 | [diff] [blame] | 21 | configs += [ "//build/config/compiler:enable_arc" ] |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 22 | testonly = true |
| 23 | sources = [ |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 24 | "app_state_unittest.mm", |
| 25 | "background_activity_unittest.mm", |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 26 | "memory_warning_helper_unittest.mm", |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 27 | "metrics_mediator_unittest.mm", |
| 28 | "url_opener_unittest.mm", |
| 29 | "user_activity_handler_unittest.mm", |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 30 | ] |
| 31 | deps = [ |
| 32 | ":application_delegate", |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 33 | ":application_delegate_internal", |
| 34 | ":test_support", |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 35 | "//base", |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 36 | "//base/test:test_support", |
| 37 | "//breakpad:client", |
| 38 | "//components/handoff", |
| 39 | "//components/metrics", |
| 40 | "//ios/chrome/app", |
| 41 | "//ios/chrome/app:app_internal", |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 42 | "//ios/chrome/app/safe_mode", |
| 43 | "//ios/chrome/app/spotlight", |
| 44 | "//ios/chrome/browser", |
| 45 | "//ios/chrome/browser/browser_state:test_support", |
| 46 | "//ios/chrome/browser/crash_report", |
| 47 | "//ios/chrome/browser/device_sharing", |
| 48 | "//ios/chrome/browser/geolocation", |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 49 | "//ios/chrome/browser/metrics", |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 50 | "//ios/chrome/browser/tabs", |
| 51 | "//ios/chrome/browser/u2f", |
| 52 | "//ios/chrome/browser/ui:ui_internal", |
| 53 | "//ios/chrome/browser/ui/main", |
| 54 | "//ios/chrome/browser/ui/settings", |
| 55 | "//ios/chrome/test:test_support", |
| 56 | "//ios/chrome/test/base", |
| 57 | "//ios/chrome/test/ocmock", |
| 58 | "//ios/public/provider/chrome/browser:test_support", |
| 59 | "//ios/public/provider/chrome/browser/distribution", |
| 60 | "//ios/public/provider/chrome/browser/user_feedback:test_support", |
| 61 | "//ios/testing:ocmock_support", |
| 62 | "//ios/web", |
baxley | 66cc96f0 | 2017-05-31 18:13:32 | [diff] [blame] | 63 | "//ios/web/public/test", |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 64 | "//net:test_support", |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 65 | "//testing/gtest", |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 66 | "//third_party/ocmock", |
| 67 | "//ui/base", |
| 68 | "//url", |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 69 | ] |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 70 | libs = [ |
| 71 | "CoreSpotlight.framework", |
| 72 | "QuartzCore.framework", |
| 73 | ] |
| 74 | } |
| 75 | |
| 76 | source_set("application_delegate_internal") { |
stkhapugin | 76a6b9b2 | 2017-01-19 13:49:26 | [diff] [blame] | 77 | configs += [ "//build/config/compiler:enable_arc" ] |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 78 | sources = [ |
| 79 | "app_navigation.h", |
| 80 | "app_state.h", |
| 81 | "app_state.mm", |
| 82 | "background_activity.h", |
| 83 | "background_activity.mm", |
| 84 | "browser_launcher.h", |
| 85 | "metrics_mediator.h", |
| 86 | "metrics_mediator.mm", |
| 87 | "startup_information.h", |
| 88 | "tab_opening.h", |
| 89 | "tab_switching.h", |
| 90 | "url_opener.h", |
| 91 | "url_opener.mm", |
| 92 | "user_activity_handler.h", |
| 93 | "user_activity_handler.mm", |
| 94 | ] |
| 95 | deps = [ |
sdefresne | 037962f | 2017-01-05 08:51:39 | [diff] [blame] | 96 | ":application_delegate", |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 97 | "//base", |
| 98 | "//components/crash/core/common", |
Cooper Knaak | 82a2c84 | 2017-07-14 02:42:40 | [diff] [blame] | 99 | "//components/feature_engagement_tracker", |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 100 | "//components/handoff", |
| 101 | "//components/metrics", |
| 102 | "//components/prefs", |
| 103 | "//ios/chrome/app", |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 104 | "//ios/chrome/app/safe_mode", |
| 105 | "//ios/chrome/app/spotlight", |
gambard | f869693 | 2017-07-06 14:01:36 | [diff] [blame] | 106 | "//ios/chrome/app/startup", |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 107 | "//ios/chrome/browser", |
| 108 | "//ios/chrome/browser/browser_state", |
| 109 | "//ios/chrome/browser/crash_report", |
| 110 | "//ios/chrome/browser/device_sharing", |
Cooper Knaak | 82a2c84 | 2017-07-14 02:42:40 | [diff] [blame] | 111 | "//ios/chrome/browser/feature_engagement_tracker", |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 112 | "//ios/chrome/browser/geolocation", |
| 113 | "//ios/chrome/browser/metrics", |
| 114 | "//ios/chrome/browser/metrics:metrics_internal", |
| 115 | "//ios/chrome/browser/net", |
| 116 | "//ios/chrome/browser/tabs", |
| 117 | "//ios/chrome/browser/u2f", |
| 118 | "//ios/chrome/browser/ui", |
| 119 | "//ios/chrome/browser/ui:ui_internal", |
| 120 | "//ios/chrome/browser/ui/authentication", |
Mark Cogan | dfcdea7 | 2017-07-18 13:47:38 | [diff] [blame^] | 121 | "//ios/chrome/browser/ui/commands", |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 122 | "//ios/chrome/browser/ui/main", |
| 123 | "//ios/chrome/common/app_group:main_app", |
| 124 | "//ios/net", |
| 125 | "//ios/public/provider/chrome/browser", |
| 126 | "//ios/public/provider/chrome/browser/distribution", |
| 127 | "//ios/public/provider/chrome/browser/user_feedback", |
| 128 | "//ios/web", |
| 129 | "//net", |
| 130 | "//ui/base", |
| 131 | "//url", |
| 132 | ] |
| 133 | libs = [ |
| 134 | "CoreSpotlight.framework", |
| 135 | "UIKit.framework", |
| 136 | ] |
| 137 | } |
| 138 | |
| 139 | source_set("test_support") { |
stkhapugin | 9c58d92c | 2017-02-21 14:26:05 | [diff] [blame] | 140 | configs += [ "//build/config/compiler:enable_arc" ] |
sdefresne | 69edf1b | 2016-12-19 22:53:32 | [diff] [blame] | 141 | testonly = true |
| 142 | sources = [ |
| 143 | "app_state_testing.h", |
| 144 | "fake_startup_information.h", |
| 145 | "fake_startup_information.mm", |
| 146 | "metrics_mediator_testing.h", |
| 147 | "mock_tab_opener.h", |
| 148 | "mock_tab_opener.mm", |
| 149 | ] |
| 150 | deps = [ |
| 151 | ":application_delegate_internal", |
| 152 | "//base", |
| 153 | "//base/test:test_support", |
| 154 | "//ios/chrome/app:app_internal", |
| 155 | "//ios/chrome/browser", |
| 156 | "//net", |
| 157 | "//ui/base", |
| 158 | "//url", |
| 159 | ] |
| 160 | libs = [ "UIKit.framework" ] |
sdefresne | 87704da2 | 2016-10-26 17:01:19 | [diff] [blame] | 161 | } |