geary/test
Michael James Gratton 0ea1fe6c35 Don't use the database for internal ConversationMonitor bookkeeping.
This replaces the use of Geary.Folder.find_boundaries_async in
ConversationMonitor with a simple sorted set of known in-folder message
ids. This is both easy and fast, reduces needless DB load when loading
conversations, and also allows allows removing what is otherwise
single-use implementation overhead in classes deriving from Folder.

* src/engine/app/app-conversation-monitor.vala (ConversationMonitor):
  Replace get_lowest_email_id_async() with window_lowest property, update
  call sites. Implement the property by using a sorted set of known
  listed email ids from the base folder. Update the set as messages in
  the base folder are listed. Rename notify_emails_removed to just
  removed and remove ids from the set if any messages from the base
  folder are removed.

* src/engine/api/geary-folder.vala (Folder): Remove
  get_lowest_email_id_async since it is now unused, do same for all
  subclasses.
2018-04-07 10:02:24 +10:00
..
client Tidy up unit test infrastructure and mock classes. 2018-04-07 09:41:18 +10:00
engine Don't use the database for internal ConversationMonitor bookkeeping. 2018-04-07 10:02:24 +10:00
js Allow test fixtures and test methods to throw errors by default. 2018-04-07 09:41:18 +10:00
CMakeLists.txt Add a mock object mixin that can check call expectations on mocks. 2018-04-07 10:02:18 +10:00
meson.build Add a mock object mixin that can check call expectations on mocks. 2018-04-07 10:02:18 +10:00
mock-object.vala Add a mock object mixin that can check call expectations on mocks. 2018-04-07 10:02:18 +10:00
test-case.vala Add a mock object mixin that can check call expectations on mocks. 2018-04-07 10:02:18 +10:00
test-client.vala Split test running up into test-engine and test-client. 2017-12-19 09:41:50 +11:00
test-engine.vala Fix MailboxAddresses.to_rfc822_string formatting, add unit tests. 2018-01-31 16:15:29 +10:30