| 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", |
| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 ] | 139 ] |
| 139 deps = [ | 140 deps = [ |
| 140 ":metrics", | 141 ":metrics", |
| 141 ":metrics_internal", | 142 ":metrics_internal", |
| 142 "//base", | 143 "//base", |
| 143 "//base/test:test_support", | 144 "//base/test:test_support", |
| 144 "//ios/chrome/browser/tabs", | 145 "//ios/chrome/browser/tabs", |
| 145 "//ios/chrome/browser/ui", | 146 "//ios/chrome/browser/ui", |
| 146 "//ios/testing:ocmock_support", | 147 "//ios/testing:ocmock_support", |
| 147 "//ios/web", | 148 "//ios/web", |
| 148 "//ios/web:test_support", | 149 "//ios/web/public/test", |
| 149 "//testing/gtest", | 150 "//testing/gtest", |
| 150 "//third_party/ocmock", | 151 "//third_party/ocmock", |
| 151 ] | 152 ] |
| 152 } | 153 } |
| 153 | 154 |
| 154 source_set("eg_tests") { | 155 source_set("eg_tests") { |
| 155 configs += [ "//build/config/compiler:enable_arc" ] | 156 configs += [ "//build/config/compiler:enable_arc" ] |
| 156 testonly = true | 157 testonly = true |
| 157 sources = [ | 158 sources = [ |
| 158 "tab_usage_recorder_egtest.mm", | 159 "tab_usage_recorder_egtest.mm", |
| 159 ] | 160 ] |
| 160 deps = [ | 161 deps = [ |
| 161 ":metrics_internal", | 162 ":metrics_internal", |
| 162 ":test_support", | 163 ":test_support", |
| 163 "//base", | 164 "//base", |
| 164 "//base/test:test_support", | 165 "//base/test:test_support", |
| 165 "//components/strings", | 166 "//components/strings", |
| 166 "//ios/chrome/browser/ui", | 167 "//ios/chrome/browser/ui", |
| 167 "//ios/chrome/browser/ui/settings", | 168 "//ios/chrome/browser/ui/settings", |
| 168 "//ios/chrome/browser/ui/toolbar", | 169 "//ios/chrome/browser/ui/toolbar", |
| 169 "//ios/chrome/browser/ui/tools_menu", | 170 "//ios/chrome/browser/ui/tools_menu", |
| 170 "//ios/chrome/test/app:test_support", | 171 "//ios/chrome/test/app:test_support", |
| 171 "//ios/chrome/test/earl_grey:test_support", | 172 "//ios/chrome/test/earl_grey:test_support", |
| 172 "//ios/testing:ios_test_support", | 173 "//ios/testing:ios_test_support", |
| 173 "//ios/web:earl_grey_test_support", | 174 "//ios/web:earl_grey_test_support", |
| 174 "//ios/web:test_support", | 175 "//ios/web/public/test", |
| 176 "//ios/web/public/test/http_server", |
| 175 "//ui/base", | 177 "//ui/base", |
| 176 "//url", | 178 "//url", |
| 177 ] | 179 ] |
| 178 libs = [ "XCTest.framework" ] | 180 libs = [ "XCTest.framework" ] |
| 179 } | 181 } |
| 180 | 182 |
| 181 # TODO(crbug.com/694662): These tests depend on loading errors, which are | 183 # TODO(crbug.com/694662): These tests depend on loading errors, which are |
| 182 # behaving differently when the network is not available. When the underlying | 184 # behaving differently when the network is not available. When the underlying |
| 183 # issue is resolved, these tests can move back to |eg_tests|. | 185 # issue is resolved, these tests can move back to |eg_tests|. |
| 184 source_set("external_url_eg_tests") { | 186 source_set("external_url_eg_tests") { |
| 185 configs += [ "//build/config/compiler:enable_arc" ] | 187 configs += [ "//build/config/compiler:enable_arc" ] |
| 186 testonly = true | 188 testonly = true |
| 187 sources = [ | 189 sources = [ |
| 188 "external_url_tab_usage_recorder_egtest.mm", | 190 "external_url_tab_usage_recorder_egtest.mm", |
| 189 ] | 191 ] |
| 190 deps = [ | 192 deps = [ |
| 191 ":metrics_internal", | 193 ":metrics_internal", |
| 192 ":test_support", | 194 ":test_support", |
| 193 "//ios/chrome/test/app:test_support", | 195 "//ios/chrome/test/app:test_support", |
| 194 "//ios/chrome/test/earl_grey:test_support", | 196 "//ios/chrome/test/earl_grey:test_support", |
| 195 "//ios/web:test_support", | 197 "//ios/web/public/test/http_server", |
| 196 ] | 198 ] |
| 197 libs = [ "XCTest.framework" ] | 199 libs = [ "XCTest.framework" ] |
| 198 } | 200 } |
| 199 | 201 |
| 200 source_set("test_support") { | 202 source_set("test_support") { |
| 201 testonly = true | 203 testonly = true |
| 202 sources = [ | 204 sources = [ |
| 203 "tab_usage_recorder_test_util.h", | 205 "tab_usage_recorder_test_util.h", |
| 204 "tab_usage_recorder_test_util.mm", | 206 "tab_usage_recorder_test_util.mm", |
| 205 ] | 207 ] |
| 206 deps = [ | 208 deps = [ |
| 207 "//base", | 209 "//base", |
| 208 "//ios/chrome/app/strings", | 210 "//ios/chrome/app/strings", |
| 209 "//ios/chrome/browser/ui", | 211 "//ios/chrome/browser/ui", |
| 210 "//ios/chrome/browser/ui/tools_menu", | 212 "//ios/chrome/browser/ui/tools_menu", |
| 211 "//ios/chrome/test/app:test_support", | 213 "//ios/chrome/test/app:test_support", |
| 212 "//ios/chrome/test/earl_grey:test_support", | 214 "//ios/chrome/test/earl_grey:test_support", |
| 213 "//ios/testing:ios_test_support", | 215 "//ios/testing:ios_test_support", |
| 214 "//ui/base", | 216 "//ui/base", |
| 215 ] | 217 ] |
| 216 configs += [ "//build/config/compiler:enable_arc" ] | 218 configs += [ "//build/config/compiler:enable_arc" ] |
| 217 } | 219 } |
| OLD | NEW |