Home | History | Annotate | Download | only in extensions

Lines Matching full:fetcher

402     // Get the url our mock fetcher was asked to fetch.
403 TestURLFetcher* fetcher =
405 const GURL& url = fetcher->original_url();
452 // Get the url our mock fetcher was asked to fetch.
453 TestURLFetcher* fetcher =
455 ASSERT_FALSE(fetcher == NULL);
456 const GURL& url = fetcher->original_url();
631 TestURLFetcher* fetcher = NULL;
655 fetcher = factory.GetFetcherByID(ExtensionUpdater::kManifestFetcherId);
656 EXPECT_TRUE(fetcher != NULL && fetcher->delegate() != NULL);
657 EXPECT_TRUE(fetcher->load_flags() == expected_load_flags);
658 fetcher->delegate()->OnURLFetchComplete(
659 fetcher, url1, net::URLRequestStatus(), 200, ResponseCookies(),
673 fetcher = factory.GetFetcherByID(ExtensionUpdater::kManifestFetcherId);
674 EXPECT_TRUE(fetcher != NULL && fetcher->delegate() != NULL);
675 EXPECT_TRUE(fetcher->load_flags() == expected_load_flags);
676 fetcher->delegate()->OnURLFetchComplete(
677 fetcher, url2, net::URLRequestStatus(), 200, ResponseCookies(),
704 TestURLFetcher* fetcher = NULL;
737 fetcher = factory.GetFetcherByID(ExtensionUpdater::kExtensionFetcherId);
738 EXPECT_TRUE(fetcher != NULL && fetcher->delegate() != NULL);
739 EXPECT_TRUE(fetcher->load_flags() == expected_load_flags);
740 fetcher->delegate()->OnURLFetchComplete(
741 fetcher, test_url, net::URLRequestStatus(), 200, ResponseCookies(),
774 TestURLFetcher* fetcher = NULL;
793 fetcher = factory.GetFetcherByID(ExtensionUpdater::kExtensionFetcherId);
794 EXPECT_TRUE(fetcher != NULL && fetcher->delegate() != NULL);
795 EXPECT_TRUE(fetcher->load_flags() == expected_load_flags);
796 fetcher->delegate()->OnURLFetchComplete(
797 fetcher, test_url, net::URLRequestStatus(), 200, ResponseCookies(),
820 TestURLFetcher* fetcher = NULL;
845 fetcher = factory.GetFetcherByID(ExtensionUpdater::kExtensionFetcherId);
846 EXPECT_TRUE(fetcher != NULL && fetcher->delegate() != NULL);
847 EXPECT_TRUE(fetcher->load_flags() == expected_load_flags);
848 fetcher->delegate()->OnURLFetchComplete(
849 fetcher, url1, net::URLRequestStatus(), 200, ResponseCookies(),
864 fetcher = factory.GetFetcherByID(ExtensionUpdater::kExtensionFetcherId);
865 EXPECT_TRUE(fetcher != NULL && fetcher->delegate() != NULL);
866 EXPECT_TRUE(fetcher->load_flags() == expected_load_flags);
867 fetcher->delegate()->OnURLFetchComplete(
868 fetcher, url2, net::URLRequestStatus(), 200, ResponseCookies(),
946 TestURLFetcher* fetcher =
948 EXPECT_TRUE(fetcher != NULL && fetcher->delegate() != NULL);
949 fetched_urls.push_back(fetcher->original_url());
950 fetcher->delegate()->OnURLFetchComplete(
951 fetcher, fetched_urls[0], net::URLRequestStatus(), 500,
953 fetcher =
955 fetched_urls.push_back(fetcher->original_url());