[geary/wip/362-utf8-attachments] Hardcode PartTest's source encoding since it shouldn't change



commit b955bc433e6ef18d63c1f911aa6275bdd1e08f47
Author: Michael Gratton <mike vee net>
Date:   Thu Jul 18 15:05:03 2019 +1000

    Hardcode PartTest's source encoding since it shouldn't change

 test/engine/rfc822-part-test.vala | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/test/engine/rfc822-part-test.vala b/test/engine/rfc822-part-test.vala
index 3af30ec0..b6e82e60 100644
--- a/test/engine/rfc822-part-test.vala
+++ b/test/engine/rfc822-part-test.vala
@@ -90,15 +90,14 @@ class Geary.RFC822.PartTest : TestCase {
     }
 
     private GMime.Part new_part(string? mime_type,
-                                uint8[] body,
-                                GMime.ContentEncoding encoding = GMime.ContentEncoding.DEFAULT) {
+                                uint8[] body) {
         GMime.Part part = new GMime.Part();
         if (mime_type != null) {
             part.set_content_type(new GMime.ContentType.from_string(mime_type));
         }
         GMime.DataWrapper body_wrapper = new GMime.DataWrapper.with_stream(
             new GMime.StreamMem.with_buffer(body),
-            encoding
+            GMime.ContentEncoding.BINARY
         );
         part.set_content_object(body_wrapper);
         part.encode(GMime.EncodingConstraint.7BIT);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]