diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-10 22:01:23 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-10 22:01:23 +0000 |
commit | bc389d78c9ec3c5f5f1cb416c3b83aefcf969a98 (patch) | |
tree | b64ea71e6a41a00765ac2b4cf4034267c7b3ad83 /tools/valgrind/memcheck/suppressions.txt | |
parent | 50c7eb8a256dfbff20f5434f78a3f4f537c4239b (diff) | |
download | chromium_src-bc389d78c9ec3c5f5f1cb416c3b83aefcf969a98.zip chromium_src-bc389d78c9ec3c5f5f1cb416c3b83aefcf969a98.tar.gz chromium_src-bc389d78c9ec3c5f5f1cb416c3b83aefcf969a98.tar.bz2 |
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: svn://svn.chromium.org/chrome/trunk/src@31605 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind/memcheck/suppressions.txt')
0 files changed, 0 insertions, 0 deletions