Unify item creation/deletion in datastore access
All of our implementations are using the same implementation; all of the
smartness is actually in sysrepo or in libyang. As a bonus, this should
make it possible to remove regular leafs as well (backend-wise at
least).
Change-Id: I177cd233b4b699f66475eae735a659b7c8577534
diff --git a/tests/datastoreaccess_mock.hpp b/tests/datastoreaccess_mock.hpp
index 354dd44..8252d04 100644
--- a/tests/datastoreaccess_mock.hpp
+++ b/tests/datastoreaccess_mock.hpp
@@ -21,12 +21,8 @@
class MockDatastoreAccess : public trompeloeil::mock_interface<DatastoreAccess> {
IMPLEMENT_MOCK1(getItems);
IMPLEMENT_MOCK2(setLeaf);
- IMPLEMENT_MOCK1(createPresenceContainer);
- IMPLEMENT_MOCK1(deletePresenceContainer);
- IMPLEMENT_MOCK1(createLeafListInstance);
- IMPLEMENT_MOCK1(deleteLeafListInstance);
- IMPLEMENT_MOCK1(createListInstance);
- IMPLEMENT_MOCK1(deleteListInstance);
+ IMPLEMENT_MOCK1(createItem);
+ IMPLEMENT_MOCK1(deleteItem);
IMPLEMENT_MOCK2(moveItem);
IMPLEMENT_MOCK2(executeRpc);