Retain empty first frames as well as final frames.
If the payload of the first frame of a multi-frame message was empty, then the
type of the message would be lost. To avoid this, always retain the first chunk
of the first frame of a message, even if the payload is empty.
Also add tests for empty frames, a frame larger than the read buffer,
and a masked frame with a non-nul mask.
Changed some ASSERT_EQ() statements that weren't necessary to prevent
tests from crashing or hanging into EXPECT_EQ() statements.
BUG=305081
Review URL: https://codereview.chromium.org/26440002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228161 0039d316-1c4b-4281-b951-d872f2087c98
3 files changed