mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Renumbered object identifiers to reflect removal of OFFER_ID.
This commit is contained in:
@@ -17,9 +17,8 @@ public interface Tags {
|
||||
static final int MESSAGE = 7;
|
||||
static final int MESSAGE_ID = 8;
|
||||
static final int OFFER = 9;
|
||||
// FIXME: Renumber
|
||||
static final int REQUEST = 11;
|
||||
static final int SUBSCRIPTION_UPDATE = 12;
|
||||
static final int TRANSPORT_PROPERTIES = 13;
|
||||
static final int TRANSPORT_UPDATE = 14;
|
||||
static final int REQUEST = 10;
|
||||
static final int SUBSCRIPTION_UPDATE = 11;
|
||||
static final int TRANSPORT_PROPERTIES = 12;
|
||||
static final int TRANSPORT_UPDATE = 13;
|
||||
}
|
||||
|
||||
@@ -42,9 +42,9 @@ public class RequestWriterImplTest extends TestCase {
|
||||
b.set(12);
|
||||
b.set(15);
|
||||
r.writeRequest(b, 16);
|
||||
// Short user tag 11, short bytes with length 2, 0xD959
|
||||
// Short user tag 10, short bytes with length 2, 0xD959
|
||||
byte[] output = out.toByteArray();
|
||||
assertEquals("CB" + "92" + "D959", StringUtils.toHexString(output));
|
||||
assertEquals("CA" + "92" + "D959", StringUtils.toHexString(output));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -63,8 +63,8 @@ public class RequestWriterImplTest extends TestCase {
|
||||
b.set(11);
|
||||
b.set(12);
|
||||
r.writeRequest(b, 13);
|
||||
// Short user tag 11, short bytes with length 2, 0x59D8
|
||||
// Short user tag 10, short bytes with length 2, 0x59D8
|
||||
byte[] output = out.toByteArray();
|
||||
assertEquals("CB" + "92" + "59D8", StringUtils.toHexString(output));
|
||||
assertEquals("CA" + "92" + "59D8", StringUtils.toHexString(output));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user