Update test_size tests for 32-bit architectures

This commit is contained in:
Emmanuel Gil Peyrot 2019-04-22 14:34:25 +02:00
parent 3178aaa1cb
commit bc480f8e7c
15 changed files with 16 additions and 16 deletions

View file

@ -77,7 +77,7 @@ mod tests {
#[cfg(target_pointer_width = "32")]
#[test]
fn test_size() {
assert_size!(Conference, 76);
assert_size!(Conference, 64);
assert_size!(Url, 24);
assert_size!(Storage, 24);
}

View file

@ -40,7 +40,7 @@ mod tests {
#[cfg(target_pointer_width = "32")]
#[test]
fn test_size() {
assert_size!(Delay, 64);
assert_size!(Delay, 68);
}
#[cfg(target_pointer_width = "64")]

View file

@ -243,7 +243,7 @@ mod tests {
assert_size!(DiscoInfoQuery, 12);
assert_size!(DiscoInfoResult, 48);
assert_size!(Item, 60);
assert_size!(Item, 64);
assert_size!(DiscoItemsQuery, 12);
assert_size!(DiscoItemsResult, 24);
}

View file

@ -33,7 +33,7 @@ mod tests {
#[cfg(target_pointer_width = "32")]
#[test]
fn test_size() {
assert_size!(Forwarded, 204);
assert_size!(Forwarded, 212);
}
#[cfg(target_pointer_width = "64")]

View file

@ -225,8 +225,8 @@ mod tests {
#[cfg(target_pointer_width = "32")]
#[test]
fn test_size() {
assert_size!(IqType, 108);
assert_size!(Iq, 192);
assert_size!(IqType, 112);
assert_size!(Iq, 204);
}
#[cfg(target_pointer_width = "64")]

View file

@ -564,7 +564,7 @@ mod tests {
assert_size!(Reason, 1);
assert_size!(ReasonElement, 16);
assert_size!(SessionId, 12);
assert_size!(Jingle, 128);
assert_size!(Jingle, 136);
}
#[cfg(target_pointer_width = "64")]

View file

@ -285,7 +285,7 @@ mod tests {
assert_size!(Mode, 1);
assert_size!(CandidateId, 12);
assert_size!(StreamId, 12);
assert_size!(Candidate, 80);
assert_size!(Candidate, 84);
assert_size!(TransportPayload, 16);
assert_size!(Transport, 44);
}

View file

@ -199,7 +199,7 @@ mod tests {
fn test_size() {
assert_size!(QueryId, 12);
assert_size!(Query, 116);
assert_size!(Result_, 228);
assert_size!(Result_, 236);
assert_size!(Complete, 1);
assert_size!(Fin, 44);
assert_size!(DefaultPrefs, 1);

View file

@ -264,7 +264,7 @@ mod tests {
assert_size!(Body, 12);
assert_size!(Subject, 12);
assert_size!(Thread, 12);
assert_size!(Message, 136);
assert_size!(Message, 144);
}
#[cfg(target_pointer_width = "64")]

View file

@ -368,7 +368,7 @@ mod tests {
fn test_size() {
assert_size!(Show, 1);
assert_size!(Type, 1);
assert_size!(Presence, 112);
assert_size!(Presence, 120);
}
#[cfg(target_pointer_width = "64")]

View file

@ -104,7 +104,7 @@ mod tests {
assert_size!(Group, 12);
assert_size!(Subscription, 1);
assert_size!(Ask, 1);
assert_size!(Item, 64);
assert_size!(Item, 52);
assert_size!(Roster, 24);
}

View file

@ -316,7 +316,7 @@ mod tests {
fn test_size() {
assert_size!(ErrorType, 1);
assert_size!(DefinedCondition, 1);
assert_size!(StanzaError, 104);
assert_size!(StanzaError, 108);
}
#[cfg(target_pointer_width = "64")]

View file

@ -45,7 +45,7 @@ mod tests {
#[cfg(target_pointer_width = "32")]
#[test]
fn test_size() {
assert_size!(StanzaId, 48);
assert_size!(StanzaId, 52);
assert_size!(OriginId, 12);
}

View file

@ -79,7 +79,7 @@ mod tests {
#[cfg(target_pointer_width = "32")]
#[test]
fn test_size() {
assert_size!(Stream, 108);
assert_size!(Stream, 84);
}
#[cfg(target_pointer_width = "64")]

View file

@ -78,7 +78,7 @@ mod tests {
#[cfg(target_pointer_width = "32")]
#[test]
fn test_size() {
assert_size!(Open, 108);
assert_size!(Open, 84);
}
#[cfg(target_pointer_width = "64")]