• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Tests for the IAMF software.
2
3# keep-sorted start block=yes prefix_order=cc_test newline_separated=yes
4cc_test(
5    name = "bit_buffer_util_test",
6    srcs = ["bit_buffer_util_test.cc"],
7    deps = [
8        "//iamf/common/utils:bit_buffer_util",
9        "@com_google_absl//absl/status",
10        "@com_google_absl//absl/status:status_matchers",
11        "@com_google_googletest//:gtest_main",
12    ],
13)
14
15cc_test(
16    name = "map_utils_test",
17    srcs = ["map_utils_test.cc"],
18    deps = [
19        "//iamf/common/utils:map_utils",
20        "@com_google_absl//absl/container:flat_hash_map",
21        "@com_google_absl//absl/functional:function_ref",
22        "@com_google_absl//absl/status",
23        "@com_google_absl//absl/status:status_matchers",
24        "@com_google_absl//absl/strings:string_view",
25        "@com_google_googletest//:gtest_main",
26    ],
27)
28
29cc_test(
30    name = "numeric_utils_test",
31    srcs = ["numeric_utils_test.cc"],
32    deps = [
33        "//iamf/cli/tests:cli_test_utils",
34        "//iamf/common:write_bit_buffer",
35        "//iamf/common/utils:numeric_utils",
36        "//iamf/obu:types",
37        "@com_google_absl//absl/functional:any_invocable",
38        "@com_google_absl//absl/status",
39        "@com_google_absl//absl/status:status_matchers",
40        "@com_google_absl//absl/strings:string_view",
41        "@com_google_absl//absl/types:span",
42        "@com_google_googletest//:gtest_main",
43    ],
44)
45
46cc_test(
47    name = "sample_processing_utils_test",
48    srcs = ["sample_processing_utils_test.cc"],
49    deps = [
50        "//iamf/common/utils:sample_processing_utils",
51        "@com_google_absl//absl/functional:any_invocable",
52        "@com_google_absl//absl/status",
53        "@com_google_absl//absl/status:status_matchers",
54        "@com_google_absl//absl/strings:string_view",
55        "@com_google_absl//absl/types:span",
56        "@com_google_googletest//:gtest_main",
57    ],
58)
59
60cc_test(
61    name = "validation_utils_test",
62    size = "small",
63    srcs = ["validation_utils_test.cc"],
64    deps = [
65        "//iamf/common/utils:validation_utils",
66        "@com_google_absl//absl/status:status_matchers",
67        "@com_google_absl//absl/strings:string_view",
68        "@com_google_googletest//:gtest_main",
69    ],
70)
71
72cc_library(
73    name = "test_utils",
74    testonly = True,
75    srcs = ["test_utils.cc"],
76    hdrs = ["test_utils.h"],
77    visibility = [
78        "//iamf/common/tests:__subpackages__",
79        "//iamf/obu/decoder_config/tests:__subpackages__",
80        "//iamf/obu/tests:__subpackages__",
81    ],
82    deps = [
83        "//iamf/common:write_bit_buffer",
84        "@com_google_googletest//:gtest",
85    ],
86)
87
88# keep-sorted end
89