Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: components/BUILD.gn

Issue 398423007: Add initial components unit tests to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 # Collection of all components. You wouldn't link to this, but this is rather 5 # Collection of all components. You wouldn't link to this, but this is rather
6 # to reference the files so they can be compiled by the build system. 6 # to reference the files so they can be compiled by the build system.
7 group("all_components") { 7 group("all_components") {
8 visibility = "//:*" # Only for the root targets to bring in. 8 visibility = "//:*" # Only for the root targets to bring in.
9 9
10 deps = [ 10 deps = [
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 ] 139 ]
140 } 140 }
141 141
142 if (!is_ios && !is_android) { 142 if (!is_ios && !is_android) {
143 deps += [ 143 deps += [
144 "//components/storage_monitor", 144 "//components/storage_monitor",
145 ] 145 ]
146 } 146 }
147 } 147 }
148 148
149 # TODO(GYP) components_unittests 149 # TODO(GYP) enable when it links.
150 #test("components_unittests") { 150 if (false) {
151 ## # Precache tests need these defines. 151
152 # configs += [ "//components/precache/core:precache_config" ] 152 # To add a unit test to this target, make a "unit_test" source_set in your
153 #} 153 # component (it's important to use a source_set instead of a static library or
154 # no tests will run) and add a reference here. You can add more than one unit
155 # test target if convenient.
156 test("components_unittests") {
157 sources = [
158 "test/run_all_unittests.cc",
159 ]
160
161 # Add only ":unit_tests" dependencies here. If your tests have dependencies
162 # (this would at least include the component itself), they should be on the
163 # test source set and not here.
164 deps = [
165 "//components/auto_login_parser:unit_tests",
166 "//components/autocomplete:unit_tests",
167 "//components/autofill/content/browser:unit_tests",
168 "//components/autofill/core/browser:unit_tests",
169 "//components/autofill/core/common:unit_tests",
170 ]
171
172
173 # Precache tests need these defines.
174 #configs += [ "//components/precache/core:precache_config" ]
175 }
176
177 }
OLDNEW
« no previous file with comments | « no previous file | components/auto_login_parser/BUILD.gn » ('j') | components/autofill/core/common/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698