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

Side by Side Diff: webrtc/tools/network_tester/BUILD.gn

Issue 2828793003: GN: Tighten up test target visibility + refactorings (Closed)
Patch Set: Disable Win compile warning Created 3 years, 8 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
OLDNEW
1 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("../../webrtc.gni") 9 import("../../webrtc.gni")
10 import("//third_party/protobuf/proto_library.gni") 10 import("//third_party/protobuf/proto_library.gni")
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 bundle_data("network_tester_unittests_bundle_data") { 58 bundle_data("network_tester_unittests_bundle_data") {
59 testonly = true 59 testonly = true
60 sources = network_tester_unittests_resources 60 sources = network_tester_unittests_resources
61 outputs = [ 61 outputs = [
62 "{{bundle_resources_dir}}/{{source_file_part}}", 62 "{{bundle_resources_dir}}/{{source_file_part}}",
63 ] 63 ]
64 } 64 }
65 } 65 }
66 66
67 rtc_source_set("network_tester_unittests") { 67 rtc_source_set("network_tester_unittests") {
68 testonly = true
69 if (!is_android && !is_ios) { # Generated targets makes this check break.
70 visibility = [ "//webrtc/tools:tools_unittests" ]
71 }
68 sources = [ 72 sources = [
69 "network_tester_unittest.cc", 73 "network_tester_unittest.cc",
70 ] 74 ]
71 75
72 testonly = true
73 deps = [ 76 deps = [
74 ":network_tester", 77 ":network_tester",
75 "//testing/gtest", 78 "//testing/gtest",
76 "//webrtc/base:rtc_base_tests_utils", 79 "//webrtc/base:rtc_base_tests_utils",
77 "//webrtc/test:test_support", 80 "//webrtc/test:test_support",
78 ] 81 ]
79 82
80 if (is_ios) { 83 if (is_ios) {
81 deps += [ ":network_tester_unittests_bundle_data" ] 84 deps += [ ":network_tester_unittests_bundle_data" ]
82 } 85 }
83 86
84 defines = [ 87 defines = [
85 "GTEST_RELATIVE_PATH", 88 "GTEST_RELATIVE_PATH",
86 "WEBRTC_NETWORK_TESTER_TEST_ENABLED", 89 "WEBRTC_NETWORK_TESTER_TEST_ENABLED",
87 ] 90 ]
88 91
89 data = network_tester_unittests_resources 92 data = network_tester_unittests_resources
90 93
91 if (!build_with_chromium && is_clang) { 94 if (!build_with_chromium && is_clang) {
92 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 95 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
93 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 96 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
94 } 97 }
95 } 98 }
96 } 99 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698