Home
last modified time | relevance | path

Searched refs:expectedBuffer (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dencodedstreamtest.cpp232 char* expectedBuffer = ReadFile(expectedFilename, true, &expectedLength); in CompareFile() local
233 …bool ret = (expectedLength == actualLength) && memcmp(expectedBuffer, actualBuffer, actualLength) … in CompareFile()
235 free(expectedBuffer); in CompareFile()
241 char* expectedBuffer = ReadFile(expectedFilename, true, &expectedLength); in CompareBufferFile() local
242 …bool ret = (expectedLength == actualLength) && memcmp(expectedBuffer, actualBuffer, actualLength) … in CompareBufferFile()
243 free(expectedBuffer); in CompareBufferFile()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeUdpEncapSocketTest.java204 ByteBuffer expectedBuffer = in disableTestSendIkePacket() local
206 expectedBuffer.put(IkeUdpEncapSocket.NON_ESP_MARKER).put(mDataOne); in disableTestSendIkePacket()
208 assertArrayEquals(expectedBuffer.array(), receivedData); in disableTestSendIkePacket()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessageTest.java616 ByteBuffer expectedBuffer = in testReassembleAllFrags() local
620 expectedBuffer.put(FRAGMENT_ONE_UNENCRYPTED_DATA).put(FRAGMENT_TWO_UNENCRYPTED_DATA); in testReassembleAllFrags()
623 assertArrayEquals(expectedBuffer.array(), reassembledBytes); in testReassembleAllFrags()