geary/test
Michael James Gratton 9ac2b05a23 Ensure syntax errors are always reported by the deserialiser.
Add unit tests.

* src/engine/imap/transport/imap-deserializer.vala (Deserialiser): Add a
  new EOL even handler to the FAILED state that is the one place where
  the deserialize_failure() signal is fired and that any existing params
  are reset.
  (Deserialiser::push_line): Remove signal calls and unused return
  value. Don't use EOS to detect NUL to avoid some confusion. Ensure an
  EOL event is always fired so that the FAILED EOF handler is always run.
  (Deserialiser::push_data): Remove signal calls and unused return value.
  (Deserialiser::flush_params): Don't bother returning a state, since we
  now always know what the next one should be when calling it. Only
  trigger the parameters_ready() signal if there is a valid
  parameter. Make logging consistent with the rest of the class.
  (Deserialiser::reset_params): New common method for resetting any
  existing deserialised message.
  (Deserialiser::on_literal_char): Minor tidy up.
  (Deserialiser::on_eos): Ensure that any existing param is sent on EOS
  so that any BYE+EOS sent by the server is picked up.
2017-11-02 19:10:29 +11:00
..
client Don't insert multiple blank lines in the composer. Bug 778125. 2017-02-07 12:09:29 +11:00
engine Ensure syntax errors are always reported by the deserialiser. 2017-11-02 19:10:29 +11:00
js Don't insert multiple blank lines in the composer. Bug 778125. 2017-02-07 12:09:29 +11:00
CMakeLists.txt Add test case stub for Geary.Imap.Deserializer to the build. 2017-11-02 19:10:29 +11:00
main.vala Add test case stub for Geary.Imap.Deserializer to the build. 2017-11-02 19:10:29 +11:00
testcase.vala Assorted async test case fixes. 2017-11-02 19:10:29 +11:00