@@ -59,9 +59,10 @@ SUITE(mouse_)
5959 static_assert (rp0.max_output_size == 0 );
6060 static_assert (not rp0.uses_report_ids ());
6161
62- constexpr auto table0 = hid::make_report_selector_table <app_report_descriptor<0 >()>();
62+ constexpr auto table0 = hid::make_report_properties_table <app_report_descriptor<0 >()>();
6363 static_assert (table0.size () == 1 );
64- static_assert (table0[0 ] == report<0 >::selector ());
64+ static_assert (table0[0 ].selector == report<0 >::selector ());
65+ static_assert (table0[0 ].size == sizeof (report<0 >));
6566
6667 // test both compile-time and runtime
6768 static_assert (hid::rdf::get_application_usage_id (rp0.descriptor ) ==
@@ -80,9 +81,10 @@ SUITE(mouse_)
8081 static_assert (rp5.max_output_size == 0 );
8182 static_assert (rp5.uses_report_ids ());
8283
83- constexpr auto table5 = hid::make_report_selector_table <app_report_descriptor<5 >()>();
84+ constexpr auto table5 = hid::make_report_properties_table <app_report_descriptor<5 >()>();
8485 static_assert (table5.size () == 1 );
85- static_assert (table5[0 ] == report<5 >::selector ());
86+ static_assert (table5[0 ].selector == report<5 >::selector ());
87+ static_assert (table5[0 ].size == sizeof (report<5 >));
8688
8789 // test both compile-time and runtime
8890 static_assert (hid::rdf::get_application_usage_id (rp5.descriptor ) ==
@@ -104,10 +106,12 @@ SUITE(mouse_)
104106 static_assert (rp0.max_output_size == 0 );
105107 static_assert (not rp0.uses_report_ids ());
106108
107- constexpr auto table0 = hid::make_report_selector_table <high_res_mouse_desc<0 >()>();
109+ constexpr auto table0 = hid::make_report_properties_table <high_res_mouse_desc<0 >()>();
108110 static_assert (table0.size () == 2 );
109- static_assert (table0[0 ] == report<0 >::selector ());
110- static_assert (table0[1 ] == resolution_multiplier_report<120 , 0 >::selector ());
111+ static_assert (table0[0 ].selector == report<0 >::selector ());
112+ static_assert (table0[0 ].size == rp0.max_input_size );
113+ static_assert (table0[1 ].selector == resolution_multiplier_report<120 , 0 >::selector ());
114+ static_assert (table0[1 ].size == sizeof (resolution_multiplier_report<120 , 0 >));
111115
112116 // test both compile-time and runtime
113117 static_assert (hid::rdf::get_application_usage_id (rp0.descriptor ) ==
@@ -126,10 +130,12 @@ SUITE(mouse_)
126130 static_assert (rp5.max_output_size == 0 );
127131 static_assert (rp5.uses_report_ids ());
128132
129- constexpr auto table5 = hid::make_report_selector_table <high_res_mouse_desc<5 >()>();
133+ constexpr auto table5 = hid::make_report_properties_table <high_res_mouse_desc<5 >()>();
130134 static_assert (table5.size () == 2 );
131- static_assert (table5[0 ] == report<5 >::selector ());
132- static_assert (table5[1 ] == resolution_multiplier_report<120 , 5 >::selector ());
135+ static_assert (table5[0 ].selector == report<5 >::selector ());
136+ static_assert (table5[0 ].size == rp5.max_input_size );
137+ static_assert (table5[1 ].selector == resolution_multiplier_report<120 , 5 >::selector ());
138+ static_assert (table5[1 ].size == sizeof (resolution_multiplier_report<120 , 5 >));
133139
134140 // test both compile-time and runtime
135141 static_assert (hid::rdf::get_application_usage_id (rp5.descriptor ) ==
0 commit comments