Index: net/websockets/websocket_end_to_end_test.cc |
diff --git a/net/websockets/websocket_end_to_end_test.cc b/net/websockets/websocket_end_to_end_test.cc |
index 0b7248ca18a05358dfec86cdc0d9d366dff65ef0..19f4a19c5a25eaa6e1beabc61b3f5ee2e728d8dd 100644 |
--- a/net/websockets/websocket_end_to_end_test.cc |
+++ b/net/websockets/websocket_end_to_end_test.cc |
@@ -435,7 +435,7 @@ TEST_F(WebSocketEndToEndTest, DISABLED_ON_ANDROID(HstsHttpsToWebSocket)) { |
request->Start(); |
// TestDelegate exits the message loop when the request completes. |
base::RunLoop().Run(); |
- EXPECT_TRUE(request->status().is_success()); |
+ EXPECT_EQ(OK, delegate.request_status()); |
// Check HSTS with ws: |
// Change the scheme from wss: to ws: to verify that it is switched back. |
@@ -469,7 +469,7 @@ TEST_F(WebSocketEndToEndTest, DISABLED_ON_ANDROID(HstsWebSocketToHttps)) { |
request->Start(); |
// TestDelegate exits the message loop when the request completes. |
base::RunLoop().Run(); |
- EXPECT_TRUE(request->status().is_success()); |
+ EXPECT_EQ(OK, delegate.request_status()); |
EXPECT_TRUE(request->url().SchemeIs("https")); |
} |