diff options
-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"); } |