Ressurrect the WriteError test by making a scoped method factory for the DelayedSocketDataProvider. The problem which crashed was that the lifecycle of the socket and the data provider are not coupled; and the posted message for a delayed ReadCompletion could be left hanging.
Ressurrect the WriteError test by making a scoped
method factory for the DelayedSocketDataProvider.
The problem which crashed was that the lifecycle of
the socket and the data provider are not coupled; and
the posted message for a delayed ReadCompletion could
be left hanging.

Running test on bots at night.

BUG=none
TEST=WriteError
TBR=eroman@chromium.org

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

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

Former-commit-id: 14c606e019ffd5dc32de35f4a2d10193e10574e0
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