| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 source_set("metrics") { | 5 source_set("metrics") { |
| 6 configs += [ "//build/config/compiler:enable_arc" ] | 6 configs += [ "//build/config/compiler:enable_arc" ] |
| 7 sources = [ | 7 sources = [ |
| 8 "field_trial_synchronizer.cc", | 8 "field_trial_synchronizer.cc", |
| 9 "field_trial_synchronizer.h", | 9 "field_trial_synchronizer.h", |
| 10 "ios_chrome_metrics_service_accessor.cc", | 10 "ios_chrome_metrics_service_accessor.cc", |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 deps = [ | 71 deps = [ |
| 72 ":metrics", | 72 ":metrics", |
| 73 "//base", | 73 "//base", |
| 74 "//base/test:test_support", | 74 "//base/test:test_support", |
| 75 "//components/metrics", | 75 "//components/metrics", |
| 76 "//components/metrics:test_support", | 76 "//components/metrics:test_support", |
| 77 "//components/prefs", | 77 "//components/prefs", |
| 78 "//components/prefs:test_support", | 78 "//components/prefs:test_support", |
| 79 "//components/version_info", | 79 "//components/version_info", |
| 80 "//ios/chrome/test:test_support", | 80 "//ios/chrome/test:test_support", |
| 81 "//ios/web/public/test:test_support", |
| 81 "//testing/gtest", | 82 "//testing/gtest", |
| 82 ] | 83 ] |
| 83 } | 84 } |
| 84 | 85 |
| 85 source_set("metrics_internal") { | 86 source_set("metrics_internal") { |
| 86 configs += [ "//build/config/compiler:enable_arc" ] | 87 configs += [ "//build/config/compiler:enable_arc" ] |
| 87 sources = [ | 88 sources = [ |
| 88 "first_user_action_recorder.cc", | 89 "first_user_action_recorder.cc", |
| 89 "first_user_action_recorder.h", | 90 "first_user_action_recorder.h", |
| 90 "new_tab_page_uma.h", | 91 "new_tab_page_uma.h", |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 ] | 138 ] |
| 138 deps = [ | 139 deps = [ |
| 139 ":metrics", | 140 ":metrics", |
| 140 ":metrics_internal", | 141 ":metrics_internal", |
| 141 "//base", | 142 "//base", |
| 142 "//base/test:test_support", | 143 "//base/test:test_support", |
| 143 "//ios/chrome/browser/tabs", | 144 "//ios/chrome/browser/tabs", |
| 144 "//ios/chrome/browser/ui", | 145 "//ios/chrome/browser/ui", |
| 145 "//ios/testing:ocmock_support", | 146 "//ios/testing:ocmock_support", |
| 146 "//ios/web", | 147 "//ios/web", |
| 147 "//ios/web:test_support", | 148 "//ios/web/public/test:test_support", |
| 148 "//testing/gtest", | 149 "//testing/gtest", |
| 149 "//third_party/ocmock", | 150 "//third_party/ocmock", |
| 150 ] | 151 ] |
| 151 } | 152 } |
| 152 | 153 |
| 153 source_set("eg_tests") { | 154 source_set("eg_tests") { |
| 154 configs += [ "//build/config/compiler:enable_arc" ] | 155 configs += [ "//build/config/compiler:enable_arc" ] |
| 155 testonly = true | 156 testonly = true |
| 156 sources = [ | 157 sources = [ |
| 157 "tab_usage_recorder_egtest.mm", | 158 "tab_usage_recorder_egtest.mm", |
| 158 ] | 159 ] |
| 159 deps = [ | 160 deps = [ |
| 160 ":metrics_internal", | 161 ":metrics_internal", |
| 161 ":test_support", | 162 ":test_support", |
| 162 "//base", | 163 "//base", |
| 163 "//base/test:test_support", | 164 "//base/test:test_support", |
| 164 "//components/strings", | 165 "//components/strings", |
| 165 "//ios/chrome/browser/ui", | 166 "//ios/chrome/browser/ui", |
| 166 "//ios/chrome/browser/ui/settings", | 167 "//ios/chrome/browser/ui/settings", |
| 167 "//ios/chrome/browser/ui/toolbar", | 168 "//ios/chrome/browser/ui/toolbar", |
| 168 "//ios/chrome/browser/ui/tools_menu", | 169 "//ios/chrome/browser/ui/tools_menu", |
| 169 "//ios/chrome/test/app:test_support", | 170 "//ios/chrome/test/app:test_support", |
| 170 "//ios/chrome/test/earl_grey:test_support", | 171 "//ios/chrome/test/earl_grey:test_support", |
| 171 "//ios/testing:ios_test_support", | 172 "//ios/testing:ios_test_support", |
| 172 "//ios/web:earl_grey_test_support", | 173 "//ios/web:earl_grey_test_support", |
| 173 "//ios/web:test_support", | 174 "//ios/web/public/test:test_support", |
| 175 "//ios/web/public/test/response_providers:test_support", |
| 174 "//ui/base", | 176 "//ui/base", |
| 175 "//url", | 177 "//url", |
| 176 ] | 178 ] |
| 177 libs = [ "XCTest.framework" ] | 179 libs = [ "XCTest.framework" ] |
| 178 } | 180 } |
| 179 | 181 |
| 180 # TODO(crbug.com/694662): These tests depend on loading errors, which are | 182 # TODO(crbug.com/694662): These tests depend on loading errors, which are |
| 181 # behaving differently when the network is not available. When the underlying | 183 # behaving differently when the network is not available. When the underlying |
| 182 # issue is resolved, these tests can move back to |eg_tests|. | 184 # issue is resolved, these tests can move back to |eg_tests|. |
| 183 source_set("external_url_eg_tests") { | 185 source_set("external_url_eg_tests") { |
| 184 configs += [ "//build/config/compiler:enable_arc" ] | 186 configs += [ "//build/config/compiler:enable_arc" ] |
| 185 testonly = true | 187 testonly = true |
| 186 sources = [ | 188 sources = [ |
| 187 "external_url_tab_usage_recorder_egtest.mm", | 189 "external_url_tab_usage_recorder_egtest.mm", |
| 188 ] | 190 ] |
| 189 deps = [ | 191 deps = [ |
| 190 ":metrics_internal", | 192 ":metrics_internal", |
| 191 ":test_support", | 193 ":test_support", |
| 192 "//ios/chrome/test/app:test_support", | 194 "//ios/chrome/test/app:test_support", |
| 193 "//ios/chrome/test/earl_grey:test_support", | 195 "//ios/chrome/test/earl_grey:test_support", |
| 194 "//ios/web:test_support", | 196 "//ios/web/public/test:test_support", |
| 195 ] | 197 ] |
| 196 libs = [ "XCTest.framework" ] | 198 libs = [ "XCTest.framework" ] |
| 197 } | 199 } |
| 198 | 200 |
| 199 source_set("test_support") { | 201 source_set("test_support") { |
| 200 testonly = true | 202 testonly = true |
| 201 sources = [ | 203 sources = [ |
| 202 "tab_usage_recorder_test_util.h", | 204 "tab_usage_recorder_test_util.h", |
| 203 "tab_usage_recorder_test_util.mm", | 205 "tab_usage_recorder_test_util.mm", |
| 204 ] | 206 ] |
| 205 deps = [ | 207 deps = [ |
| 206 "//base", | 208 "//base", |
| 207 "//ios/chrome/app/strings", | 209 "//ios/chrome/app/strings", |
| 208 "//ios/chrome/browser/ui", | 210 "//ios/chrome/browser/ui", |
| 209 "//ios/chrome/browser/ui/tools_menu", | 211 "//ios/chrome/browser/ui/tools_menu", |
| 210 "//ios/chrome/test/app:test_support", | 212 "//ios/chrome/test/app:test_support", |
| 211 "//ios/chrome/test/earl_grey:test_support", | 213 "//ios/chrome/test/earl_grey:test_support", |
| 212 "//ios/testing:ios_test_support", | 214 "//ios/testing:ios_test_support", |
| 215 "//ios/web/public/test:test_support", |
| 213 "//ui/base", | 216 "//ui/base", |
| 214 ] | 217 ] |
| 215 configs += [ "//build/config/compiler:enable_arc" ] | 218 configs += [ "//build/config/compiler:enable_arc" ] |
| 216 } | 219 } |
| OLD | NEW |