@@ -1819,39 +1819,6 @@ async fn test_take_last_header() {
18191819 ) ;
18201820}
18211821
1822- async fn test_protect_autocrypt ( enabled : bool ) -> Result < ( ) > {
1823- let mut tcm = TestContextManager :: new ( ) ;
1824- let alice = & tcm. alice ( ) . await ;
1825- let bob = & tcm. bob ( ) . await ;
1826-
1827- let chat = alice. create_chat ( bob) . await ;
1828- alice
1829- . set_config_bool ( Config :: ProtectAutocrypt , enabled)
1830- . await ?;
1831- let sent = alice. send_text ( chat. id , "Hello!" ) . await ;
1832- assert_eq ! ( sent. payload( ) . contains( "Autocrypt: " ) , !enabled) ;
1833- let msg = bob. recv_msg ( & sent) . await ;
1834- assert_eq ! ( msg. get_showpadlock( ) , true ) ;
1835-
1836- Ok ( ( ) )
1837- }
1838-
1839- /// Tests that if `protect_autocrypt` is enabled,
1840- /// `Autocrypt` header does not appear in the outer headers
1841- /// of encrypted messages.
1842- #[ tokio:: test( flavor = "multi_thread" , worker_threads = 2 ) ]
1843- async fn test_protect_autocrypt_enabled ( ) -> Result < ( ) > {
1844- test_protect_autocrypt ( true ) . await
1845- }
1846-
1847- /// Tests that if `protect_autocrypt` is disabled,
1848- /// `Autocrypt` header appears in the outer headers
1849- /// of encrypted messages.
1850- #[ tokio:: test( flavor = "multi_thread" , worker_threads = 2 ) ]
1851- async fn test_protect_autocrypt_false ( ) -> Result < ( ) > {
1852- test_protect_autocrypt ( false ) . await
1853- }
1854-
18551822/// Tests that CRLF before MIME boundary
18561823/// is not treated as the part body.
18571824///
0 commit comments