Make Geary.App.Conversation unit testable, add some tests.
* src/engine/app/app-conversation.vala (Conversation): We currently can't easily unit test Conversation instances since the ctor requires a ConversationMonitor argument, which is complicated. Replace the monitor arg with a base folder (which is what it actually needs the monitor for anyway) and remove the signals in favour of adding and modifying the API to allow folder paths to be explicitly updated. Remove clear_owner() method and dtor now it's useless. Update call sites. Add unit tests to make sure the add/remove and multi-path related code still works at least.
This commit is contained in:
parent
0f3aa9dc11
commit
57f40ffec3
6 changed files with 254 additions and 118 deletions
|
|
@ -26,6 +26,7 @@ int main(string[] args) {
|
|||
engine.add_suite(new Geary.EngineTest().get_suite());
|
||||
engine.add_suite(new Geary.IdleManagerTest().get_suite());
|
||||
engine.add_suite(new Geary.TimeoutManagerTest().get_suite());
|
||||
engine.add_suite(new Geary.App.ConversationTest().get_suite());
|
||||
engine.add_suite(new Geary.HTML.UtilTest().get_suite());
|
||||
engine.add_suite(new Geary.Imap.DeserializerTest().get_suite());
|
||||
engine.add_suite(new Geary.Imap.CreateCommandTest().get_suite());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue