Skip to content

Commit cd9efab

Browse files
committed
[tests] Mock saving/restoring vm state functions
1 parent 4b83a70 commit cd9efab

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/apple/mock_apple_vz_wrapper.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,15 @@ class MockAppleVZ : public multipass::apple::AppleVZ
4747
(const, override));
4848
MOCK_METHOD(apple::CFError,
4949
resume_vm,
50-
(multipass::apple::VMHandle & vm_handle),
50+
(const multipass::apple::VMHandle& vm_handle),
51+
(const, override));
52+
MOCK_METHOD(apple::CFError,
53+
save_machine_state_to_url,
54+
(const multipass::apple::VMHandle& vm_handle, const std::filesystem::path& path),
55+
(const, override));
56+
MOCK_METHOD(apple::CFError,
57+
restore_machine_state_from_url,
58+
(const multipass::apple::VMHandle& vm_handle, const std::filesystem::path& path),
5159
(const, override));
5260
MOCK_METHOD(apple::AppleVMState,
5361
get_state,

0 commit comments

Comments
 (0)