Skip to content

Commit

Permalink
Add a parameterized test to ensure the test suite can be produced.
Browse files Browse the repository at this point in the history
  - Checks that `is_valid == true` test vectors can be encoded.
  - Checks that `is_valid == false` test vectors cannot be encoded.
  - Drive-by: Fix a msan issue where `ExtenderParamDefinition::Print()`, would print `ParamDefinitionBase`, even though `ExtenderParamDefinition` does has none of the fields the base.

PiperOrigin-RevId: 663817018
  • Loading branch information
jwcullen committed Aug 16, 2024
1 parent 4025a37 commit ba1d800
Show file tree
Hide file tree
Showing 3 changed files with 938 additions and 1 deletion.
8 changes: 8 additions & 0 deletions iamf/cli/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,23 @@ cc_test(

cc_test(
name = "encoder_main_lib_test",
size = "medium",
srcs = ["encoder_main_lib_test.cc"],
data = [
"//iamf/cli/testdata:input_wav_files",
"//iamf/cli/testdata:test_vectors",
],
shard_count = 16,
deps = [
"//iamf/cli:encoder_main_lib",
"//iamf/cli/proto:codec_config_cc_proto",
"//iamf/cli/proto:ia_sequence_header_cc_proto",
"//iamf/cli/proto:test_vector_metadata_cc_proto",
"//iamf/cli/proto:user_metadata_cc_proto",
"@com_google_absl//absl/log",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:status_matchers",
"@com_google_absl//absl/strings:string_view",
"@com_google_googletest//:gtest_main",
"@com_google_protobuf//:protobuf",
],
Expand Down
Loading

0 comments on commit ba1d800

Please sign in to comment.