Lines Matching refs:pending_requests
130 EXPECT_TRUE(resolver->pending_requests().empty());
170 ASSERT_EQ(1u, resolver->pending_requests().size());
171 EXPECT_EQ(url, resolver->pending_requests()[0]->url());
174 resolver->pending_requests()[0]->results()->UseNamedProxy("foopy");
175 resolver->pending_requests()[0]->CompleteNow(OK);
218 ASSERT_EQ(1u, resolver->pending_requests().size());
221 resolver->pending_requests()[0]->url());
246 ASSERT_EQ(1u, resolver->pending_requests().size());
247 EXPECT_EQ(url, resolver->pending_requests()[0]->url());
250 resolver->pending_requests()[0]->results()->UseNamedProxy("foopy:8080");
251 resolver->pending_requests()[0]->CompleteNow(OK);
304 ASSERT_EQ(1u, resolver->pending_requests().size());
305 EXPECT_EQ(url, resolver->pending_requests()[0]->url());
308 resolver->pending_requests()[0]->results()->UsePacString(
310 resolver->pending_requests()[0]->CompleteNow(OK);
370 ASSERT_EQ(1u, resolver->pending_requests().size());
371 EXPECT_EQ(url, resolver->pending_requests()[0]->url());
374 resolver->pending_requests()[0]->CompleteNow(ERR_FAILED);
387 ASSERT_EQ(1u, resolver->pending_requests().size());
388 EXPECT_EQ(url, resolver->pending_requests()[0]->url());
392 resolver->pending_requests()[0]->results()->UseNamedProxy("foopy_valid:8080");
393 resolver->pending_requests()[0]->CompleteNow(OK);
424 ASSERT_EQ(1u, resolver->pending_requests().size());
425 EXPECT_EQ(url, resolver->pending_requests()[0]->url());
428 resolver->pending_requests()[0]->results()->UseNamedProxy(
430 resolver->pending_requests()[0]->CompleteNow(OK);
450 ASSERT_EQ(1u, resolver->pending_requests().size());
451 EXPECT_EQ(url, resolver->pending_requests()[0]->url());
455 resolver->pending_requests()[0]->results()->UseNamedProxy(
457 resolver->pending_requests()[0]->CompleteNow(OK);
514 ASSERT_EQ(1u, resolver->pending_requests().size());
515 EXPECT_EQ(url, resolver->pending_requests()[0]->url());
518 resolver->pending_requests()[0]->results()->UsePacString(
520 resolver->pending_requests()[0]->CompleteNow(OK);
577 ASSERT_EQ(1u, resolver->pending_requests().size());
578 EXPECT_EQ(url, resolver->pending_requests()[0]->url());
581 resolver->pending_requests()[0]->results()->UseNamedProxy(
583 resolver->pending_requests()[0]->CompleteNow(OK);
603 ASSERT_EQ(1u, resolver->pending_requests().size());
604 EXPECT_EQ(url, resolver->pending_requests()[0]->url());
606 resolver->pending_requests()[0]->results()->UseNamedProxy(
608 resolver->pending_requests()[0]->CompleteNow(OK);
636 ASSERT_EQ(1u, resolver->pending_requests().size());
637 EXPECT_EQ(url, resolver->pending_requests()[0]->url());
639 resolver->pending_requests()[0]->results()->UseNamedProxy(
641 resolver->pending_requests()[0]->CompleteNow(OK);
669 ASSERT_EQ(1u, resolver->pending_requests().size());
670 EXPECT_EQ(url, resolver->pending_requests()[0]->url());
672 resolver->pending_requests()[0]->results()->UseNamedProxy(
674 resolver->pending_requests()[0]->CompleteNow(OK);
697 ASSERT_EQ(1u, resolver->pending_requests().size());
698 EXPECT_EQ(url, resolver->pending_requests()[0]->url());
701 resolver->pending_requests()[0]->CompleteNow(ERR_FAILED);
718 ASSERT_EQ(1u, resolver->pending_requests().size());
719 EXPECT_EQ(url, resolver->pending_requests()[0]->url());
721 resolver->pending_requests()[0]->results()->UseNamedProxy(
723 resolver->pending_requests()[0]->CompleteNow(OK);
895 ASSERT_EQ(0u, resolver->pending_requests().size());
902 ASSERT_EQ(1u, resolver->pending_requests().size());
903 EXPECT_EQ(GURL("http://request1"), resolver->pending_requests()[0]->url());
911 ASSERT_EQ(2u, resolver->pending_requests().size());
912 EXPECT_EQ(GURL("http://request2"), resolver->pending_requests()[1]->url());
919 ASSERT_EQ(3u, resolver->pending_requests().size());
920 EXPECT_EQ(GURL("http://request3"), resolver->pending_requests()[2]->url());
925 ASSERT_EQ(2u, resolver->pending_requests().size());
926 EXPECT_EQ(GURL("http://request1"), resolver->pending_requests()[0]->url());
927 EXPECT_EQ(GURL("http://request3"), resolver->pending_requests()[1]->url());
931 resolver->pending_requests()[1]->results()->UseNamedProxy("request3:80");
932 resolver->pending_requests()[1]->CompleteNow(OK);
934 resolver->pending_requests()[0]->results()->UseNamedProxy("request1:80");
935 resolver->pending_requests()[0]->CompleteNow(OK);
988 EXPECT_TRUE(resolver->pending_requests().empty());
1001 ASSERT_EQ(3u, resolver->pending_requests().size());
1002 EXPECT_EQ(GURL("http://request1"), resolver->pending_requests()[0]->url());
1003 EXPECT_EQ(GURL("http://request2"), resolver->pending_requests()[1]->url());
1004 EXPECT_EQ(GURL("http://request3"), resolver->pending_requests()[2]->url());
1007 // Note that as we complete requests, they shift up in |pending_requests()|.
1009 resolver->pending_requests()[2]->results()->UseNamedProxy("request3:80");
1010 resolver->pending_requests()[2]->CompleteNow(OK);
1012 resolver->pending_requests()[0]->results()->UseNamedProxy("request1:80");
1013 resolver->pending_requests()[0]->CompleteNow(OK);
1015 resolver->pending_requests()[0]->results()->UseNamedProxy("request2:80");
1016 resolver->pending_requests()[0]->CompleteNow(OK);
1072 EXPECT_TRUE(resolver->pending_requests().empty());
1082 ASSERT_EQ(2u, resolver->pending_requests().size());
1083 EXPECT_EQ(GURL("http://request1"), resolver->pending_requests()[0]->url());
1084 EXPECT_EQ(GURL("http://request2"), resolver->pending_requests()[1]->url());
1128 EXPECT_TRUE(resolver->pending_requests().empty());
1145 ASSERT_EQ(1u, resolver->pending_requests().size());
1146 EXPECT_EQ(GURL("http://request3"), resolver->pending_requests()[0]->url());
1149 resolver->pending_requests()[0]->results()->UseNamedProxy("request3:80");
1150 resolver->pending_requests()[0]->CompleteNow(OK);
1209 ASSERT_EQ(0u, resolver->pending_requests().size());
1229 ASSERT_EQ(2u, resolver->pending_requests().size());
1230 EXPECT_EQ(GURL("http://request1"), resolver->pending_requests()[0]->url());
1231 EXPECT_EQ(GURL("http://request2"), resolver->pending_requests()[1]->url());
1234 resolver->pending_requests()[1]->results()->UseNamedProxy("request2:80");
1235 resolver->pending_requests()[1]->CompleteNow(OK);
1236 resolver->pending_requests()[0]->results()->UseNamedProxy("request1:80");
1237 resolver->pending_requests()[0]->CompleteNow(OK);
1280 ASSERT_EQ(0u, resolver->pending_requests().size());
1305 ASSERT_EQ(2u, resolver->pending_requests().size());
1306 EXPECT_EQ(GURL("http://request1"), resolver->pending_requests()[0]->url());
1307 EXPECT_EQ(GURL("http://request2"), resolver->pending_requests()[1]->url());
1310 resolver->pending_requests
1311 resolver->pending_requests()[1]->CompleteNow(OK);
1312 resolver->pending_requests()[0]->results()->UseNamedProxy("request1:80");
1313 resolver->pending_requests()[0]->CompleteNow(OK);
1356 ASSERT_EQ(0u, resolver->pending_requests().size());
1370 ASSERT_EQ(0u, resolver->pending_requests().size());
1407 ASSERT_EQ(0u, resolver->pending_requests().size());
1418 ASSERT_EQ(1u, resolver->pending_requests().size());
1420 resolver->pending_requests()[0]->url());
1423 resolver->pending_requests()[0]->results()->UseNamedProxy("request1:80");
1424 resolver->pending_requests()[0]->CompleteNow(OK);
1437 ASSERT_EQ(1u, resolver->pending_requests().size());
1439 resolver->pending_requests()[0]->url());
1442 resolver->pending_requests()[0]->results()->UseNamedProxy("request2:80");
1443 resolver->pending_requests()[0]->CompleteNow(OK);
1475 ASSERT_EQ(0u, resolver->pending_requests().size());
1558 ASSERT_EQ(0u, resolver->pending_requests().size());
1566 ASSERT_EQ(1u, resolver->pending_requests().size());
1567 resolver->pending_requests()[0]->results()->UseNamedProxy("request1:80");
1568 resolver->pending_requests()[0]->CompleteNow(OK);
1623 EXPECT_TRUE(resolver->pending_requests().empty());
1636 ASSERT_EQ(1u, resolver->pending_requests().size());
1637 EXPECT_EQ(GURL("http://request1"), resolver->pending_requests()[0]->url());
1640 resolver->pending_requests()[0]->results()->UseNamedProxy("request1:80");
1641 resolver->pending_requests()[0]->CompleteNow(OK);
1666 EXPECT_TRUE(resolver->pending_requests().empty());
1678 ASSERT_EQ(1u, resolver->pending_requests().size());
1679 EXPECT_EQ(GURL("http://request2"), resolver->pending_requests()[0]->url());
1682 resolver->pending_requests()[0]->results()->UseNamedProxy("request2:80");
1683 resolver->pending_requests()[0]->CompleteNow(OK);