OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # GYP version: components/dom_distiller.gypi:dom_distiller_core | 5 # GYP version: components/dom_distiller.gypi:dom_distiller_core |
6 source_set("core") { | 6 source_set("core") { |
7 sources = [ | 7 sources = [ |
8 "article_attachments_data.cc", | 8 "article_attachments_data.cc", |
9 "article_attachments_data.h", | 9 "article_attachments_data.h", |
10 "article_distillation_update.cc", | 10 "article_distillation_update.cc", |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 ":core", | 104 ":core", |
105 "//base", | 105 "//base", |
106 "//components/leveldb_proto:test_support", | 106 "//components/leveldb_proto:test_support", |
107 "//sync", | 107 "//sync", |
108 "//testing/gmock", | 108 "//testing/gmock", |
109 "//testing/gtest", | 109 "//testing/gtest", |
110 "//url", | 110 "//url", |
111 ] | 111 ] |
112 } | 112 } |
113 | 113 |
| 114 bundle_data("unit_tests_bundle_data") { |
| 115 visibility = [ ":unit_tests" ] |
| 116 testonly = true |
| 117 sources = [ |
| 118 "//components/test/data/dom_distiller/core_features.json", |
| 119 "//components/test/data/dom_distiller/derived_features.json", |
| 120 ] |
| 121 outputs = [ |
| 122 "{{bundle_resources_dir}}/" + |
| 123 "{{source_root_relative_dir}}/{{source_file_part}}", |
| 124 ] |
| 125 } |
| 126 |
114 source_set("unit_tests") { | 127 source_set("unit_tests") { |
115 testonly = true | 128 testonly = true |
116 sources = [ | 129 sources = [ |
117 "article_entry_unittest.cc", | 130 "article_entry_unittest.cc", |
118 "distillable_page_detector_unittest.cc", | 131 "distillable_page_detector_unittest.cc", |
119 "distilled_content_store_unittest.cc", | 132 "distilled_content_store_unittest.cc", |
120 "distilled_page_prefs_unittests.cc", | 133 "distilled_page_prefs_unittests.cc", |
121 "distiller_unittest.cc", | 134 "distiller_unittest.cc", |
122 "distiller_url_fetcher_unittest.cc", | 135 "distiller_url_fetcher_unittest.cc", |
123 "dom_distiller_model_unittest.cc", | 136 "dom_distiller_model_unittest.cc", |
124 "dom_distiller_request_view_base_unittest.cc", | 137 "dom_distiller_request_view_base_unittest.cc", |
125 "dom_distiller_service_unittest.cc", | 138 "dom_distiller_service_unittest.cc", |
126 "dom_distiller_store_unittest.cc", | 139 "dom_distiller_store_unittest.cc", |
127 "page_features_unittest.cc", | 140 "page_features_unittest.cc", |
128 "task_tracker_unittest.cc", | 141 "task_tracker_unittest.cc", |
129 "url_utils_unittest.cc", | 142 "url_utils_unittest.cc", |
130 "viewer_unittest.cc", | 143 "viewer_unittest.cc", |
131 ] | 144 ] |
132 | 145 |
133 deps = [ | 146 deps = [ |
134 ":core", | 147 ":core", |
135 ":test_support", | 148 ":test_support", |
| 149 ":unit_tests_bundle_data", |
136 "//base", | 150 "//base", |
137 "//components/leveldb_proto:test_support", | 151 "//components/leveldb_proto:test_support", |
138 "//components/pref_registry:test_support", | 152 "//components/pref_registry:test_support", |
139 "//components/resources", | 153 "//components/resources", |
140 "//components/strings", | 154 "//components/strings", |
141 "//net:test_support", | 155 "//net:test_support", |
142 "//sync", | 156 "//sync", |
143 "//testing/gmock", | 157 "//testing/gmock", |
144 "//testing/gtest", | 158 "//testing/gtest", |
145 "//ui/base", | 159 "//ui/base", |
146 "//url", | 160 "//url", |
147 ] | 161 ] |
148 } | 162 } |
149 | 163 |
150 if (is_android) { | 164 if (is_android) { |
151 import("//build/config/android/rules.gni") | 165 import("//build/config/android/rules.gni") |
152 | 166 |
153 generate_jni("jni_headers") { | 167 generate_jni("jni_headers") { |
154 sources = [ | 168 sources = [ |
155 "../android/java/src/org/chromium/components/dom_distiller/core/DistilledP
agePrefs.java", | 169 "../android/java/src/org/chromium/components/dom_distiller/core/DistilledP
agePrefs.java", |
156 "../android/java/src/org/chromium/components/dom_distiller/core/DomDistill
erService.java", | 170 "../android/java/src/org/chromium/components/dom_distiller/core/DomDistill
erService.java", |
157 "../android/java/src/org/chromium/components/dom_distiller/core/DomDistill
erUrlUtils.java", | 171 "../android/java/src/org/chromium/components/dom_distiller/core/DomDistill
erUrlUtils.java", |
158 ] | 172 ] |
159 jni_package = "dom_distiller_core" | 173 jni_package = "dom_distiller_core" |
160 } | 174 } |
161 } | 175 } |
OLD | NEW |