diff --git a/androidTests/app/src/main/java/com/pep/k9/MainActivity.java b/androidTests/app/src/main/java/com/pep/k9/MainActivity.java index 8a34401..368f3f7 100644 --- a/androidTests/app/src/main/java/com/pep/k9/MainActivity.java +++ b/androidTests/app/src/main/java/com/pep/k9/MainActivity.java @@ -445,23 +445,39 @@ public class MainActivity extends AppCompatActivity { if(!(aclr.equals(Color.pEpRatingReliable))) throw new AssertionError(); e.trustPersonalKey(bob); -/* + to = new Vector(); + to.add(bob); + msg.setTo(to); Color bclr = e.outgoing_message_color(msg); if(!(bclr.equals(Color.pEpRatingTrusted))) throw new AssertionError(); e.keyResetTrust(bob); + e.updateIdentity(bob); + to = new Vector(); + to.add(bob); + msg.setTo(to); Color cclr = e.outgoing_message_color(msg); if(!(cclr.equals(Color.pEpRatingReliable))) throw new AssertionError(); +/* e.keyCompromized(bob); + e.updateIdentity(bob); + to = new Vector(); + to.add(bob); + msg.setTo(to); Color dclr = e.outgoing_message_color(msg); if(!(dclr.equals(Color.pEpRatingUnencrypted))) throw new AssertionError(); + FIXME : keyResetTrust do not reset + e.keyResetTrust(bob); + e.updateIdentity(bob); + to = new Vector(); + to.add(bob); + msg.setTo(to); Color oclr = e.outgoing_message_color(msg); if(!(oclr.equals(Color.pEpRatingReliable))) throw new AssertionError(); */ - Vector cc = new Vector(); cc.add(alice); msg.setCc(cc);