Skip to content

Commit

Permalink
Make test checking for conversion to param
Browse files Browse the repository at this point in the history
  • Loading branch information
rylev committed Mar 18, 2022
1 parent 4b42469 commit 7eeb9e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/tests/nightly_interface/tests/com.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@ fn test_custom_interface() -> windows::core::Result<()> {
p.GetClassID(&mut b).ok()?;
assert_eq!(b, "117fb826-2155-483a-b50d-bc99a2c7cca3".into());

CheckConversionWorks(p);

Ok(())
}
}

pub fn CheckConversionWorks<'a, P>(_p: P)
where
P: windows::core::IntoParam<'a, windows::core::IUnknown>,
{
}

0 comments on commit 7eeb9e3

Please sign in to comment.