Lines Matching refs:fetcher
403 TestURLFetcher* fetcher = in TestExtensionUpdateCheckRequests() local
405 const GURL& url = fetcher->original_url(); in TestExtensionUpdateCheckRequests()
453 TestURLFetcher* fetcher = in TestBlacklistUpdateCheckRequests() local
455 ASSERT_FALSE(fetcher == NULL); in TestBlacklistUpdateCheckRequests()
456 const GURL& url = fetcher->original_url(); in TestBlacklistUpdateCheckRequests()
631 TestURLFetcher* fetcher = NULL; in TestMultipleManifestDownloading() local
655 fetcher = factory.GetFetcherByID(ExtensionUpdater::kManifestFetcherId); in TestMultipleManifestDownloading()
656 EXPECT_TRUE(fetcher != NULL && fetcher->delegate() != NULL); in TestMultipleManifestDownloading()
657 EXPECT_TRUE(fetcher->load_flags() == expected_load_flags); in TestMultipleManifestDownloading()
658 fetcher->delegate()->OnURLFetchComplete( in TestMultipleManifestDownloading()
659 fetcher, url1, net::URLRequestStatus(), 200, ResponseCookies(), in TestMultipleManifestDownloading()
673 fetcher = factory.GetFetcherByID(ExtensionUpdater::kManifestFetcherId); in TestMultipleManifestDownloading()
674 EXPECT_TRUE(fetcher != NULL && fetcher->delegate() != NULL); in TestMultipleManifestDownloading()
675 EXPECT_TRUE(fetcher->load_flags() == expected_load_flags); in TestMultipleManifestDownloading()
676 fetcher->delegate()->OnURLFetchComplete( in TestMultipleManifestDownloading()
677 fetcher, url2, net::URLRequestStatus(), 200, ResponseCookies(), in TestMultipleManifestDownloading()
704 TestURLFetcher* fetcher = NULL; in TestSingleExtensionDownloading() local
737 fetcher = factory.GetFetcherByID(ExtensionUpdater::kExtensionFetcherId); in TestSingleExtensionDownloading()
738 EXPECT_TRUE(fetcher != NULL && fetcher->delegate() != NULL); in TestSingleExtensionDownloading()
739 EXPECT_TRUE(fetcher->load_flags() == expected_load_flags); in TestSingleExtensionDownloading()
740 fetcher->delegate()->OnURLFetchComplete( in TestSingleExtensionDownloading()
741 fetcher, test_url, net::URLRequestStatus(), 200, ResponseCookies(), in TestSingleExtensionDownloading()
774 TestURLFetcher* fetcher = NULL; in TestBlacklistDownloading() local
793 fetcher = factory.GetFetcherByID(ExtensionUpdater::kExtensionFetcherId); in TestBlacklistDownloading()
794 EXPECT_TRUE(fetcher != NULL && fetcher->delegate() != NULL); in TestBlacklistDownloading()
795 EXPECT_TRUE(fetcher->load_flags() == expected_load_flags); in TestBlacklistDownloading()
796 fetcher->delegate()->OnURLFetchComplete( in TestBlacklistDownloading()
797 fetcher, test_url, net::URLRequestStatus(), 200, ResponseCookies(), in TestBlacklistDownloading()
820 TestURLFetcher* fetcher = NULL; in TestMultipleExtensionDownloading() local
845 fetcher = factory.GetFetcherByID(ExtensionUpdater::kExtensionFetcherId); in TestMultipleExtensionDownloading()
846 EXPECT_TRUE(fetcher != NULL && fetcher->delegate() != NULL); in TestMultipleExtensionDownloading()
847 EXPECT_TRUE(fetcher->load_flags() == expected_load_flags); in TestMultipleExtensionDownloading()
848 fetcher->delegate()->OnURLFetchComplete( in TestMultipleExtensionDownloading()
849 fetcher, url1, net::URLRequestStatus(), 200, ResponseCookies(), in TestMultipleExtensionDownloading()
864 fetcher = factory.GetFetcherByID(ExtensionUpdater::kExtensionFetcherId); in TestMultipleExtensionDownloading()
865 EXPECT_TRUE(fetcher != NULL && fetcher->delegate() != NULL); in TestMultipleExtensionDownloading()
866 EXPECT_TRUE(fetcher->load_flags() == expected_load_flags); in TestMultipleExtensionDownloading()
867 fetcher->delegate()->OnURLFetchComplete( in TestMultipleExtensionDownloading()
868 fetcher, url2, net::URLRequestStatus(), 200, ResponseCookies(), in TestMultipleExtensionDownloading()
946 TestURLFetcher* fetcher = in TestGalleryRequests() local
948 EXPECT_TRUE(fetcher != NULL && fetcher->delegate() != NULL); in TestGalleryRequests()
949 fetched_urls.push_back(fetcher->original_url()); in TestGalleryRequests()
950 fetcher->delegate()->OnURLFetchComplete( in TestGalleryRequests()
951 fetcher, fetched_urls[0], net::URLRequestStatus(), 500, in TestGalleryRequests()
953 fetcher = in TestGalleryRequests()
955 fetched_urls.push_back(fetcher->original_url()); in TestGalleryRequests()