diff options
author | jiyong.min <jiyong.min@samsung.com> | 2022-12-07 10:34:18 +0900 |
---|---|---|
committer | jiyong.min <jiyong.min@samsung.com> | 2022-12-07 13:37:38 +0900 |
commit | 8f303a6e2069fd39246decb4fe7aecb221cb134a (patch) | |
tree | 64704d2db44568e6a99cd4b8f159e9e94bbaefbc /tools/box/box_test.cc | |
parent | b2051fff838fd13eda203439f58679cbefea065e (diff) | |
parent | 7fa2aaed0a5c855460b77fb1fedcc01591ff6470 (diff) | |
download | libjxl-8f303a6e2069fd39246decb4fe7aecb221cb134a.tar.gz libjxl-8f303a6e2069fd39246decb4fe7aecb221cb134a.tar.bz2 libjxl-8f303a6e2069fd39246decb4fe7aecb221cb134a.zip |
Bump to 0.7.0accepted/tizen/unified/20221216.024040
Change-Id: Ib06199c1a967d1c08974f2e95f085ade02c5fb72
Diffstat (limited to 'tools/box/box_test.cc')
-rw-r--r-- | tools/box/box_test.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/box/box_test.cc b/tools/box/box_test.cc index a81db19..3146bcf 100644 --- a/tools/box/box_test.cc +++ b/tools/box/box_test.cc @@ -41,8 +41,7 @@ TEST(BoxTest, BoxTest) { container.xmlc.emplace_back(xml1.data(), xml1.size()); container.jumb = jumb.data(); container.jumb_size = jumb.size(); - container.codestream = codestream.data(); - container.codestream_size = codestream.size(); + container.codestream = std::move(codestream); jxl::PaddedBytes file; EXPECT_EQ(true, @@ -71,7 +70,7 @@ TEST(BoxTest, BoxTest) { } EXPECT_EQ(jumb.size(), container2.jumb_size); EXPECT_EQ(0, memcmp(jumb.data(), container2.jumb, container2.jumb_size)); - EXPECT_EQ(codestream.size(), container2.codestream_size); - EXPECT_EQ(0, memcmp(codestream.data(), container2.codestream, - container2.codestream_size)); + EXPECT_EQ(container.codestream.size(), container2.codestream.size()); + EXPECT_EQ(0, memcmp(container.codestream.data(), container2.codestream.data(), + container2.codestream.size())); } |