diff options
author | pedroGitt <pedro.contreiras@amdocs.com> | 2016-11-23 01:20:47 +0100 |
---|---|---|
committer | pedroGitt <pedro.contreiras@amdocs.com> | 2016-11-23 01:20:47 +0100 |
commit | e63be9777453d6bc18fe70c68839bb91406ffcd0 (patch) | |
tree | c2f850e833a695c09f7cc8d0c19c7d75e4131aff /java/android/OlmLibSdk/olm-sdk/src/androidTest | |
parent | 7a6897642baa8fc5d9d9f14c80fc4f201cfe2173 (diff) |
Update with master branch => OLM V2.0.0
Diffstat (limited to 'java/android/OlmLibSdk/olm-sdk/src/androidTest')
-rw-r--r-- | java/android/OlmLibSdk/olm-sdk/src/androidTest/java/org/matrix/olm/OlmGroupSessionTest.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/android/OlmLibSdk/olm-sdk/src/androidTest/java/org/matrix/olm/OlmGroupSessionTest.java b/java/android/OlmLibSdk/olm-sdk/src/androidTest/java/org/matrix/olm/OlmGroupSessionTest.java index 6e12463..7e0324b 100644 --- a/java/android/OlmLibSdk/olm-sdk/src/androidTest/java/org/matrix/olm/OlmGroupSessionTest.java +++ b/java/android/OlmLibSdk/olm-sdk/src/androidTest/java/org/matrix/olm/OlmGroupSessionTest.java @@ -151,8 +151,10 @@ public class OlmGroupSessionTest { @Test public void test10InboundDecryptMessage() { // test decrypted message - mBobDecryptedMessage = mBobInboundGroupSession.decryptMessage(mAliceToBobMessage); + OlmInboundGroupSession.DecryptIndex index = new OlmInboundGroupSession.DecryptIndex(); + mBobDecryptedMessage = mBobInboundGroupSession.decryptMessage(mAliceToBobMessage, index); assertFalse(TextUtils.isEmpty(mBobDecryptedMessage)); + assertTrue(0==index.mIndex); } @Test @@ -435,8 +437,10 @@ public class OlmGroupSessionTest { assertTrue("Exception in test18TestBadCharacterCrashInDecrypt, Exception code=" + e.getExceptionCode(), false); } - String decryptedMessage = bobInboundGroupSession.decryptMessage(msgToDecryptWithEmoji); + OlmInboundGroupSession.DecryptIndex index = new OlmInboundGroupSession.DecryptIndex(); + String decryptedMessage = bobInboundGroupSession.decryptMessage(msgToDecryptWithEmoji, index); assertNotNull(decryptedMessage); + assertTrue(13==index.mIndex); } } |