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

Side by Side Diff: components/captive_portal/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/bookmarks/test/BUILD.gn ('k') | components/cloud_devices/common/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 component("captive_portal") { 5 component("captive_portal") {
6 sources = [ 6 sources = [
7 "captive_portal_detector.cc", 7 "captive_portal_detector.cc",
8 "captive_portal_detector.h", 8 "captive_portal_detector.h",
9 "captive_portal_types.cc", 9 "captive_portal_types.cc",
10 "captive_portal_types.h", 10 "captive_portal_types.h",
11 "captive_portal_export.h", 11 "captive_portal_export.h",
12 ] 12 ]
13 13
14 defines = [ "CAPTIVE_PORTAL_IMPLEMENTATION" ] 14 defines = [ "CAPTIVE_PORTAL_IMPLEMENTATION" ]
15 15
16 deps = [ 16 deps = [
17 "//base", 17 "//base",
18 "//net", 18 "//net",
19 "//url", 19 "//url",
20 ] 20 ]
21 } 21 }
22 22
23 static_library("test_support") { 23 static_library("test_support") {
24 testonly = true
24 sources = [ 25 sources = [
25 "captive_portal_testing_utils.cc", 26 "captive_portal_testing_utils.cc",
26 "captive_portal_testing_utils.h", 27 "captive_portal_testing_utils.h",
27 ] 28 ]
28 29
29 deps = [ 30 deps = [
30 ":captive_portal", 31 ":captive_portal",
31 "//base", 32 "//base",
32 "//net", 33 "//net",
33 "//url", 34 "//url",
34 ] 35 ]
35 } 36 }
36 37
37 source_set("unit_tests") { 38 source_set("unit_tests") {
39 testonly = true
38 sources = [ 40 sources = [
39 "captive_portal_detector_unittest.cc", 41 "captive_portal_detector_unittest.cc",
40 ] 42 ]
41 43
42 deps = [ 44 deps = [
43 ":captive_portal", 45 ":captive_portal",
44 "//testing/gtest", 46 "//testing/gtest",
45 ] 47 ]
46 } 48 }
OLDNEW
« no previous file with comments | « components/bookmarks/test/BUILD.gn ('k') | components/cloud_devices/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698