Fix 2 failing golden tests

- Add ifdef for LIBYUV_UNLIMITED_DATA

Fixed by Gemini just telling it how to build and run the test and to fix it.

Bug: libyuv:353545922
Change-Id: I117a25b75b9616ee2ce6122aa163c2085ed4dc7d
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/7742120
Reviewed-by: James Zern <jzern@google.com>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
This commit is contained in:
Frank Barchard 2026-04-09 11:03:54 -07:00 committed by libyuv LUCI CQ
parent e3ceea1e67
commit 4f4e1ac553
3 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Name: libyuv
URL: https://chromium.googlesource.com/libyuv/libyuv/
Version: 1923
Version: 1924
Revision: DEPS
License: BSD-3-Clause
License File: LICENSE

View File

@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 1923
#define LIBYUV_VERSION 1924
#endif // INCLUDE_LIBYUV_VERSION_H_

View File

@ -2704,7 +2704,11 @@ TEST_F(LibYUVConvertTest, TestYUY2ToARGB) {
}
YUY2ToARGB(&orig_pixels[0][0], 0, &dest_argb[0][0], 0, 256, 1);
uint32_t checksum = HashDjb2(&dest_argb[0][0], sizeof(dest_argb), 5381);
#if defined(LIBYUV_UNLIMITED_DATA)
EXPECT_EQ(10343289u, checksum);
#else
EXPECT_EQ(3486643515u, checksum);
#endif
}
TEST_F(LibYUVConvertTest, TestUYVYToARGB) {
@ -2718,7 +2722,11 @@ TEST_F(LibYUVConvertTest, TestUYVYToARGB) {
}
UYVYToARGB(&orig_pixels[0][0], 0, &dest_argb[0][0], 0, 256, 1);
uint32_t checksum = HashDjb2(&dest_argb[0][0], sizeof(dest_argb), 5381);
#if defined(LIBYUV_UNLIMITED_DATA)
EXPECT_EQ(10343289u, checksum);
#else
EXPECT_EQ(3486643515u, checksum);
#endif
}
#ifdef ENABLE_ROW_TESTS