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

Side by Side Diff: extensions/browser/api/document_scan/mock_document_scan_interface.h

Issue 899523004: Move chrome.documentScan API to extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated DEPS Created 5 years, 10 months 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_EXTENSIONS_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERFACE _H_ 5 #ifndef EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERFACE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERFACE _H_ 6 #define EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include <gmock/gmock.h> 10 #include <gmock/gmock.h>
11 11
12 #include "chrome/browser/extensions/api/document_scan/document_scan_interface.h" 12 #include "extensions/browser/api/document_scan/document_scan_interface.h"
13 13
14 namespace extensions { 14 namespace extensions {
15 15
16 namespace api { 16 namespace core_api {
17 17
18 class MockDocumentScanInterface : public DocumentScanInterface { 18 class MockDocumentScanInterface : public DocumentScanInterface {
19 public: 19 public:
20 MockDocumentScanInterface(); 20 MockDocumentScanInterface();
21 ~MockDocumentScanInterface() override; 21 ~MockDocumentScanInterface() override;
22 22
23 MOCK_METHOD4(Scan, void(const std::string& scanner_name, 23 MOCK_METHOD4(Scan,
24 ScanMode mode, 24 void(const std::string& scanner_name,
25 int resolution_dpi, 25 ScanMode mode,
26 const ScanResultsCallback& callback)); 26 int resolution_dpi,
27 const ScanResultsCallback& callback));
27 MOCK_METHOD1(ListScanners, void(const ListScannersResultsCallback& callback)); 28 MOCK_METHOD1(ListScanners, void(const ListScannersResultsCallback& callback));
28 MOCK_CONST_METHOD0(GetImageMimeType, std::string()); 29 MOCK_CONST_METHOD0(GetImageMimeType, std::string());
29 }; 30 };
30 31
31 } // namespace api 32 } // namespace core_api
32 33
33 } // namespace extensions 34 } // namespace extensions
34 35
35 #endif // CHROME_BROWSER_EXTENSIONS_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERF ACE_H_ 36 #endif // EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698