Home | History | Annotate | Download | only in history

Lines Matching defs:redirects

6 // that the correct redirects are reflected in the history database. Errors
8 // the case of redirects. It may also mean problems with the history system.
44 // Schedule a history query for redirects. The response will be sent
62 history::RedirectList* redirects) {
63 for (size_t i = 0; i < redirects->size(); ++i)
64 rv->push_back(redirects->at(i));
82 std::vector<GURL> redirects = GetRedirects(first_url);
84 ASSERT_EQ(1U, redirects.size());
85 EXPECT_EQ(final_url.spec(), redirects[0].spec());
100 std::vector<GURL> redirects = GetRedirects(first_url);
102 ASSERT_EQ(1U, redirects.size());
103 EXPECT_EQ(final_url.spec(), redirects[0].spec());
150 std::vector<GURL> redirects = GetRedirects(first_url);
151 ASSERT_EQ(1U, redirects.size());
152 EXPECT_EQ(final_url.spec(), redirects[0].spec());
175 std::vector<GURL> redirects = GetRedirects(first_url);
177 // There should be no redirects from first_url, because the anchor location
180 ASSERT_EQ(0U, redirects.size());
199 std::vector<GURL> redirects = GetRedirects(first_url);
200 ASSERT_EQ(3U, redirects.size());
201 EXPECT_EQ(second_url.spec(), redirects[0].spec());
202 EXPECT_EQ(next_to_last.spec(), redirects[1].spec());
203 EXPECT_EQ(final_url.spec(), redirects[2].spec());
206 // Tests that the "#reference" gets preserved across server redirects.
244 // flagged as client redirects. See bug 1139823.
250 std::vector<GURL> redirects = GetRedirects(first_url);
251 EXPECT_EQ(1U, redirects.size());
252 EXPECT_EQ(first_url.spec() + "#myanchor", redirects[0].spec());
298 std::vector<GURL> redirects = GetRedirects(first_url);
301 for (std::vector<GURL>::iterator it = redirects.begin();
302 it != redirects.end(); ++it) {