diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-13 19:38:48 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-13 19:38:48 +0000 |
commit | 609706121877c28ca2a80c7810e63a47e68806e3 (patch) | |
tree | 6219ac4caa1d50a66bfc870218be0066b391bb37 /jingle | |
parent | 72a1623f05cdfec636a5554baef322e32c3517bd (diff) | |
download | chromium_src-609706121877c28ca2a80c7810e63a47e68806e3.zip chromium_src-609706121877c28ca2a80c7810e63a47e68806e3.tar.gz chromium_src-609706121877c28ca2a80c7810e63a47e68806e3.tar.bz2 |
Fixed test broken in Release build.
BUG=None
TEST=ChromeAsyncSocket.WrongRead now passes
Review URL: http://codereview.chromium.org/3323026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59261 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'jingle')
-rw-r--r-- | jingle/notifier/base/chrome_async_socket_unittest.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/jingle/notifier/base/chrome_async_socket_unittest.cc b/jingle/notifier/base/chrome_async_socket_unittest.cc index fa95f91..b6a3e26 100644 --- a/jingle/notifier/base/chrome_async_socket_unittest.cc +++ b/jingle/notifier/base/chrome_async_socket_unittest.cc @@ -538,9 +538,13 @@ TEST_F(ChromeAsyncSocketTest, WrongRead) { char buf[4096]; size_t len_read; EXPECT_FALSE(chrome_async_socket_->Read(buf, sizeof(buf), &len_read)); - ExpectErrorState(ChromeAsyncSocket::STATE_CLOSED, + ExpectErrorState(ChromeAsyncSocket::STATE_CONNECTING, ChromeAsyncSocket::ERROR_WRONGSTATE); EXPECT_TRUE(chrome_async_socket_->Close()); + ExpectSignalSocketState( + SignalSocketState( + SIGNAL_CLOSE, ChromeAsyncSocket::STATE_CLOSED, + ChromeAsyncSocket::ERROR_WRONGSTATE, net::OK)); }, "non-open"); } |