summaryrefslogtreecommitdiff
path: root/tools/box/box_test.cc
diff options
context:
space:
mode:
authorjiyong.min <jiyong.min@samsung.com>2022-12-07 10:34:18 +0900
committerjiyong.min <jiyong.min@samsung.com>2022-12-07 13:37:38 +0900
commit8f303a6e2069fd39246decb4fe7aecb221cb134a (patch)
tree64704d2db44568e6a99cd4b8f159e9e94bbaefbc /tools/box/box_test.cc
parentb2051fff838fd13eda203439f58679cbefea065e (diff)
parent7fa2aaed0a5c855460b77fb1fedcc01591ff6470 (diff)
downloadlibjxl-8f303a6e2069fd39246decb4fe7aecb221cb134a.tar.gz
libjxl-8f303a6e2069fd39246decb4fe7aecb221cb134a.tar.bz2
libjxl-8f303a6e2069fd39246decb4fe7aecb221cb134a.zip
Change-Id: Ib06199c1a967d1c08974f2e95f085ade02c5fb72
Diffstat (limited to 'tools/box/box_test.cc')
-rw-r--r--tools/box/box_test.cc9
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()));
}