Added clear() function to rewind().
Added clear() function to rewind().

The unittest NetworkSourceLineServerTest.TestMalformedRequest fails since
http://gcc.gnu.org/viewcvs?view=revision&revision=166911. That CL is supposed to
be C++ standards-compliant in resetting the EOF.

Earlier, because of the first malformed request, the eof() bit was set to 1 and
was never reset back to 0 during the seeks. The fail() bit was also set to 1.
Subsequent operations always returned eof() to be true (even just after the
write before the read). So the test was relying on incorrect behavior.

BUG=none
TEST=FEATURES=test emerge-$board google-breakpad

Change-Id: Id7165537db7dee51a732b5030d68411725e8c90c
Reviewed-on: http://gerrit.chromium.org/gerrit/7797
Reviewed-by: Michael Krebs <d6638659c20694b0807ba6fa35ee0bac2e482e0f@chromium.org>
Reviewed-by: asharif <0bffdc695497b480334d6a40467f7e340b20eba1@chromium.org>
Tested-by: asharif <0bffdc695497b480334d6a40467f7e340b20eba1@chromium.org>

mhoran/google-breakpad,bbcallen/google-breakpad,Quiark/google-breakpad,Quiark/google-breakpad,bbcallen/google-breakpad,Quiark/google-breakpad,mhoran/google-breakpad,Quiark/google-breakpad,Quiark/google-breakpad,Quiark/google-breakpad,mhoran/google-breakpad,mhoran/google-breakpad,bbcallen/google-breakpad,bbcallen/google-breakpad,bbcallen/google-breakpad,mhoran/google-breakpad,mhoran/google-breakpad,bbcallen/google-breakpad