Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Unified Diff: ios/chrome/browser/net/mock_image_fetcher.h

Issue 2521253002: Move ImageFetcher to its own target. (Closed)
Patch Set: Reviewable Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/net/mock_image_fetcher.h
diff --git a/ios/chrome/browser/net/mock_image_fetcher.h b/ios/chrome/browser/net/mock_image_fetcher.h
index 259eda6229f2e8349f0ede6b7092d1b50199de48..8afb004e6a3515de2731f963d8d84dbe9751377e 100644
--- a/ios/chrome/browser/net/mock_image_fetcher.h
+++ b/ios/chrome/browser/net/mock_image_fetcher.h
@@ -5,27 +5,6 @@
#ifndef IOS_CHROME_BROWSER_NET_MOCK_IMAGE_FETCHER_H_
#define IOS_CHROME_BROWSER_NET_MOCK_IMAGE_FETCHER_H_
-#import "ios/chrome/browser/net/image_fetcher.h"
-
-#include "testing/gmock/include/gmock/gmock.h"
-
-// Mock the ImageFetcher utility class, which can be used to asynchronously
-// retrieve an image from an URL.
-class MockImageFetcher : public ImageFetcher {
- public:
- explicit MockImageFetcher(const scoped_refptr<base::TaskRunner>& task_runner);
- ~MockImageFetcher() override;
-
- MOCK_METHOD4(StartDownload,
- void(const GURL& url,
- ImageFetchedCallback callback,
- const std::string& referrer,
- net::URLRequest::ReferrerPolicy referrer_policy));
- MOCK_METHOD2(StartDownload,
- void(const GURL& url, ImageFetchedCallback callback));
- MOCK_METHOD1(SetRequestContextGetter,
- void(const scoped_refptr<net::URLRequestContextGetter>&
- request_context_getter));
-};
+#import "ios/chrome/browser/net/image_fetcher/mock_image_fetcher.h"
#endif // IOS_CHROME_BROWSER_NET_MOCK_IMAGE_FETCHER_H_

Powered by Google App Engine
This is Rietveld 408576698