Add a couple of methods to the StaticMockSocket for verifying that all data has been consumed from the Mock socket.  Tests can optionally use this by including a zero-length read at the end of their data and then verifying that it is at the end.
Add a couple of methods to the StaticMockSocket for verifying
that all data has been consumed from the Mock socket.  Tests
can optionally use this by including a zero-length read at the
end of their data and then verifying that it is at the end.

Example:
  MockWrite writes[] = { 
    MockWrite( ... <data> ...),
    MockWrite( ... <data> ...),
    MockWrite( ... <data> ...),
    MockWrite(true, 0, 0),     // Marks EOF
  }

  <run tests>

  EXPECT_EQ(mock_socket.at_write_eof());


TEST=this is the test
BUG=none

Review URL: http://codereview.chromium.org/385011

git-svn-id: http://src.chromium.org/svn/trunk/src@31605 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: 0a9adb121c94943c0abbb336dec1fc0136e66592
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser