diff options
Diffstat (limited to 'webkit/glue/media/buffered_resource_loader_unittest.cc')
-rw-r--r-- | webkit/glue/media/buffered_resource_loader_unittest.cc | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/webkit/glue/media/buffered_resource_loader_unittest.cc b/webkit/glue/media/buffered_resource_loader_unittest.cc index dc67edf..158b6dc3 100644 --- a/webkit/glue/media/buffered_resource_loader_unittest.cc +++ b/webkit/glue/media/buffered_resource_loader_unittest.cc @@ -526,28 +526,17 @@ TEST_F(BufferedResourceLoaderTest, HasSingleOrigin) { // Test redirect to a different domain. Initialize(kHttpUrl, -1, -1); Start(); + EXPECT_CALL(*this, StartCallback(net::ERR_ADDRESS_INVALID)); Redirect(kHttpRedirectToDifferentDomainUrl1); - FullResponse(1024); EXPECT_FALSE(loader_->HasSingleOrigin()); StopWhenLoad(); - // Test redirect twice to a different domain. + // Test redirect to the same domain and then to a different domain. Initialize(kHttpUrl, -1, -1); Start(); - Redirect(kHttpRedirectToDifferentDomainUrl1); - Redirect(kHttpRedirectToDifferentDomainUrl2); - FullResponse(1024); - EXPECT_FALSE(loader_->HasSingleOrigin()); - StopWhenLoad(); - - // Test to a different domain and then back to the same domain. - // NOTE: A different origin was encountered at least once so that - // makes HasSingleOrigin() become false. - Initialize(kHttpUrl, -1, -1); - Start(); - Redirect(kHttpRedirectToDifferentDomainUrl1); Redirect(kHttpRedirectToSameDomainUrl1); - FullResponse(1024); + EXPECT_CALL(*this, StartCallback(net::ERR_ADDRESS_INVALID)); + Redirect(kHttpRedirectToDifferentDomainUrl1); EXPECT_FALSE(loader_->HasSingleOrigin()); StopWhenLoad(); } |