Lines Matching refs:topic
493 // Passing a zero-sized buffer to a topic that expects a single
510 // Passing a zero-sized null buffer to a topic that can handle multiple
833 bool jobch_helper_smoke(uint32_t topic, size_t expected_count) {
838 EXPECT_EQ(zx_object_get_info(get_test_job(), topic,
927 // Tests that should pass for any topic. Use the wrappers below instead of
929 #define _RUN_COMMON_TESTS(topic, entry_type, get_handle) \
930 RUN_TEST((invalid_handle_fails<topic, entry_type>)); \
931 RUN_TEST((null_avail_actual_succeeds<topic, entry_type, get_handle>)); \
932 RUN_TEST((bad_buffer_fails<topic, entry_type, get_handle>)); \
933 RUN_TEST((bad_actual_fails<topic, entry_type, get_handle>)); \
934 RUN_TEST((bad_avail_fails<topic, entry_type, get_handle>))
936 // Tests that should pass for any topic that expects a single entry in its
938 #define RUN_SINGLE_ENTRY_TESTS(topic, entry_type, get_handle) \
939 _RUN_COMMON_TESTS(topic, entry_type, get_handle); \
940 RUN_TEST((single_zero_buffer_fails<topic, entry_type, get_handle>))
942 // Tests that should pass for any topic that can handle multiple entries in its
944 #define RUN_MULTI_ENTRY_TESTS(topic, entry_type, get_handle) \
945 _RUN_COMMON_TESTS(topic, entry_type, get_handle); \
946 RUN_TEST((multi_zero_buffer_succeeds<topic, get_handle>)); \
947 RUN_TEST((short_buffer_succeeds<topic, entry_type, get_handle>)); \
948 RUN_TEST((partially_unmapped_buffer_fails<topic, entry_type, get_handle>))
953 // so we can't use the normal topic test suites.