OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERFACE
_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERFACE
_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include <gmock/gmock.h> |
| 11 |
| 12 #include "chrome/browser/extensions/api/document_scan/document_scan_interface.h" |
| 13 |
| 14 namespace extensions { |
| 15 |
| 16 namespace api { |
| 17 |
| 18 class MockDocumentScanInterface : public DocumentScanInterface { |
| 19 public: |
| 20 MockDocumentScanInterface() {} |
| 21 virtual ~MockDocumentScanInterface() {} |
| 22 |
| 23 MOCK_METHOD4(Scan, void(const std::string& scanner_name, |
| 24 ScanMode mode, |
| 25 int resolution_dpi, |
| 26 const ScanResultsCallback& callback)); |
| 27 MOCK_METHOD1(ListScanners, void(const ListScannersResultsCallback& callback)); |
| 28 MOCK_CONST_METHOD0(GetImageMimeType, std::string()); |
| 29 }; |
| 30 |
| 31 } // namespace api |
| 32 |
| 33 } // namespace extensions |
| 34 |
| 35 #endif // CHROME_BROWSER_EXTENSIONS_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERF
ACE_H_ |
OLD | NEW |