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

Side by Side Diff: components/dom_distiller/core/BUILD.gn

Issue 551933002: Mark gtest and gmock as testonly in GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@testonly
Patch Set: android Created 6 years, 3 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
« no previous file with comments | « components/data_reduction_proxy/common/BUILD.gn ('k') | components/domain_reliability/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # GYP version: components/dom_distiller.gypi:dom_distiller_core 5 # GYP version: components/dom_distiller.gypi:dom_distiller_core
6 static_library("core") { 6 static_library("core") {
7 sources = [ 7 sources = [
8 "../android/component_jni_registrar.cc", 8 "../android/component_jni_registrar.cc",
9 "../android/component_jni_registrar.h", 9 "../android/component_jni_registrar.h",
10 "article_distillation_update.cc", 10 "article_distillation_update.cc",
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 "//third_party/dom_distiller_js:proto", 65 "//third_party/dom_distiller_js:proto",
66 ] 66 ]
67 67
68 if (is_android) { 68 if (is_android) {
69 #deps += [ ":dom_distiller_core_jni_headers" ] TODO(GYP) 69 #deps += [ ":dom_distiller_core_jni_headers" ] TODO(GYP)
70 } 70 }
71 } 71 }
72 72
73 # GYP version: components/dom_distiller.gypi:dom_distiller_test_support 73 # GYP version: components/dom_distiller.gypi:dom_distiller_test_support
74 static_library("test_support") { 74 static_library("test_support") {
75 testonly = true
75 sources = [ 76 sources = [
76 "dom_distiller_test_util.cc", 77 "dom_distiller_test_util.cc",
77 "dom_distiller_test_util.h", 78 "dom_distiller_test_util.h",
78 "fake_distiller.cc", 79 "fake_distiller.cc",
79 "fake_distiller.h", 80 "fake_distiller.h",
80 "fake_distiller_page.cc", 81 "fake_distiller_page.cc",
81 "fake_distiller_page.h", 82 "fake_distiller_page.h",
82 ] 83 ]
83 84
84 deps = [ 85 deps = [
85 ":core", 86 ":core",
86 "//components/leveldb_proto:test_support", 87 "//components/leveldb_proto:test_support",
87 "//sync", 88 "//sync",
88 "//testing/gmock", 89 "//testing/gmock",
89 "//testing/gtest", 90 "//testing/gtest",
90 ] 91 ]
91 } 92 }
92 93
93 source_set("unit_tests") { 94 source_set("unit_tests") {
95 testonly = true
94 sources = [ 96 sources = [
95 "article_entry_unittest.cc", 97 "article_entry_unittest.cc",
96 "distilled_content_store_unittest.cc", 98 "distilled_content_store_unittest.cc",
97 "distilled_page_prefs_unittests.cc", 99 "distilled_page_prefs_unittests.cc",
98 "distiller_unittest.cc", 100 "distiller_unittest.cc",
99 "distiller_url_fetcher_unittest.cc", 101 "distiller_url_fetcher_unittest.cc",
100 "dom_distiller_model_unittest.cc", 102 "dom_distiller_model_unittest.cc",
101 "dom_distiller_service_unittest.cc", 103 "dom_distiller_service_unittest.cc",
102 "dom_distiller_store_unittest.cc", 104 "dom_distiller_store_unittest.cc",
103 "task_tracker_unittest.cc", 105 "task_tracker_unittest.cc",
104 "url_utils_unittest.cc", 106 "url_utils_unittest.cc",
105 "viewer_unittest.cc", 107 "viewer_unittest.cc",
106 ] 108 ]
107 109
108 deps = [ 110 deps = [
109 ":core", 111 ":core",
110 ":test_support", 112 ":test_support",
111 "//testing/gmock", 113 "//testing/gmock",
112 "//testing/gtest", 114 "//testing/gtest",
113 ] 115 ]
114 } 116 }
OLDNEW
« no previous file with comments | « components/data_reduction_proxy/common/BUILD.gn ('k') | components/domain_reliability/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698