Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / extensions / browser / api / document_scan / mock_document_scan_interface.h
blob3ced6c77952de3316cd9b9b1ec1e132392710fe5
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.
5 #ifndef EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERFACE_H_
6 #define EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERFACE_H_
8 #include <string>
10 #include <gmock/gmock.h>
12 #include "extensions/browser/api/document_scan/document_scan_interface.h"
14 namespace extensions {
16 namespace core_api {
18 class MockDocumentScanInterface : public DocumentScanInterface {
19 public:
20 MockDocumentScanInterface();
21 ~MockDocumentScanInterface() override;
23 MOCK_METHOD4(Scan,
24 void(const std::string& scanner_name,
25 ScanMode mode,
26 int resolution_dpi,
27 const ScanResultsCallback& callback));
28 MOCK_METHOD1(ListScanners, void(const ListScannersResultsCallback& callback));
29 MOCK_CONST_METHOD0(GetImageMimeType, std::string());
32 } // namespace core_api
34 } // namespace extensions
36 #endif // EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERFACE_H_