| 30 | } |
| 31 | |
| 32 | static void ExpectAddInt(int Input, int Expected) |
| 33 | { |
| 34 | CPacker Packer; |
| 35 | Packer.Reset(); |
| 36 | Packer.AddInt(Input); |
| 37 | EXPECT_EQ(Packer.Error(), false); |
| 38 | ASSERT_EQ(Packer.Size(), 1); |
| 39 | EXPECT_EQ(Packer.Data()[0], Expected); |
| 40 | } |
| 41 | |
| 42 | static void ExpectAddExtendedInt(int Input, unsigned char *pExpected, int Size) |
| 43 | { |