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

Side by Side Diff: ios/web/public/test/mock_image_data_fetcher.h

Issue 2562403003: Fix include guards of files in src/ios. (Closed)
Patch Set: Rebase on origin/master. 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_WEB_PUBLIC_IMAGE_FETCHER_MOCK_IMAGE_DATA_FETCHER_H_ 5 #ifndef IOS_WEB_PUBLIC_TEST_MOCK_IMAGE_DATA_FETCHER_H_
6 #define IOS_WEB_PUBLIC_IMAGE_FETCHER_MOCK_IMAGE_DATA_FETCHER_H_ 6 #define IOS_WEB_PUBLIC_TEST_MOCK_IMAGE_DATA_FETCHER_H_
7 7
8 #import "ios/web/public/image_fetcher/image_data_fetcher.h" 8 #import "ios/web/public/image_fetcher/image_data_fetcher.h"
9 9
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 namespace web { 12 namespace web {
13 13
14 // Mocks the ImageDataFetcher utility class, which can be used to asynchronously 14 // Mocks the ImageDataFetcher utility class, which can be used to asynchronously
15 // retrieve an image from an URL. 15 // retrieve an image from an URL.
16 class MockImageDataFetcher : public ImageDataFetcher { 16 class MockImageDataFetcher : public ImageDataFetcher {
17 public: 17 public:
18 explicit MockImageDataFetcher( 18 explicit MockImageDataFetcher(
19 const scoped_refptr<base::TaskRunner>& task_runner); 19 const scoped_refptr<base::TaskRunner>& task_runner);
20 ~MockImageDataFetcher() override; 20 ~MockImageDataFetcher() override;
21 21
22 MOCK_METHOD4(StartDownload, 22 MOCK_METHOD4(StartDownload,
23 void(const GURL& url, 23 void(const GURL& url,
24 ImageFetchedCallback callback, 24 ImageFetchedCallback callback,
25 const std::string& referrer, 25 const std::string& referrer,
26 net::URLRequest::ReferrerPolicy referrer_policy)); 26 net::URLRequest::ReferrerPolicy referrer_policy));
27 MOCK_METHOD2(StartDownload, 27 MOCK_METHOD2(StartDownload,
28 void(const GURL& url, ImageFetchedCallback callback)); 28 void(const GURL& url, ImageFetchedCallback callback));
29 MOCK_METHOD1(SetRequestContextGetter, 29 MOCK_METHOD1(SetRequestContextGetter,
30 void(const scoped_refptr<net::URLRequestContextGetter>& 30 void(const scoped_refptr<net::URLRequestContextGetter>&
31 request_context_getter)); 31 request_context_getter));
32 }; 32 };
33 33
34 } // namespace web 34 } // namespace web
35 35
36 #endif // IOS_WEB_PUBLIC_IMAGE_FETCHER_MOCK_IMAGE_DATA_FETCHER_H_ 36 #endif // IOS_WEB_PUBLIC_TEST_MOCK_IMAGE_DATA_FETCHER_H_
OLDNEW
« no previous file with comments | « ios/web/public/load_committed_details.h ('k') | ios/web/public/test/response_providers/string_response_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698