blob: 51c66683cafc9014fff42e5ccd08ab08013ef016 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERFACE_H_
#define EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERFACE_H_
#include <string>
#include <gmock/gmock.h>
#include "extensions/browser/api/document_scan/document_scan_interface.h"
namespace extensions {
namespace api {
class MockDocumentScanInterface : public DocumentScanInterface {
public:
MockDocumentScanInterface();
~MockDocumentScanInterface() override;
MOCK_METHOD4(Scan,
void(const std::string& scanner_name,
ScanMode mode,
int resolution_dpi,
const ScanResultsCallback& callback));
MOCK_METHOD1(ListScanners, void(const ListScannersResultsCallback& callback));
MOCK_CONST_METHOD0(GetImageMimeType, std::string());
};
} // namespace api
} // namespace extensions
#endif // EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERFACE_H_
|