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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 "//base/test:test_support", | 72 "//base/test:test_support", |
73 "//components/metrics", | 73 "//components/metrics", |
74 "//components/metrics:test_support", | 74 "//components/metrics:test_support", |
75 "//components/prefs", | 75 "//components/prefs", |
76 "//components/prefs:test_support", | 76 "//components/prefs:test_support", |
77 "//components/version_info", | 77 "//components/version_info", |
78 "//ios/chrome/test:test_support", | 78 "//ios/chrome/test:test_support", |
79 "//testing/gtest", | 79 "//testing/gtest", |
80 ] | 80 ] |
81 } | 81 } |
| 82 |
| 83 source_set("metrics_internal") { |
| 84 sources = [ |
| 85 "first_user_action_recorder.cc", |
| 86 "first_user_action_recorder.h", |
| 87 "new_tab_page_uma.h", |
| 88 "new_tab_page_uma.mm", |
| 89 "size_class_recorder.h", |
| 90 "size_class_recorder.mm", |
| 91 "size_class_recorder_private.h", |
| 92 "tab_usage_recorder.h", |
| 93 "tab_usage_recorder.mm", |
| 94 "tab_usage_recorder_delegate.h", |
| 95 ] |
| 96 deps = [ |
| 97 "//base", |
| 98 "//components/google/core/browser", |
| 99 "//ios/chrome/browser", |
| 100 "//ios/chrome/browser/browser_state", |
| 101 "//ios/chrome/browser/metrics", |
| 102 "//ios/chrome/browser/tabs", |
| 103 "//ios/chrome/browser/ui", |
| 104 "//ios/chrome/browser/ui:browser_list", |
| 105 "//ios/web", |
| 106 "//ui/base:base", |
| 107 "//url", |
| 108 ] |
| 109 libs = [ "UIKit.framework" ] |
| 110 } |
| 111 |
| 112 source_set("unit_tests_internal") { |
| 113 testonly = true |
| 114 sources = [ |
| 115 "first_user_action_recorder_unittest.cc", |
| 116 "size_class_recorder_unittest.mm", |
| 117 "tab_usage_recorder_unittest.mm", |
| 118 ] |
| 119 deps = [ |
| 120 ":metrics_internal", |
| 121 "//base", |
| 122 "//base/test:test_support", |
| 123 "//ios/chrome/browser/metrics", |
| 124 "//ios/chrome/browser/tabs", |
| 125 "//ios/chrome/browser/ui", |
| 126 "//ios/testing:ocmock_support", |
| 127 "//ios/web", |
| 128 "//ios/web:test_support", |
| 129 "//testing/gtest", |
| 130 "//third_party/ocmock", |
| 131 ] |
| 132 } |
| 133 |
| 134 source_set("eg_tests") { |
| 135 testonly = true |
| 136 sources = [ |
| 137 "tab_usage_recorder_egtest.mm", |
| 138 ] |
| 139 deps = [ |
| 140 "//base", |
| 141 "//base/test:test_support", |
| 142 "//components/strings", |
| 143 "//ios/chrome/app/strings", |
| 144 "//ios/chrome/browser", |
| 145 "//ios/chrome/browser/metrics:metrics_internal", |
| 146 "//ios/chrome/browser/ui", |
| 147 "//ios/chrome/browser/ui/settings", |
| 148 "//ios/chrome/browser/ui/toolbar", |
| 149 "//ios/chrome/browser/ui/tools_menu", |
| 150 "//ios/chrome/test/app:test_support", |
| 151 "//ios/chrome/test/earl_grey:test_support", |
| 152 "//ios/testing:ios_test_support", |
| 153 "//ios/third_party/earl_grey", |
| 154 "//ios/web:test_support", |
| 155 "//ui/base", |
| 156 ] |
| 157 libs = [ "XCTest.framework" ] |
| 158 } |
OLD | NEW |