OLD | NEW |
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 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("../build/webrtc.gni") | 9 import("../build/webrtc.gni") |
10 | 10 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 "quic/quictransport.h", | 133 "quic/quictransport.h", |
134 "quic/quictransportchannel.cc", | 134 "quic/quictransportchannel.cc", |
135 "quic/quictransportchannel.h", | 135 "quic/quictransportchannel.h", |
136 "quic/reliablequicstream.cc", | 136 "quic/reliablequicstream.cc", |
137 "quic/reliablequicstream.h", | 137 "quic/reliablequicstream.h", |
138 ] | 138 ] |
139 public_deps += [ "//third_party/libquic" ] | 139 public_deps += [ "//third_party/libquic" ] |
140 } | 140 } |
141 } | 141 } |
142 | 142 |
| 143 if (rtc_include_tests) { |
| 144 rtc_source_set("rtc_p2p_unittests") { |
| 145 testonly = true |
| 146 sources = [ |
| 147 "base/asyncstuntcpsocket_unittest.cc", |
| 148 "base/dtlstransportchannel_unittest.cc", |
| 149 "base/fakeportallocator.h", |
| 150 "base/faketransportcontroller.h", |
| 151 "base/jseptransport_unittest.cc", |
| 152 "base/p2ptransportchannel_unittest.cc", |
| 153 "base/port_unittest.cc", |
| 154 "base/portallocator_unittest.cc", |
| 155 "base/pseudotcp_unittest.cc", |
| 156 "base/relayport_unittest.cc", |
| 157 "base/relayserver_unittest.cc", |
| 158 "base/stun_unittest.cc", |
| 159 "base/stunport_unittest.cc", |
| 160 "base/stunrequest_unittest.cc", |
| 161 "base/stunserver_unittest.cc", |
| 162 "base/tcpport_unittest.cc", |
| 163 "base/testrelayserver.h", |
| 164 "base/teststunserver.h", |
| 165 "base/testturnserver.h", |
| 166 "base/transportcontroller_unittest.cc", |
| 167 "base/transportdescriptionfactory_unittest.cc", |
| 168 "base/turnport_unittest.cc", |
| 169 "base/turnserver_unittest.cc", |
| 170 "base/udptransportchannel_unittest.cc", |
| 171 "client/basicportallocator_unittest.cc", |
| 172 ] |
| 173 if (rtc_use_quic) { |
| 174 sources += [ |
| 175 "quic/quicconnectionhelper_unittest.cc", |
| 176 "quic/quicsession_unittest.cc", |
| 177 "quic/quictransport_unittest.cc", |
| 178 "quic/quictransportchannel_unittest.cc", |
| 179 "quic/reliablequicstream_unittest.cc", |
| 180 ] |
| 181 } |
| 182 deps = [ |
| 183 ":rtc_p2p", |
| 184 "../api:fakemetricsobserver", |
| 185 "//testing/gmock", |
| 186 "//testing/gtest", |
| 187 ] |
| 188 if (!build_with_chromium && is_clang) { |
| 189 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 190 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 191 } |
| 192 defines = [ "GTEST_RELATIVE_PATH" ] |
| 193 } |
| 194 } |
| 195 |
143 rtc_static_library("libstunprober") { | 196 rtc_static_library("libstunprober") { |
144 sources = [ | 197 sources = [ |
145 "stunprober/stunprober.cc", | 198 "stunprober/stunprober.cc", |
146 ] | 199 ] |
147 | 200 |
148 if (!build_with_chromium && is_clang) { | 201 if (!build_with_chromium && is_clang) { |
149 # Suppress warnings from Chrome's Clang plugins. | 202 # Suppress warnings from Chrome's Clang plugins. |
150 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 203 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
151 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 204 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
152 } | 205 } |
153 | 206 |
154 deps = [ | 207 deps = [ |
155 "..:webrtc_common", | 208 "..:webrtc_common", |
156 "../base:rtc_base", | 209 "../base:rtc_base", |
157 ] | 210 ] |
158 } | 211 } |
| 212 |
| 213 if (rtc_include_tests) { |
| 214 rtc_source_set("libstunprober_unittests") { |
| 215 testonly = true |
| 216 sources = [ |
| 217 "stunprober/stunprober_unittest.cc", |
| 218 ] |
| 219 deps = [ |
| 220 ":libstunprober", |
| 221 "//testing/gmock", |
| 222 "//testing/gtest", |
| 223 ] |
| 224 if (!build_with_chromium && is_clang) { |
| 225 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 226 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 227 } |
| 228 defines = [ "GTEST_RELATIVE_PATH" ] |
| 229 } |
| 230 } |
OLD | NEW |