Lines Matching defs:box
18 // Top-level test box containing three children
22 // Ordinary (8-byte header) child box
24 // Extended-size header child box
28 // Empty free box
93 SkipBox box;
94 EXPECT_TRUE(box.Parse(reader.get()));
97 EXPECT_EQ(0x05, box.a);
98 EXPECT_EQ(0x06, box.b);
99 EXPECT_EQ(0x0708, box.c);
100 EXPECT_EQ(static_cast<int32>(0xf90a0b0c), box.d);
101 EXPECT_EQ(static_cast<int32>(0xfd0e0f10), box.e);
103 EXPECT_EQ(2u, box.kids.size());
104 EXPECT_EQ(0xdeadbeef, box.kids[0].val);
105 EXPECT_EQ(0xfacecafe, box.kids[1].val);
107 // Accounting for the extra byte outside of the box above
115 // Create a soft failure by truncating the outer box.
127 // Make an inner box too big for its outer box.
132 SkipBox box;
133 EXPECT_FALSE(box.Parse(reader.get()));
172 // Modify buffer to exclude its last 'free' box