/src/WasmEdge/include/host/mock/wasmedge_image_module.h
Line | Count | Source (jump to first uncovered line) |
1 | | // SPDX-License-Identifier: Apache-2.0 |
2 | | // SPDX-FileCopyrightText: 2019-2024 Second State INC |
3 | | |
4 | | #pragma once |
5 | | |
6 | | #include "host/mock/wasmedge_image_func.h" |
7 | | #include "runtime/instance/module.h" |
8 | | |
9 | | namespace WasmEdge { |
10 | | namespace Host { |
11 | | |
12 | | class WasmEdgeImageModuleMock : public Runtime::Instance::ModuleInstance { |
13 | | public: |
14 | | WasmEdgeImageModuleMock() |
15 | 0 | : Runtime::Instance::ModuleInstance("wasmedge_image") { |
16 | 0 | addHostFunc("load_jpg", std::make_unique<WasmEdgeImageMock::LoadJPG>()); |
17 | 0 | addHostFunc("load_png", std::make_unique<WasmEdgeImageMock::LoadPNG>()); |
18 | 0 | addHostFunc("load_image", std::make_unique<WasmEdgeImageMock::LoadImage>()); |
19 | 0 | } |
20 | | }; |
21 | | |
22 | | } // namespace Host |
23 | | } // namespace WasmEdge |