| Index: base/pickle_unittest.cc
|
| diff --git a/base/pickle_unittest.cc b/base/pickle_unittest.cc
|
| index 39eaa1bb7936525d2ad7d685f21f09df449b3c69..51330c7b4acd942c5f6647b49bcb83db791e378f 100644
|
| --- a/base/pickle_unittest.cc
|
| +++ b/base/pickle_unittest.cc
|
| @@ -19,6 +19,7 @@ const char testdata[] = "AAA\0BBB\0";
|
| const int testdatalen = arraysize(testdata) - 1;
|
| const bool testbool1 = false;
|
| const bool testbool2 = true;
|
| +const uint16 testuint16 = 32123;
|
|
|
| // checks that the result
|
| void VerifyResult(const Pickle& pickle) {
|
| @@ -42,6 +43,10 @@ void VerifyResult(const Pickle& pickle) {
|
| EXPECT_TRUE(pickle.ReadBool(&iter, &outbool));
|
| EXPECT_EQ(testbool2, outbool);
|
|
|
| + uint16 outuint16;
|
| + EXPECT_TRUE(pickle.ReadUInt16(&iter, &outuint16));
|
| + EXPECT_EQ(testuint16, outuint16);
|
| +
|
| const char* outdata;
|
| int outdatalen;
|
| EXPECT_TRUE(pickle.ReadData(&iter, &outdata, &outdatalen));
|
| @@ -66,6 +71,7 @@ TEST(PickleTest, EncodeDecode) {
|
| EXPECT_TRUE(pickle.WriteWString(testwstr));
|
| EXPECT_TRUE(pickle.WriteBool(testbool1));
|
| EXPECT_TRUE(pickle.WriteBool(testbool2));
|
| + EXPECT_TRUE(pickle.WriteUInt16(testuint16));
|
| EXPECT_TRUE(pickle.WriteData(testdata, testdatalen));
|
|
|
| // Over allocate BeginWriteData so we can test TrimWriteData.
|
|
|