test: Break out engine mock objects into their own name-space

Engine mocks don't need to be in the `Geary` namespace, and including
them there makes it difficult to use them in client tests, so put them
all in their own name-space and corresponding directory.
This commit is contained in:
Michael Gratton 2020-08-10 16:13:57 +10:00 committed by Michael James Gratton
parent 3e156525ae
commit 2030b2dec7
24 changed files with 436 additions and 414 deletions

View file

@ -9,7 +9,7 @@
class Geary.ContactHarvesterImplTest : TestCase {
private ContactStoreMock? store = null;
private Mock.ContactStore? store = null;
private Email? email = null;
private RFC822.MailboxAddress test_address = null;
private RFC822.MailboxAddress sender_address = null;
@ -26,7 +26,7 @@ class Geary.ContactHarvesterImplTest : TestCase {
}
public override void set_up() throws GLib.Error {
this.store = new ContactStoreMock();
this.store = new Mock.ContactStore();
this.email = new Email(
new ImapDB.EmailIdentifier.no_message_id(new Imap.UID(1))
);