From 3178aaa1cbb2177b94513b2cef65db899d8d4229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 22 Apr 2019 11:24:11 +0100 Subject: [PATCH] Update test_size tests 64bit archs with jid-rs change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/bookmarks.rs | 2 +- src/delay.rs | 2 +- src/disco.rs | 2 +- src/forwarding.rs | 2 +- src/iq.rs | 4 ++-- src/jingle.rs | 2 +- src/jingle_s5b.rs | 2 +- src/mam.rs | 2 +- src/message.rs | 2 +- src/presence.rs | 2 +- src/roster.rs | 2 +- src/stanza_error.rs | 2 +- src/stanza_id.rs | 2 +- src/stream.rs | 2 +- src/websocket.rs | 2 +- 15 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/bookmarks.rs b/src/bookmarks.rs index 1424686..b40482c 100644 --- a/src/bookmarks.rs +++ b/src/bookmarks.rs @@ -85,7 +85,7 @@ mod tests { #[cfg(target_pointer_width = "64")] #[test] fn test_size() { - assert_size!(Conference, 152); + assert_size!(Conference, 128); assert_size!(Url, 48); assert_size!(Storage, 48); } diff --git a/src/delay.rs b/src/delay.rs index 97a32d2..892578c 100644 --- a/src/delay.rs +++ b/src/delay.rs @@ -46,7 +46,7 @@ mod tests { #[cfg(target_pointer_width = "64")] #[test] fn test_size() { - assert_size!(Delay, 112); + assert_size!(Delay, 120); } #[test] diff --git a/src/disco.rs b/src/disco.rs index 9d8781d..2cacc2a 100644 --- a/src/disco.rs +++ b/src/disco.rs @@ -256,7 +256,7 @@ mod tests { assert_size!(DiscoInfoQuery, 24); assert_size!(DiscoInfoResult, 96); - assert_size!(Item, 120); + assert_size!(Item, 128); assert_size!(DiscoItemsQuery, 24); assert_size!(DiscoItemsResult, 48); } diff --git a/src/forwarding.rs b/src/forwarding.rs index 4adb479..906f016 100644 --- a/src/forwarding.rs +++ b/src/forwarding.rs @@ -39,7 +39,7 @@ mod tests { #[cfg(target_pointer_width = "64")] #[test] fn test_size() { - assert_size!(Forwarded, 392); + assert_size!(Forwarded, 408); } #[test] diff --git a/src/iq.rs b/src/iq.rs index c5a195d..68d585d 100644 --- a/src/iq.rs +++ b/src/iq.rs @@ -232,8 +232,8 @@ mod tests { #[cfg(target_pointer_width = "64")] #[test] fn test_size() { - assert_size!(IqType, 216); - assert_size!(Iq, 384); + assert_size!(IqType, 224); + assert_size!(Iq, 408); } #[test] diff --git a/src/jingle.rs b/src/jingle.rs index ed4fe4a..14574fd 100644 --- a/src/jingle.rs +++ b/src/jingle.rs @@ -579,7 +579,7 @@ mod tests { assert_size!(Reason, 1); assert_size!(ReasonElement, 32); assert_size!(SessionId, 24); - assert_size!(Jingle, 256); + assert_size!(Jingle, 272); } #[test] diff --git a/src/jingle_s5b.rs b/src/jingle_s5b.rs index 0aa7972..a34b5e3 100644 --- a/src/jingle_s5b.rs +++ b/src/jingle_s5b.rs @@ -297,7 +297,7 @@ mod tests { assert_size!(Mode, 1); assert_size!(CandidateId, 24); assert_size!(StreamId, 24); - assert_size!(Candidate, 128); + assert_size!(Candidate, 136); assert_size!(TransportPayload, 32); assert_size!(Transport, 88); } diff --git a/src/mam.rs b/src/mam.rs index bd97ed9..f0bd044 100644 --- a/src/mam.rs +++ b/src/mam.rs @@ -211,7 +211,7 @@ mod tests { fn test_size() { assert_size!(QueryId, 24); assert_size!(Query, 232); - assert_size!(Result_, 440); + assert_size!(Result_, 456); assert_size!(Complete, 1); assert_size!(Fin, 88); assert_size!(DefaultPrefs, 1); diff --git a/src/message.rs b/src/message.rs index 582c7f1..fb11e91 100644 --- a/src/message.rs +++ b/src/message.rs @@ -274,7 +274,7 @@ mod tests { assert_size!(Body, 24); assert_size!(Subject, 24); assert_size!(Thread, 24); - assert_size!(Message, 272); + assert_size!(Message, 288); } #[test] diff --git a/src/presence.rs b/src/presence.rs index de2b77c..b4e1a1e 100644 --- a/src/presence.rs +++ b/src/presence.rs @@ -376,7 +376,7 @@ mod tests { fn test_size() { assert_size!(Show, 1); assert_size!(Type, 1); - assert_size!(Presence, 224); + assert_size!(Presence, 240); } #[test] diff --git a/src/roster.rs b/src/roster.rs index dc615c7..073ecfa 100644 --- a/src/roster.rs +++ b/src/roster.rs @@ -114,7 +114,7 @@ mod tests { assert_size!(Group, 24); assert_size!(Subscription, 1); assert_size!(Ask, 1); - assert_size!(Item, 128); + assert_size!(Item, 104); assert_size!(Roster, 48); } diff --git a/src/stanza_error.rs b/src/stanza_error.rs index f2ae500..18087ba 100644 --- a/src/stanza_error.rs +++ b/src/stanza_error.rs @@ -324,7 +324,7 @@ mod tests { fn test_size() { assert_size!(ErrorType, 1); assert_size!(DefinedCondition, 1); - assert_size!(StanzaError, 208); + assert_size!(StanzaError, 216); } #[test] diff --git a/src/stanza_id.rs b/src/stanza_id.rs index 2178d7a..eac2908 100644 --- a/src/stanza_id.rs +++ b/src/stanza_id.rs @@ -52,7 +52,7 @@ mod tests { #[cfg(target_pointer_width = "64")] #[test] fn test_size() { - assert_size!(StanzaId, 96); + assert_size!(StanzaId, 104); assert_size!(OriginId, 24); } diff --git a/src/stream.rs b/src/stream.rs index 021b642..112f1b9 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -85,7 +85,7 @@ mod tests { #[cfg(target_pointer_width = "64")] #[test] fn test_size() { - assert_size!(Stream, 216); + assert_size!(Stream, 168); } #[test] diff --git a/src/websocket.rs b/src/websocket.rs index dc2670f..d94d81f 100644 --- a/src/websocket.rs +++ b/src/websocket.rs @@ -84,7 +84,7 @@ mod tests { #[cfg(target_pointer_width = "64")] #[test] fn test_size() { - assert_size!(Open, 216); + assert_size!(Open, 168); } #[test]