Lines Matching refs:info
29 UrlInfo info_practice, info;
43 info.SetUrl(url1);
44 EXPECT_TRUE(info.NeedsDnsUpdate()) << "error in construction state";
45 info.SetQueuedState(UrlInfo::UNIT_TEST_MOTIVATED);
46 EXPECT_FALSE(info.NeedsDnsUpdate()) << "update needed after being queued";
47 info.SetAssignedState();
48 EXPECT_FALSE(info.NeedsDnsUpdate()) << "update needed during resolution";
50 info.SetFoundState();
52 if (info.NeedsDnsUpdate()) {
61 info.set_cache_expiration(TimeDelta::FromMilliseconds(kMockExpirationTime));
65 info.SetQueuedState(UrlInfo::UNIT_TEST_MOTIVATED);
66 EXPECT_FALSE(info.NeedsDnsUpdate());
67 info.SetAssignedState();
68 EXPECT_FALSE(info.NeedsDnsUpdate());
72 info.SetNoSuchNameState();
74 if (info.NeedsDnsUpdate()) {
82 EXPECT_TRUE(info.NeedsDnsUpdate()) << "expiration time not honored";
95 UrlInfo info;
98 info.SetUrl(url);
99 info.SetQueuedState(UrlInfo::UNIT_TEST_MOTIVATED);
100 info.SetAssignedState();
101 EXPECT_TRUE(info.is_assigned());
103 info.RemoveFromQueue(); // Do the reset.
104 EXPECT_FALSE(info.is_assigned());
106 // Since this was a new info instance, and it never got resolved, we land back
108 EXPECT_FALSE(info.was_found());
109 EXPECT_FALSE(info.was_nonexistent());
112 info.SetQueuedState(UrlInfo::UNIT_TEST_MOTIVATED);
113 info.SetAssignedState();
114 info.SetFoundState();
115 EXPECT_TRUE(info.was_found());
118 info.SetQueuedState(UrlInfo::UNIT_TEST_MOTIVATED);
119 info.SetAssignedState();
120 info.RemoveFromQueue(); // Do the reset.
121 EXPECT_FALSE(info.is_assigned());
122 EXPECT_TRUE(info.was_found()); // Back to what it was before being queued.