Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Sep 9, 2022
1 parent 598e6cf commit b71ecc5
Showing 1 changed file with 28 additions and 22 deletions.
50 changes: 28 additions & 22 deletions crates/tests/metadata/tests/fn_call_size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,42 @@ fn size() {
assert_eq!(struct_size(reader, "Windows.Win32.Networking.WinSock", "IN6_ADDR"), 16);
assert_eq!(struct_size(reader, "Windows.Win32.Devices.BiometricFramework", "WINBIO_IDENTITY"), 76);

assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_eql"), 32);
assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_getannotation"), 28);
assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_getannotationatindex"), 36);
assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_getannotationscount"), 16);
assert_eq!(function_size(reader, "Windows.Win32.Devices.BiometricFramework", "WinBioGetCredentialState"), 84);
assert_eq!(function_size(reader, "Windows.Win32.Devices.BiometricFramework", "WinBioRemoveCredential"), 80);
assert_eq!(function_size(reader, "Windows.Win32.Graphics.Gdi", "AlphaBlend"), 44);
assert_eq!(function_size(reader, "Windows.Win32.Networking.Clustering", "RegisterClusterNotifyV2"), 28);
assert_eq!(function_size(reader, "Windows.Win32.NetworkManagement.Rras", "RtmConvertIpv6AddressAndLengthToNetAddress"), 28);
assert_eq!(function_size(reader, "Windows.Win32.NetworkManagement.WiFi", "WlanSetProfileEapUserData"), 44);
assert_eq!(function_size(reader, "Windows.Win32.Security.Authentication.Identity", "AcceptSecurityContext"), 36);
assert_eq!(function_size(reader, "Windows.Win32.Security.Authentication.Identity", "InitializeSecurityContextA"), 48);
assert_eq!(function_size(reader, "Windows.Win32.Security.Authentication.Identity", "InitializeSecurityContextW"), 48);
assert_eq!(function_size(reader, "Windows.Win32.Security.Authentication.Identity", "SaslAcceptSecurityContext"), 36);
assert_eq!(function_size(reader, "Windows.Win32.Security.Authentication.Identity", "SaslInitializeSecurityContextA"), 48);
assert_eq!(function_size(reader, "Windows.Win32.Security.Authentication.Identity", "SaslInitializeSecurityContextW"), 48);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerBeginSession"), 68);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerConfigBlob2Xml"), 36);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerGetIdentity"), 68);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerGetMethodProperties"), 52);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerInvokeConfigUI"), 44);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerInvokeIdentityUI"), 64);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerQueryCredentialInputFields"), 40);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerQueryUserBlobFromCredentialInputFields"), 48);
assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfDisconnectSyncRoot"), 8);
assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfQuerySyncProviderStatus"), 12);
assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfReportProviderProgress"), 32);
assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfReportProviderProgress2"), 44);
assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfUpdateSyncProviderStatus"), 12);
assert_eq!(function_size(reader, "Windows.Win32.System.Com", "GetErrorInfo"), 8);
assert_eq!(function_size(reader, "Windows.Win32.System.Console", "ReadConsoleOutputA"), 20);
assert_eq!(function_size(reader, "Windows.Win32.System.Console", "ReadConsoleOutputAttribute"), 20);
assert_eq!(function_size(reader, "Windows.Win32.System.Ole", "VarI2FromCy"), 12);
assert_eq!(function_size(reader, "Windows.Win32.UI.Accessibility", "ItemContainerPattern_FindItemByProperty"), 32);
assert_eq!(function_size(reader, "Windows.Win32.UI.Accessibility", "TextRange_FindAttribute"), 32);
assert_eq!(function_size(reader, "Windows.Win32.UI.Accessibility", "UiaRaiseAutomationPropertyChangedEvent"), 40);
assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfDisconnectSyncRoot"), 8);
assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfQuerySyncProviderStatus"), 12);
assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfReportProviderProgress"), 32);
assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfReportProviderProgress2"), 44);
assert_eq!(function_size(reader, "Windows.Win32.Storage.CloudFilters", "CfUpdateSyncProviderStatus"), 12);
assert_eq!(function_size(reader, "Windows.Win32.Networking.Clustering", "RegisterClusterNotifyV2"), 28);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerQueryUserBlobFromCredentialInputFields"), 48);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerQueryCredentialInputFields"), 40);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerInvokeIdentityUI"), 64);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerInvokeConfigUI"), 44);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerGetMethodProperties"), 52);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerConfigBlob2Xml"), 36);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerGetIdentity"), 68);
assert_eq!(function_size(reader, "Windows.Win32.Security.ExtensibleAuthenticationProtocol", "EapHostPeerBeginSession"), 68);
assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_getannotationscount"), 16);
assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_getannotationatindex"), 36);
assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_getannotation"), 28);
assert_eq!(function_size(reader, "Windows.Win32.Devices.AllJoyn", "alljoyn_interfacedescription_property_eql"), 32);
assert_eq!(function_size(reader, "Windows.Win32.NetworkManagement.WiFi", "WlanSetProfileEapUserData"), 44);
assert_eq!(function_size(reader, "Windows.Win32.NetworkManagement.Rras", "RtmConvertIpv6AddressAndLengthToNetAddress"), 28);
assert_eq!(function_size(reader, "Windows.Win32.Devices.BiometricFramework", "WinBioRemoveCredential"), 80);
assert_eq!(function_size(reader, "Windows.Win32.Devices.BiometricFramework", "WinBioGetCredentialState"), 84);
}

fn function_size(reader: &metadata::reader::Reader, namespace: &str, name: &str) -> usize {
Expand Down

0 comments on commit b71ecc5

Please sign in to comment.