From 609706121877c28ca2a80c7810e63a47e68806e3 Mon Sep 17 00:00:00 2001 From: "akalin@chromium.org" Date: Mon, 13 Sep 2010 19:38:48 +0000 Subject: 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 --- jingle/notifier/base/chrome_async_socket_unittest.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"); } -- cgit v1.1