Skip to content

Commit

Permalink
Upgrade to latest quiche version and update supported quic versions (j…
Browse files Browse the repository at this point in the history
…ava-native-access#554)

Motivation:

Let us update to latest quiche code

Modifications:

- Update dependency
- Adjust unit test to match what quiche supports now

Result:

Use latest quiche code as dependency
  • Loading branch information
normanmaurer authored Jul 10, 2023
1 parent 570ecfc commit a8c7385
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion codec-native-quic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<quicheHomeIncludeDir>${quicheHomeDir}/quiche/include</quicheHomeIncludeDir>
<quicheRepository>https://github.com/cloudflare/quiche</quicheRepository>
<quicheBranch>master</quicheBranch>
<quicheCommitSha>a4ac85642eca40e45cc6e0cfd916d55b81537e2c</quicheCommitSha>
<quicheCommitSha>de4c26c1fd3d42c364daedae3fb6a557c3f6fd38</quicheCommitSha>
<generatedSourcesDir>${project.build.directory}/generated-sources</generatedSourcesDir>
<templateDir>${project.build.directory}/template</templateDir>
<cargoTarget />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,11 @@ public void test() {

@Test
public void testVersionSupported() {
// draft-27, draft-28, draft-29 and 1 should be supported.
assertTrue(Quic.isVersionSupported(0xff00_001b));
assertTrue(Quic.isVersionSupported(0xff00_001c));
assertTrue(Quic.isVersionSupported(0xff00_001d));
// Only v1 should be supported.
assertFalse(Quic.isVersionSupported(0xff00_001c));
assertFalse(Quic.isVersionSupported(0xff00_001d));
assertFalse(Quic.isVersionSupported(0xff00_001c));
assertTrue(Quic.isVersionSupported(0x0000_0001));

assertFalse(Quic.isVersionSupported(0xff00_001a));
}

@Test
Expand Down

0 comments on commit a8c7385

Please sign in to comment.