Index: test/unittests/wasm/decoder-unittest.cc |
diff --git a/test/unittests/wasm/decoder-unittest.cc b/test/unittests/wasm/decoder-unittest.cc |
index e298f0ba9f74acf04c5cb6bed30881fb932afd4c..d1580c3a7d9d99dfb08dc18eb88dece23c334468 100644 |
--- a/test/unittests/wasm/decoder-unittest.cc |
+++ b/test/unittests/wasm/decoder-unittest.cc |
@@ -27,6 +27,10 @@ class DecoderTest : public TestWithZone { |
EXPECT_EQ(expected, \ |
decoder.checked_read_u32v(decoder.start(), 0, &length)); \ |
EXPECT_EQ(expected_length, length); \ |
+ EXPECT_EQ(data, decoder.pc()); \ |
+ EXPECT_TRUE(decoder.ok()); \ |
+ EXPECT_EQ(expected, decoder.consume_u32v()); \ |
+ EXPECT_EQ(data + expected_length, decoder.pc()); \ |
} while (false) |
#define CHECK_INT32V_INLINE(expected, expected_length, ...) \ |
@@ -37,6 +41,10 @@ class DecoderTest : public TestWithZone { |
EXPECT_EQ(expected, \ |
decoder.checked_read_i32v(decoder.start(), 0, &length)); \ |
EXPECT_EQ(expected_length, length); \ |
+ EXPECT_EQ(data, decoder.pc()); \ |
+ EXPECT_TRUE(decoder.ok()); \ |
+ EXPECT_EQ(expected, decoder.consume_i32v()); \ |
+ EXPECT_EQ(data + expected_length, decoder.pc()); \ |
} while (false) |
#define CHECK_UINT64V_INLINE(expected, expected_length, ...) \ |