| 175 | } |
| 176 | |
| 177 | void AssertParsePartial(BlockParser& parser, const std::string& str, |
| 178 | uint32_t expected_size) { |
| 179 | uint32_t parsed_size = static_cast<uint32_t>(-1); |
| 180 | ASSERT_OK(Parse(parser, str, &parsed_size)); |
| 181 | ASSERT_EQ(parsed_size, expected_size); |
| 182 | } |
| 183 | |
| 184 | void AssertParsePartial(BlockParser& parser, const std::vector<std::string_view>& data, |
| 185 | uint32_t expected_size) { |