Chromium Code Reviews| Index: extensions/browser/api/document_scan/mock_document_scan_interface.h |
| diff --git a/extensions/browser/api/document_scan/mock_document_scan_interface.h b/extensions/browser/api/document_scan/mock_document_scan_interface.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3ced6c77952de3316cd9b9b1ec1e132392710fe5 |
| --- /dev/null |
| +++ b/extensions/browser/api/document_scan/mock_document_scan_interface.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
|
James Cook
2015/02/05 19:02:59
Is this file a strict move? If so you might need t
babu
2015/02/05 21:34:03
Done. Used 40.
|
| +// 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 core_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 core_api |
| + |
| +} // namespace extensions |
| + |
| +#endif // EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_MOCK_DOCUMENT_SCAN_INTERFACE_H_ |