In our project we have created test stubs for a small subset of TelepathyQt API that we use. We can do this by using the header files from TelepathyQt and providing mock implementations. There is a problem, though: we cannot use moc output for the headers as is, because generated D-Bus interface classes are bundled into few big header files such as cli-channel.h, and the moc output for those needs to link the implementation for all QObject classes defined in the header. So we have to supply a hand-crafted moc-compatible source cut down to the classes we really use, which makes our test code more work-intensive and fragile than it needs to be. If there were a separate header for each D-Bus interface, we could cherry-pick them for moc.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-qt/issues/41.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.