Paul Fariello
3a73ce3fd4
Make date::DateTime inner chrono::DateTime public
2020-10-30 08:36:47 +01:00
Emmanuel Gil Peyrot
c25e87b04f
xmpp-parsers: Fix the size tests on AArch64 and amd64
...
These two changes were caused by the HashMap implementation having been
switched to hashbrown, and thus using less memory and being faster.
2020-10-29 18:39:48 +01:00
Emmanuel Gil Peyrot
5cd7d5fe57
xmpp-parsers: Fix size tests on AArch32
2020-10-29 18:39:22 +01:00
Emmanuel Gil Peyrot
db86aa9d5a
xmpp-parsers: Bump RustCrypto crates
2020-07-29 11:07:28 +00:00
Astro
1a06a09774
xmpp-parsers: add ns::TLS
2020-05-30 01:14:29 +02:00
47ab4446d1
parsers: remove unused imports
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-22 00:02:54 +02:00
fd158d9a08
parsers: rustfmt
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-21 22:23:36 +02:00
6308250c17
parsers: update for minidom API changes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-21 22:23:36 +02:00
0b680a18e5
parsers: Fix jingle and jingle_rtp test_size for 32bit
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-05 19:05:12 +02:00
Emmanuel Gil Peyrot
048e49f786
xmpp-parsers: Add a MIX serialisation test.
2020-03-27 19:19:43 +01:00
Emmanuel Gil Peyrot
820fbbf08e
xmpp-parsers: Add helper constructors for MIX.
2020-03-27 19:19:43 +01:00
Emmanuel Gil Peyrot
ad4c1f5b15
xmpp-parsers: Add a MIX parser.
2020-03-27 19:19:07 +01:00
015d0007fc
minidom: Remove comments support. Forbid them as per XMPP RFC.
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-03-26 20:50:30 +01:00
0377b5658a
parsers: Remove dead get_ns methods
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-01-22 00:50:56 +01:00
fbb0edd93b
parsers: cleanup warnings about errors and unused stuff
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-01-22 00:50:56 +01:00
Paul Fariello
c224133382
Add test for openpgp pubkey serialization
2020-01-21 17:23:08 +01:00
Paul Fariello
13afbfd099
Add test for jingle udp transport serialization
2020-01-21 16:59:22 +01:00
Paul Fariello
1432807f11
Add tests for cert management serialization
2020-01-21 16:53:56 +01:00
Paul Fariello
34a87e22a8
Fix fmt
2019-12-30 11:28:52 +01:00
Paul Fariello
8d246975d7
Add serialization test for sm failed element
2019-12-30 11:20:37 +01:00
Paul Fariello
6b14b593d3
Add serialization test for pubsub publish-options and options element
2019-12-30 11:20:37 +01:00
Paul Fariello
8010b5a1e5
Add serialization test for muc item element
2019-12-30 11:20:37 +01:00
Paul Fariello
02e3f93caa
fixup! Add more test on Optionnal, Required children serialization
2019-12-30 11:20:37 +01:00
Paul Fariello
ce49b918c6
Add serialization test for mam result and fin element
2019-12-30 11:20:37 +01:00
Paul Fariello
e66a21176a
Add serialization test for forwaded element
2019-12-30 11:20:37 +01:00
Paul Fariello
5da5795286
Add serialization test for carbons forwarded elemt
2019-12-30 11:20:37 +01:00
Paul Fariello
0d879eb231
Add more test on Optionnal, Required children serialization
2019-12-30 11:20:37 +01:00
c8206455f1
parsers: fix tests indentation with minidom PartialEq changes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-08 11:03:01 +00:00
Emmanuel Gil Peyrot
0d58b56920
ecaps2: Use the Error type instead of () or String.
2019-12-01 17:00:20 +01:00
3c92f849d3
pubsub: Add serialization test for configure element
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-01 03:16:24 +01:00
Paul Fariello
689b7cf836
Fix serialisation of Optional field
2019-12-01 03:16:24 +01:00
Paul Fariello
3a2027411e
mam: Fix test on serialisation
2019-12-01 03:16:24 +01:00
Paul Fariello
8d41959497
jingle: Add test on serialisation
2019-12-01 03:16:24 +01:00
1c5551a917
minidom: Implement PartialEq manually for Node and Element
...
Move the NamespaceAwareCompare implementation from xmpp-parsers as Node
and Element's PartialEq implementation. Thanks Astro!
It's a lot more useful in tests to use `assert_eq!` than `assert!`, so
we get both items compared (left and right) instead of a "it failed."
message.
This "breaks" comparison for these two structs in the sense that it is
not strict object comparison anymore but it ensures that namespaces are
all present in the compared objects.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-29 16:02:23 +01:00
f3a18711e6
parsers/mam: add ignored failing test for serialization
...
Add failing test for #20 . Thanks Paul.
Now that needs fixing..
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-22 17:34:53 +01:00
141d11ad38
minidom: Don't prepend xml prelude in writer. Add new API
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-10 01:01:42 +01:00
5a254bca1a
parsers/jingle: fixes struct size in tests
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-09 01:32:11 +01:00
70f3ef5523
parsers: Use new NSChoice API from minidom. Fixes tests
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-09 01:31:36 +01:00
Emmanuel Gil Peyrot
877d5c21da
minidom: Add a blanket impl for From<Into<Element>> for Node.
2019-11-03 18:49:11 +01:00
a104ebc3f6
Rustfmt pass, and rustfmt --check in CI"
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-23 01:36:02 +02:00
dc76f296de
Prepare for merge: Move all xmpp-parsers files into xmpp-parsers/
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-18 13:47:10 +02:00