]>
git.saurik.com Git - apple/xnu.git/blob - tests/bounded_array_src/test_policy.h
1 #ifndef TESTS_BOUNDED_ARRAY_SRC_TEST_POLICY_H
2 #define TESTS_BOUNDED_ARRAY_SRC_TEST_POLICY_H
5 #include <darwintest_utils.h>
6 #include <libkern/c++/bounded_array.h>
7 #include <libkern/c++/bounded_ptr.h>
18 template <typename T
, size_t N
>
19 using test_bounded_array
= libkern::bounded_array
<T
, N
, test_policy
>;
22 using test_bounded_ptr
= libkern::bounded_ptr
<T
, test_policy
>;
24 #define CHECK(...) T_ASSERT_TRUE((__VA_ARGS__), # __VA_ARGS__)
26 #endif // !TESTS_BOUNDED_ARRAY_SRC_TEST_POLICY_H