Index: net/url_request/url_request_quic_unittest.cc |
diff --git a/net/url_request/url_request_quic_unittest.cc b/net/url_request/url_request_quic_unittest.cc |
index f9ec11d192855fe69d8a08f8a495894d2285fdf4..d05adfb91a1414e1e86c9f4f68721a07672f21e5 100644 |
--- a/net/url_request/url_request_quic_unittest.cc |
+++ b/net/url_request/url_request_quic_unittest.cc |
@@ -307,15 +307,14 @@ TEST_F(URLRequestQuicTest, CancelPushIfCached) { |
EXPECT_TRUE(entries[0].GetStringValue("push_url", &value)); |
EXPECT_EQ(value, push_url_1); |
- // No net error code for this lookup transaction, the push is found. |
- EXPECT_FALSE(entries[1].GetIntegerValue("net_error", &net_error)); |
- |
- EXPECT_TRUE(entries[2].GetStringValue("push_url", &value)); |
+ EXPECT_TRUE(entries[1].GetStringValue("push_url", &value)); |
EXPECT_EQ(value, push_url_2); |
// Net error code -400 is found for this lookup transaction, the push is not |
// found in the cache. |
- EXPECT_TRUE(entries[3].GetIntegerValue("net_error", &net_error)); |
+ EXPECT_TRUE(entries[2].GetIntegerValue("net_error", &net_error)); |
EXPECT_EQ(net_error, -400); |
+ // No net error code for this lookup transaction, the push is found. |
+ EXPECT_FALSE(entries[3].GetIntegerValue("net_error", &net_error)); |
// Verify the reset error count received on the server side. |
EXPECT_LE(1u, GetRstErrorCountReceivedByServer(QUIC_STREAM_CANCELLED)); |
@@ -394,11 +393,13 @@ TEST_F(URLRequestQuicTest, CancelPushIfCached2) { |
EXPECT_TRUE(entries[0].GetStringValue("push_url", &value)); |
EXPECT_EQ(value, push_url_1); |
- // No net error code for this lookup transaction, the push is found. |
- EXPECT_FALSE(entries[1].GetIntegerValue("net_error", &net_error)); |
- EXPECT_TRUE(entries[2].GetStringValue("push_url", &value)); |
+ EXPECT_TRUE(entries[1].GetStringValue("push_url", &value)); |
EXPECT_EQ(value, push_url_2); |
+ |
+ // No net error code for this lookup transaction, the push is found. |
+ EXPECT_FALSE(entries[2].GetIntegerValue("net_error", &net_error)); |
+ |
// No net error code for this lookup transaction, the push is found. |
EXPECT_FALSE(entries[3].GetIntegerValue("net_error", &net_error)); |