Rework PCAP dump

Encapsulate logic into a new dumper API, preparing for pcapng
support
This commit is contained in:
emanuele-f
2023-01-06 21:27:01 +01:00
parent 92b89fa5be
commit 275eefaa1c
14 changed files with 335 additions and 250 deletions
+3 -3
View File
@@ -2,16 +2,16 @@
Tests in PCAPdroid can be split in the following categories:
- [Java tests](https://github.com/emanuele-f/PCAPdroid/tree/dev/app/src/test/java):
- [Java tests](https://github.com/emanuele-f/PCAPdroid/tree/master/app/src/test/java):
they can be run via `./gradlew test`. They use the
[robolectric framework](https://github.com/robolectric/robolectric)
to mock the Android API, allowing them to be run locally (without an Android device).
- [Native tests](https://github.com/emanuele-f/PCAPdroid/tree/dev/app/src/main/jni/tests):
- [Native tests](https://github.com/emanuele-f/PCAPdroid/tree/master/app/src/main/jni/tests):
tests and fuzzing targets for native code. Check out their readme for more details.
The tests are executed on every push via the
[Github workflows](https://github.com/emanuele-f/PCAPdroid/tree/dev/.github/workflows).
[Github workflows](https://github.com/emanuele-f/PCAPdroid/tree/master/.github/workflows).
Apart from automatic tests, the following manual tests should be performed
before every release: