Fix WebSocketChannel for NULL payloads.
commit00f4daf0d65230ca06d0c8452ad732910c56d5cc
authorricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 12 Nov 2013 13:56:41 +0000 (12 13:56 +0000)
committerricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 12 Nov 2013 13:56:41 +0000 (12 13:56 +0000)
tree4b37f1641cf34fd4096657f1285eb3efe3fca2c6
parentee7df8f58f9172500fd14af56d0e13f2fd37c33a
Fix WebSocketChannel for NULL payloads.

WebSocketChannel did not handle NULL payloads correctly. Add test cases
for NULL payloads, and fix the bugs.

BUG=316528
TEST=net_unittests --gtest_filter=WebSocketChannel*

Review URL: https://codereview.chromium.org/66543003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234503 0039d316-1c4b-4281-b951-d872f2087c98
net/websockets/websocket_channel.cc
net/websockets/websocket_channel_test.cc