xref: /aosp_15_r20/external/webrtc/api/video/test/BUILD.gn (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1# Copyright (c) 2018 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
9import("../../../webrtc.gni")
10
11rtc_library("rtc_api_video_unittests") {
12  testonly = true
13  sources = [
14    "color_space_unittest.cc",
15    "i210_buffer_unittest.cc",
16    "i422_buffer_unittest.cc",
17    "i444_buffer_unittest.cc",
18    "nv12_buffer_unittest.cc",
19    "video_adaptation_counters_unittest.cc",
20    "video_bitrate_allocation_unittest.cc",
21  ]
22  deps = [
23    "..:video_adaptation",
24    "..:video_bitrate_allocation",
25    "..:video_frame",
26    "..:video_frame_i010",
27    "..:video_rtp_headers",
28    "../../../test:frame_utils",
29    "../../../test:test_support",
30  ]
31  absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
32}
33
34rtc_source_set("mock_recordable_encoded_frame") {
35  testonly = true
36  visibility = [ "*" ]
37  sources = [ "mock_recordable_encoded_frame.h" ]
38
39  deps = [
40    "..:recordable_encoded_frame",
41    "../../../test:test_support",
42  ]
43}
44
45rtc_source_set("video_frame_matchers") {
46  testonly = true
47  visibility = [ "*" ]
48  sources = [ "video_frame_matchers.h" ]
49
50  deps = [
51    "..:video_frame",
52    "../..:rtp_packet_info",
53    "../../../test:test_support",
54  ]
55}
56