Lines Matching refs:ffi2
12 use cxx_test_suite::module::ffi2;
44 ffi2::c_return_ns_unique_ptr(); in test_c_return()
115 let unique_ptr_ns = ffi2::c_return_ns_unique_ptr(); in test_c_take()
124 check!(ffi2::c_take_ref_ns_c(&unique_ptr_ns)); in test_c_take()
264 let unique_ptr = ffi2::ns_c_return_unique_ptr_ns(); in test_c_ns_method_calls()
305 let mut d = ffi2::c_return_trivial(); in test_extern_trivial()
306 check!(ffi2::c_take_trivial_ref(&d)); in test_extern_trivial()
309 check!(ffi2::c_take_trivial(d)); in test_extern_trivial()
310 let mut d = ffi2::c_return_trivial_ptr(); in test_extern_trivial()
313 check!(ffi2::c_take_trivial_ptr(d)); in test_extern_trivial()
314 cxx::UniquePtr::new(ffi2::D { d: 42 }); in test_extern_trivial()
315 let d = ffi2::ns_c_return_trivial(); in test_extern_trivial()
316 check!(ffi2::ns_c_take_trivial(d)); in test_extern_trivial()
318 let g = ffi2::c_return_trivial_ns(); in test_extern_trivial()
319 check!(ffi2::c_take_trivial_ns_ref(&g)); in test_extern_trivial()
320 check!(ffi2::c_take_trivial_ns(g)); in test_extern_trivial()
321 let g = ffi2::c_return_trivial_ns_ptr(); in test_extern_trivial()
322 check!(ffi2::c_take_trivial_ns_ptr(g)); in test_extern_trivial()
323 cxx::UniquePtr::new(ffi2::G { g: 42 }); in test_extern_trivial()
328 let mut e = ffi2::c_return_opaque_ptr(); in test_extern_opaque()
329 check!(ffi2::c_take_opaque_ref(e.as_ref().unwrap())); in test_extern_opaque()
332 check!(ffi2::c_take_opaque_ptr(e)); in test_extern_opaque()
334 let f = ffi2::c_return_ns_opaque_ptr(); in test_extern_opaque()
335 check!(ffi2::c_take_opaque_ns_ref(f.as_ref().unwrap())); in test_extern_opaque()
336 check!(ffi2::c_take_opaque_ns_ptr(f)); in test_extern_opaque()