You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

985 lines
22 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
  2. #
  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
  5. # tree. An additional intellectual property rights grant can be found
  6. # in the file PATENTS. All contributing project authors may
  7. # be found in the AUTHORS file in the root of the source tree.
  8. import("../webrtc.gni")
  9. if (is_android) {
  10. import("//build/config/android/config.gni")
  11. import("//build/config/android/rules.gni")
  12. }
  13. group("api") {
  14. visibility = [ "*" ]
  15. deps = []
  16. if (!build_with_mozilla) {
  17. deps += [ ":libjingle_peerconnection_api" ]
  18. }
  19. }
  20. rtc_source_set("call_api") {
  21. visibility = [ "*" ]
  22. sources = [
  23. "call/audio_sink.h",
  24. ]
  25. }
  26. rtc_source_set("callfactory_api") {
  27. visibility = [ "*" ]
  28. sources = [
  29. "call/call_factory_interface.h",
  30. ]
  31. deps = [
  32. "../rtc_base/system:rtc_export",
  33. ]
  34. }
  35. if (!build_with_chromium) {
  36. rtc_library("create_peerconnection_factory") {
  37. visibility = [ "*" ]
  38. allow_poison = [ "default_task_queue" ]
  39. sources = [
  40. "create_peerconnection_factory.cc",
  41. "create_peerconnection_factory.h",
  42. ]
  43. deps = [
  44. ":callfactory_api",
  45. ":libjingle_peerconnection_api",
  46. ":scoped_refptr",
  47. "../api/rtc_event_log:rtc_event_log_factory",
  48. "../media:rtc_audio_video",
  49. "../media:rtc_media_base",
  50. "../modules/audio_device:audio_device_api",
  51. "../modules/audio_processing:api",
  52. "../pc:peerconnection",
  53. "../rtc_base",
  54. "../rtc_base:rtc_base_approved",
  55. "audio:audio_mixer_api",
  56. "audio_codecs:audio_codecs_api",
  57. "task_queue:default_task_queue_factory",
  58. "video_codecs:video_codecs_api",
  59. ]
  60. }
  61. }
  62. rtc_library("rtp_headers") {
  63. visibility = [ "*" ]
  64. sources = [
  65. "rtp_headers.cc",
  66. "rtp_headers.h",
  67. ]
  68. deps = [
  69. ":array_view",
  70. "..:webrtc_common",
  71. "units:timestamp",
  72. "video:video_rtp_headers",
  73. "//third_party/abseil-cpp/absl/types:optional",
  74. ]
  75. }
  76. rtc_library("rtp_packet_info") {
  77. visibility = [ "*" ]
  78. sources = [
  79. "rtp_packet_info.cc",
  80. "rtp_packet_info.h",
  81. "rtp_packet_infos.h",
  82. ]
  83. deps = [
  84. ":array_view",
  85. ":refcountedbase",
  86. ":rtp_headers",
  87. ":scoped_refptr",
  88. "..:webrtc_common",
  89. "../rtc_base:deprecation",
  90. "../rtc_base:rtc_base_approved",
  91. "//third_party/abseil-cpp/absl/types:optional",
  92. ]
  93. }
  94. rtc_library("media_stream_interface") {
  95. visibility = [ "*" ]
  96. sources = [
  97. "media_stream_interface.cc",
  98. "media_stream_interface.h",
  99. "notifier.h",
  100. ]
  101. deps = [
  102. ":audio_options_api",
  103. ":rtp_parameters",
  104. ":scoped_refptr",
  105. "../modules/audio_processing:audio_processing_statistics",
  106. "../rtc_base:checks",
  107. "../rtc_base:refcount",
  108. "../rtc_base/system:rtc_export",
  109. "video:video_frame",
  110. "//third_party/abseil-cpp/absl/types:optional",
  111. ]
  112. }
  113. rtc_library("libjingle_peerconnection_api") {
  114. visibility = [ "*" ]
  115. cflags = []
  116. sources = [
  117. "candidate.cc",
  118. "candidate.h",
  119. "crypto_params.h",
  120. "data_channel_interface.cc",
  121. "data_channel_interface.h",
  122. "dtls_transport_interface.cc",
  123. "dtls_transport_interface.h",
  124. "dtmf_sender_interface.h",
  125. "ice_transport_interface.h",
  126. "jsep.cc",
  127. "jsep.h",
  128. "jsep_ice_candidate.cc",
  129. "jsep_ice_candidate.h",
  130. "jsep_session_description.h",
  131. "media_stream_proxy.h",
  132. "media_stream_track_proxy.h",
  133. "peer_connection_factory_proxy.h",
  134. "peer_connection_interface.cc",
  135. "peer_connection_interface.h",
  136. "peer_connection_proxy.h",
  137. "proxy.cc",
  138. "proxy.h",
  139. "rtp_receiver_interface.cc",
  140. "rtp_receiver_interface.h",
  141. "rtp_sender_interface.cc",
  142. "rtp_sender_interface.h",
  143. "rtp_transceiver_interface.cc",
  144. "rtp_transceiver_interface.h",
  145. "sctp_transport_interface.cc",
  146. "sctp_transport_interface.h",
  147. "set_remote_description_observer_interface.h",
  148. "stats_types.cc",
  149. "stats_types.h",
  150. "turn_customizer.h",
  151. "uma_metrics.h",
  152. "video_track_source_proxy.h",
  153. ]
  154. deps = [
  155. ":array_view",
  156. ":audio_options_api",
  157. ":callfactory_api",
  158. ":fec_controller_api",
  159. ":libjingle_logging_api",
  160. ":media_stream_interface",
  161. ":network_state_predictor_api",
  162. ":packet_socket_factory",
  163. ":rtc_error",
  164. ":rtc_stats_api",
  165. ":rtp_packet_info",
  166. ":rtp_parameters",
  167. ":scoped_refptr",
  168. "audio:audio_mixer_api",
  169. "audio_codecs:audio_codecs_api",
  170. "crypto:frame_decryptor_interface",
  171. "crypto:frame_encryptor_interface",
  172. "crypto:options",
  173. "rtc_event_log",
  174. "task_queue",
  175. "transport:bitrate_settings",
  176. "transport:datagram_transport_interface",
  177. "transport:enums",
  178. "transport:network_control",
  179. "transport/media:audio_interfaces",
  180. "transport/media:media_transport_interface",
  181. "transport/media:video_interfaces",
  182. "transport/rtp:rtp_source",
  183. "units:data_rate",
  184. "units:timestamp",
  185. "video:encoded_image",
  186. "video:video_frame",
  187. "video:video_rtp_headers",
  188. "//third_party/abseil-cpp/absl/algorithm:container",
  189. "//third_party/abseil-cpp/absl/memory",
  190. "//third_party/abseil-cpp/absl/strings",
  191. "//third_party/abseil-cpp/absl/types:optional",
  192. # Basically, don't add stuff here. You might break sensitive downstream
  193. # targets like pnacl. API should not depend on anything outside of this
  194. # file, really. All these should arguably go away in time.
  195. "..:webrtc_common",
  196. "../media:rtc_media_base",
  197. "../media:rtc_media_config",
  198. "../modules/audio_processing:audio_processing_statistics",
  199. "../rtc_base",
  200. "../rtc_base:checks",
  201. "../rtc_base:deprecation",
  202. "../rtc_base:rtc_base_approved",
  203. "../rtc_base/system:rtc_export",
  204. ]
  205. }
  206. rtc_library("rtc_error") {
  207. visibility = [ "*" ]
  208. sources = [
  209. "rtc_error.cc",
  210. "rtc_error.h",
  211. ]
  212. deps = [
  213. "../rtc_base:checks",
  214. "../rtc_base:logging",
  215. "../rtc_base:macromagic",
  216. "../rtc_base/system:rtc_export",
  217. ]
  218. }
  219. rtc_source_set("packet_socket_factory") {
  220. visibility = [ "*" ]
  221. sources = [
  222. "async_resolver_factory.h",
  223. "packet_socket_factory.h",
  224. ]
  225. deps = [
  226. "../rtc_base:rtc_base",
  227. "../rtc_base/system:rtc_export",
  228. ]
  229. }
  230. rtc_source_set("scoped_refptr") {
  231. visibility = [ "*" ]
  232. sources = [
  233. "scoped_refptr.h",
  234. ]
  235. }
  236. rtc_source_set("video_quality_test_fixture_api") {
  237. visibility = [ "*" ]
  238. testonly = true
  239. sources = [
  240. "test/video_quality_test_fixture.h",
  241. ]
  242. deps = [
  243. ":fec_controller_api",
  244. ":libjingle_peerconnection_api",
  245. ":network_state_predictor_api",
  246. ":rtp_parameters",
  247. ":simulated_network_api",
  248. "../call:fake_network",
  249. "../call:rtp_interfaces",
  250. "../test:test_common",
  251. "../test:video_test_common",
  252. "transport:bitrate_settings",
  253. "transport:network_control",
  254. "transport/media:media_transport_interface",
  255. "video_codecs:video_codecs_api",
  256. ]
  257. }
  258. rtc_source_set("video_quality_analyzer_api") {
  259. visibility = [ "*" ]
  260. testonly = true
  261. sources = [
  262. "test/video_quality_analyzer_interface.h",
  263. ]
  264. deps = [
  265. ":stats_observer_interface",
  266. "video:encoded_image",
  267. "video:video_frame",
  268. "video:video_rtp_headers",
  269. "video_codecs:video_codecs_api",
  270. "//third_party/abseil-cpp/absl/types:optional",
  271. ]
  272. }
  273. rtc_source_set("track_id_stream_label_map") {
  274. visibility = [ "*" ]
  275. sources = [
  276. "test/track_id_stream_label_map.h",
  277. ]
  278. }
  279. rtc_library("rtp_parameters") {
  280. visibility = [ "*" ]
  281. sources = [
  282. "media_types.cc",
  283. "media_types.h",
  284. "rtp_parameters.cc",
  285. "rtp_parameters.h",
  286. ]
  287. deps = [
  288. ":array_view",
  289. "../rtc_base:checks",
  290. "../rtc_base:stringutils",
  291. "../rtc_base/system:rtc_export",
  292. "//third_party/abseil-cpp/absl/types:optional",
  293. ]
  294. }
  295. rtc_source_set("audio_quality_analyzer_api") {
  296. visibility = [ "*" ]
  297. testonly = true
  298. sources = [
  299. "test/audio_quality_analyzer_interface.h",
  300. ]
  301. deps = [
  302. ":stats_observer_interface",
  303. ":track_id_stream_label_map",
  304. ]
  305. }
  306. rtc_source_set("stats_observer_interface") {
  307. visibility = [ "*" ]
  308. testonly = true
  309. sources = [
  310. "test/stats_observer_interface.h",
  311. ]
  312. deps = [
  313. # For api/stats_types.h
  314. ":libjingle_peerconnection_api",
  315. ":rtp_parameters",
  316. ]
  317. }
  318. rtc_source_set("peer_connection_quality_test_fixture_api") {
  319. visibility = [ "*" ]
  320. testonly = true
  321. sources = [
  322. "test/peerconnection_quality_test_fixture.h",
  323. ]
  324. deps = [
  325. ":audio_quality_analyzer_api",
  326. ":callfactory_api",
  327. ":fec_controller_api",
  328. ":function_view",
  329. ":libjingle_peerconnection_api",
  330. ":network_state_predictor_api",
  331. ":packet_socket_factory",
  332. ":simulated_network_api",
  333. ":stats_observer_interface",
  334. ":video_quality_analyzer_api",
  335. "../media:rtc_media_base",
  336. "../rtc_base:rtc_base",
  337. "rtc_event_log",
  338. "task_queue",
  339. "transport:network_control",
  340. "transport/media:media_transport_interface",
  341. "units:time_delta",
  342. "video_codecs:video_codecs_api",
  343. "//third_party/abseil-cpp/absl/memory",
  344. "//third_party/abseil-cpp/absl/types:optional",
  345. ]
  346. }
  347. rtc_library("test_dependency_factory") {
  348. visibility = [ "*" ]
  349. testonly = true
  350. sources = [
  351. "test/test_dependency_factory.cc",
  352. "test/test_dependency_factory.h",
  353. ]
  354. deps = [
  355. ":video_quality_test_fixture_api",
  356. "../rtc_base:checks",
  357. "../rtc_base:thread_checker",
  358. ]
  359. }
  360. if (rtc_include_tests) {
  361. rtc_library("create_video_quality_test_fixture_api") {
  362. visibility = [ "*" ]
  363. testonly = true
  364. sources = [
  365. "test/create_video_quality_test_fixture.cc",
  366. "test/create_video_quality_test_fixture.h",
  367. ]
  368. deps = [
  369. ":fec_controller_api",
  370. ":network_state_predictor_api",
  371. ":scoped_refptr",
  372. ":video_quality_test_fixture_api",
  373. "../video:video_quality_test",
  374. ]
  375. }
  376. rtc_library("create_network_emulation_manager") {
  377. visibility = [ "*" ]
  378. testonly = true
  379. sources = [
  380. "test/create_network_emulation_manager.cc",
  381. "test/create_network_emulation_manager.h",
  382. ]
  383. deps = [
  384. ":network_emulation_manager_api",
  385. "../test/network:emulated_network",
  386. ]
  387. }
  388. rtc_library("create_peerconnection_quality_test_fixture") {
  389. visibility = [ "*" ]
  390. testonly = true
  391. sources = [
  392. "test/create_peerconnection_quality_test_fixture.cc",
  393. "test/create_peerconnection_quality_test_fixture.h",
  394. ]
  395. deps = [
  396. ":audio_quality_analyzer_api",
  397. ":peer_connection_quality_test_fixture_api",
  398. ":video_quality_analyzer_api",
  399. "../test/pc/e2e:peerconnection_quality_test",
  400. ]
  401. }
  402. }
  403. rtc_source_set("libjingle_logging_api") {
  404. visibility = [ "*" ]
  405. sources = [
  406. "rtc_event_log_output.h",
  407. ]
  408. }
  409. rtc_library("rtc_event_log_output_file") {
  410. visibility = [ "*" ]
  411. sources = [
  412. "rtc_event_log_output_file.cc",
  413. "rtc_event_log_output_file.h",
  414. ]
  415. deps = [
  416. ":libjingle_logging_api",
  417. "../rtc_base:checks",
  418. "../rtc_base:rtc_base_approved",
  419. "../rtc_base/system:file_wrapper",
  420. "rtc_event_log",
  421. ]
  422. }
  423. rtc_source_set("rtc_stats_api") {
  424. visibility = [ "*" ]
  425. cflags = []
  426. sources = [
  427. "stats/rtc_stats.h",
  428. "stats/rtc_stats_collector_callback.h",
  429. "stats/rtc_stats_report.h",
  430. "stats/rtcstats_objects.h",
  431. ]
  432. deps = [
  433. ":scoped_refptr",
  434. "../rtc_base:checks",
  435. "../rtc_base:rtc_base_approved",
  436. "../rtc_base/system:rtc_export",
  437. ]
  438. }
  439. rtc_library("audio_options_api") {
  440. visibility = [ "*" ]
  441. sources = [
  442. "audio_options.cc",
  443. "audio_options.h",
  444. ]
  445. deps = [
  446. ":array_view",
  447. "../rtc_base:stringutils",
  448. "//third_party/abseil-cpp/absl/types:optional",
  449. ]
  450. }
  451. rtc_library("transport_api") {
  452. visibility = [ "*" ]
  453. sources = [
  454. "call/transport.cc",
  455. "call/transport.h",
  456. ]
  457. }
  458. rtc_source_set("bitrate_allocation") {
  459. visibility = [ "*" ]
  460. sources = [
  461. "call/bitrate_allocation.h",
  462. ]
  463. deps = [
  464. "units:data_rate",
  465. "units:time_delta",
  466. ]
  467. }
  468. rtc_source_set("simulated_network_api") {
  469. visibility = [ "*" ]
  470. sources = [
  471. "test/simulated_network.h",
  472. ]
  473. deps = [
  474. "../rtc_base",
  475. "../rtc_base:criticalsection",
  476. "//third_party/abseil-cpp/absl/types:optional",
  477. ]
  478. }
  479. rtc_source_set("network_emulation_manager_api") {
  480. visibility = [ "*" ]
  481. sources = [
  482. "test/network_emulation_manager.h",
  483. ]
  484. deps = [
  485. ":simulated_network_api",
  486. "../rtc_base",
  487. "units:data_rate",
  488. "units:data_size",
  489. "units:timestamp",
  490. ]
  491. }
  492. rtc_source_set("fec_controller_api") {
  493. visibility = [ "*" ]
  494. sources = [
  495. "fec_controller.h",
  496. "fec_controller_override.h",
  497. ]
  498. deps = [
  499. "../modules:module_fec_api",
  500. "video:video_frame_type",
  501. ]
  502. }
  503. rtc_source_set("network_state_predictor_api") {
  504. visibility = [ "*" ]
  505. sources = [
  506. "network_state_predictor.h",
  507. ]
  508. }
  509. rtc_source_set("array_view") {
  510. visibility = [ "*" ]
  511. sources = [
  512. "array_view.h",
  513. ]
  514. deps = [
  515. "../rtc_base:checks",
  516. "../rtc_base:type_traits",
  517. ]
  518. }
  519. rtc_source_set("refcountedbase") {
  520. visibility = [ "*" ]
  521. sources = [
  522. "ref_counted_base.h",
  523. ]
  524. deps = [
  525. "../rtc_base:rtc_base_approved",
  526. ]
  527. }
  528. rtc_library("ice_transport_factory") {
  529. visibility = [ "*" ]
  530. sources = [
  531. "ice_transport_factory.cc",
  532. "ice_transport_factory.h",
  533. ]
  534. deps = [
  535. ":libjingle_peerconnection_api",
  536. ":packet_socket_factory",
  537. ":scoped_refptr",
  538. "../p2p:rtc_p2p",
  539. "../rtc_base",
  540. "../rtc_base/system:rtc_export",
  541. "rtc_event_log:rtc_event_log",
  542. ]
  543. }
  544. rtc_library("neteq_simulator_api") {
  545. visibility = [ "*" ]
  546. sources = [
  547. "test/neteq_simulator.cc",
  548. "test/neteq_simulator.h",
  549. ]
  550. }
  551. rtc_source_set("function_view") {
  552. visibility = [ "*" ]
  553. sources = [
  554. "function_view.h",
  555. ]
  556. deps = [
  557. "../rtc_base:checks",
  558. ]
  559. }
  560. if (rtc_include_tests) {
  561. if (rtc_enable_protobuf) {
  562. rtc_library("audioproc_f_api") {
  563. visibility = [ "*" ]
  564. testonly = true
  565. sources = [
  566. "test/audioproc_float.cc",
  567. "test/audioproc_float.h",
  568. ]
  569. deps = [
  570. "../modules/audio_processing",
  571. "../modules/audio_processing:api",
  572. "../modules/audio_processing:audioproc_f_impl",
  573. ]
  574. }
  575. rtc_library("neteq_simulator_factory") {
  576. visibility = [ "*" ]
  577. testonly = true
  578. sources = [
  579. "test/neteq_simulator_factory.cc",
  580. "test/neteq_simulator_factory.h",
  581. ]
  582. deps = [
  583. ":neteq_simulator_api",
  584. "../modules/audio_coding:neteq_test_factory",
  585. "../rtc_base:checks",
  586. "//third_party/abseil-cpp/absl/flags:flag",
  587. "//third_party/abseil-cpp/absl/flags:parse",
  588. "//third_party/abseil-cpp/absl/strings",
  589. ]
  590. }
  591. }
  592. rtc_source_set("simulcast_test_fixture_api") {
  593. visibility = [ "*" ]
  594. testonly = true
  595. sources = [
  596. "test/simulcast_test_fixture.h",
  597. ]
  598. }
  599. rtc_library("create_simulcast_test_fixture_api") {
  600. visibility = [ "*" ]
  601. testonly = true
  602. sources = [
  603. "test/create_simulcast_test_fixture.cc",
  604. "test/create_simulcast_test_fixture.h",
  605. ]
  606. deps = [
  607. ":simulcast_test_fixture_api",
  608. "../modules/video_coding:simulcast_test_fixture_impl",
  609. "../rtc_base:rtc_base_approved",
  610. "video_codecs:video_codecs_api",
  611. ]
  612. }
  613. rtc_library("videocodec_test_fixture_api") {
  614. visibility = [ "*" ]
  615. testonly = true
  616. sources = [
  617. "test/videocodec_test_fixture.h",
  618. "test/videocodec_test_stats.cc",
  619. "test/videocodec_test_stats.h",
  620. ]
  621. deps = [
  622. "..:webrtc_common",
  623. "../modules/video_coding:video_codec_interface",
  624. "../rtc_base:stringutils",
  625. "video:video_frame_type",
  626. "video_codecs:video_codecs_api",
  627. ]
  628. }
  629. rtc_library("create_videocodec_test_fixture_api") {
  630. visibility = [ "*" ]
  631. testonly = true
  632. sources = [
  633. "test/create_videocodec_test_fixture.cc",
  634. "test/create_videocodec_test_fixture.h",
  635. ]
  636. deps = [
  637. ":videocodec_test_fixture_api",
  638. "../modules/video_coding:video_codecs_test_framework",
  639. "../modules/video_coding:videocodec_test_impl",
  640. "../rtc_base:rtc_base_approved",
  641. "video_codecs:video_codecs_api",
  642. ]
  643. }
  644. rtc_source_set("mock_audio_mixer") {
  645. testonly = true
  646. sources = [
  647. "test/mock_audio_mixer.h",
  648. ]
  649. deps = [
  650. "../test:test_support",
  651. "audio:audio_mixer_api",
  652. ]
  653. }
  654. rtc_source_set("mock_fec_controller_override") {
  655. testonly = true
  656. sources = [
  657. "test/mock_fec_controller_override.h",
  658. ]
  659. deps = [
  660. ":fec_controller_api",
  661. "../test:test_support",
  662. ]
  663. }
  664. rtc_library("mock_frame_encryptor") {
  665. testonly = true
  666. sources = [
  667. "test/mock_frame_encryptor.cc",
  668. "test/mock_frame_encryptor.h",
  669. ]
  670. deps = [
  671. # For api/crypto/frame_encryptor_interface.h
  672. ":libjingle_peerconnection_api",
  673. "../test:test_support",
  674. "crypto:frame_encryptor_interface",
  675. ]
  676. }
  677. rtc_library("mock_frame_decryptor") {
  678. testonly = true
  679. sources = [
  680. "test/mock_frame_decryptor.cc",
  681. "test/mock_frame_decryptor.h",
  682. ]
  683. deps = [
  684. ":libjingle_peerconnection_api",
  685. "../test:test_support",
  686. "crypto:frame_decryptor_interface",
  687. ]
  688. }
  689. rtc_library("fake_frame_encryptor") {
  690. testonly = true
  691. sources = [
  692. "test/fake_frame_encryptor.cc",
  693. "test/fake_frame_encryptor.h",
  694. ]
  695. deps = [
  696. ":array_view",
  697. ":libjingle_peerconnection_api",
  698. ":rtp_parameters",
  699. "..:webrtc_common",
  700. "../rtc_base:checks",
  701. "../rtc_base:rtc_base_approved",
  702. "crypto:frame_encryptor_interface",
  703. ]
  704. }
  705. rtc_library("fake_frame_decryptor") {
  706. testonly = true
  707. sources = [
  708. "test/fake_frame_decryptor.cc",
  709. "test/fake_frame_decryptor.h",
  710. ]
  711. deps = [
  712. ":array_view",
  713. ":libjingle_peerconnection_api",
  714. ":rtp_parameters",
  715. "..:webrtc_common",
  716. "../rtc_base:checks",
  717. "../rtc_base:rtc_base_approved",
  718. "crypto:frame_decryptor_interface",
  719. ]
  720. }
  721. rtc_source_set("dummy_peer_connection") {
  722. visibility = [ "*" ]
  723. testonly = true
  724. sources = [
  725. "test/dummy_peer_connection.h",
  726. ]
  727. deps = [
  728. ":libjingle_peerconnection_api",
  729. ":rtc_error",
  730. "../rtc_base:checks",
  731. "../rtc_base:refcount",
  732. ]
  733. }
  734. rtc_source_set("mock_peerconnectioninterface") {
  735. testonly = true
  736. sources = [
  737. "test/mock_peerconnectioninterface.h",
  738. ]
  739. deps = [
  740. ":libjingle_peerconnection_api",
  741. "../test:test_support",
  742. ]
  743. }
  744. rtc_source_set("mock_rtp") {
  745. testonly = true
  746. sources = [
  747. "test/mock_rtpreceiver.h",
  748. "test/mock_rtpsender.h",
  749. ]
  750. deps = [
  751. ":libjingle_peerconnection_api",
  752. "../test:test_support",
  753. ]
  754. }
  755. rtc_source_set("mock_video_bitrate_allocator") {
  756. testonly = true
  757. sources = [
  758. "test/mock_video_bitrate_allocator.h",
  759. ]
  760. deps = [
  761. "../api/video:video_bitrate_allocator",
  762. "../test:test_support",
  763. ]
  764. }
  765. rtc_source_set("mock_video_bitrate_allocator_factory") {
  766. testonly = true
  767. sources = [
  768. "test/mock_video_bitrate_allocator_factory.h",
  769. ]
  770. deps = [
  771. "../api/video:video_bitrate_allocator_factory",
  772. "../test:test_support",
  773. ]
  774. }
  775. rtc_source_set("mock_video_codec_factory") {
  776. testonly = true
  777. sources = [
  778. "test/mock_video_decoder_factory.h",
  779. "test/mock_video_encoder_factory.h",
  780. ]
  781. deps = [
  782. "../api/video_codecs:video_codecs_api",
  783. "../test:test_support",
  784. ]
  785. }
  786. rtc_library("mock_video_decoder") {
  787. visibility = [ "*" ]
  788. testonly = true
  789. sources = [
  790. "test/mock_video_decoder.cc",
  791. "test/mock_video_decoder.h",
  792. ]
  793. deps = [
  794. "../api/video_codecs:video_codecs_api",
  795. "../test:test_support",
  796. ]
  797. }
  798. rtc_library("mock_video_encoder") {
  799. visibility = [ "*" ]
  800. testonly = true
  801. sources = [
  802. "test/mock_video_encoder.cc",
  803. "test/mock_video_encoder.h",
  804. ]
  805. deps = [
  806. "../api/video_codecs:video_codecs_api",
  807. "../test:test_support",
  808. ]
  809. }
  810. rtc_source_set("fake_media_transport") {
  811. testonly = true
  812. sources = [
  813. "test/fake_datagram_transport.h",
  814. "test/fake_media_transport.h",
  815. ]
  816. deps = [
  817. "../rtc_base:checks",
  818. "transport:datagram_transport_interface",
  819. "transport/media:media_transport_interface",
  820. "//third_party/abseil-cpp/absl/algorithm:container",
  821. ]
  822. }
  823. rtc_library("loopback_media_transport") {
  824. testonly = true
  825. sources = [
  826. "test/loopback_media_transport.cc",
  827. "test/loopback_media_transport.h",
  828. ]
  829. deps = [
  830. "../rtc_base",
  831. "../rtc_base:checks",
  832. "transport:datagram_transport_interface",
  833. "transport/media:media_transport_interface",
  834. "//third_party/abseil-cpp/absl/algorithm:container",
  835. ]
  836. }
  837. rtc_library("rtc_api_unittests") {
  838. testonly = true
  839. sources = [
  840. "array_view_unittest.cc",
  841. "function_view_unittest.cc",
  842. "rtc_error_unittest.cc",
  843. "rtc_event_log_output_file_unittest.cc",
  844. "rtp_packet_info_unittest.cc",
  845. "rtp_packet_infos_unittest.cc",
  846. "rtp_parameters_unittest.cc",
  847. "test/loopback_media_transport_unittest.cc",
  848. ]
  849. deps = [
  850. ":array_view",
  851. ":function_view",
  852. ":libjingle_peerconnection_api",
  853. ":loopback_media_transport",
  854. ":rtc_error",
  855. ":rtc_event_log_output_file",
  856. ":rtp_packet_info",
  857. ":rtp_parameters",
  858. "../rtc_base:checks",
  859. "../rtc_base:gunit_helpers",
  860. "../rtc_base:rtc_base_approved",
  861. "../test:fileutils",
  862. "../test:test_support",
  863. "task_queue:task_queue_default_factory_unittests",
  864. "units:units_unittests",
  865. "video:video_unittests",
  866. ]
  867. }
  868. rtc_library("compile_all_headers") {
  869. testonly = true
  870. sources = [
  871. "test/compile_all_headers.cc",
  872. ]
  873. deps = [
  874. ":fake_frame_decryptor",
  875. ":fake_frame_encryptor",
  876. ":fake_media_transport",
  877. ":loopback_media_transport",
  878. ":mock_audio_mixer",
  879. ":mock_frame_decryptor",
  880. ":mock_frame_encryptor",
  881. ":mock_peerconnectioninterface",
  882. ":mock_rtp",
  883. ":mock_video_bitrate_allocator",
  884. ":mock_video_bitrate_allocator_factory",
  885. ":mock_video_codec_factory",
  886. ":mock_video_decoder",
  887. ":mock_video_encoder",
  888. ":rtc_api_unittests",
  889. "units:units_unittests",
  890. ]
  891. }
  892. }