Attached is a patch to move the bookmarks db creation code out of main midori_bookmarks_initialize and into midori_bookmarks_create_db. That way it can be used from the unit test code. Also, it makes midori_bookmarks_initialize nicer.
Note that the unit test code is still broken due to it making assumptions on the internal db structure that don't hold anymore.
Attached is a patch to move the bookmarks db creation code out of main midori_ bookmarks_ initialize and into midori_ bookmarks_ create_ db. That way it can be used from the unit test code. Also, it makes midori_ bookmarks_ initialize nicer.
Note that the unit test code is still broken due to it making assumptions on the internal db structure that don't hold anymore.