Commit f8909e87 authored by Milo Yip's avatar Milo Yip

Improve coverage of encoded streams

parent afe2fbdc
......@@ -160,6 +160,7 @@ protected:
}
EXPECT_EQ('\0', s.Peek());
free(data);
EXPECT_EQ(size, eis.Tell());
}
}
......@@ -280,7 +281,7 @@ TEST_F(EncodedStreamTest, AutoUTFInputStream) {
{
// Auto detection fail, use user defined UTF type
const char json[] = "{}";
const char json[] = "{ }";
MemoryStream ms(json, sizeof(json));
AutoUTFInputStream<unsigned, MemoryStream> eis(ms, kUTF8);
EXPECT_FALSE(eis.HasBOM());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment