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

Side by Side Diff: ios/chrome/browser/net/mock_image_fetcher.h

Issue 2520373002: Remove the old image fetcher (Closed)
Patch Set: Remove the files Created 4 years 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 unified diff | Download patch
« no previous file with comments | « ios/chrome/browser/net/image_fetcher.mm ('k') | ios/chrome/browser/net/mock_image_fetcher.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_BROWSER_NET_MOCK_IMAGE_FETCHER_H_
6 #define IOS_CHROME_BROWSER_NET_MOCK_IMAGE_FETCHER_H_
7
8 #import "ios/chrome/browser/net/image_fetcher.h"
9
10 #include "testing/gmock/include/gmock/gmock.h"
11
12 // Mock the ImageFetcher utility class, which can be used to asynchronously
13 // retrieve an image from an URL.
14 class MockImageFetcher : public ImageFetcher {
15 public:
16 explicit MockImageFetcher(const scoped_refptr<base::TaskRunner>& task_runner);
17 ~MockImageFetcher() override;
18
19 MOCK_METHOD4(StartDownload,
20 void(const GURL& url,
21 ImageFetchedCallback callback,
22 const std::string& referrer,
23 net::URLRequest::ReferrerPolicy referrer_policy));
24 MOCK_METHOD2(StartDownload,
25 void(const GURL& url, ImageFetchedCallback callback));
26 MOCK_METHOD1(SetRequestContextGetter,
27 void(const scoped_refptr<net::URLRequestContextGetter>&
28 request_context_getter));
29 };
30
31 #endif // IOS_CHROME_BROWSER_NET_MOCK_IMAGE_FETCHER_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/net/image_fetcher.mm ('k') | ios/chrome/browser/net/mock_image_fetcher.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698