commit | a5a16b09cf8e8d7cdcfbc56f6393d648fbc8c620 | [log] [tgz] |
---|---|---|
author | Shintaro Kawamura <[email protected]> | Thu Nov 21 18:59:44 2024 +0900 |
committer | Shintaro Kawamura <[email protected]> | Tue Nov 26 14:48:07 2024 +0900 |
tree | e872f29b143e39a394f691cf8c487443d11be379 | |
parent | 6e0e72d19d29791efbec7e554abf4d5255f1c755 [diff] |
Introduce mock os interface per feature Split mmd::os::Ops into per-feature mockable traits. By providing higher level API, the tests using mock become easier and more readable. Also we don't need to use generic type for path and contents because the usage of each API is scoped. This makes it unecessary to use `mockall::concretize` and we now can use `mockall::predicate` helpers. Bug: 375432468 Test: atest libmmd_unit_tests Change-Id: I2026b56b23d930578c1e1224e61d2bd63aaccbaf