tree: 4669ca81c684ebdc0b68f87310522b34b7760474 [path history] [tgz]
  1. blitter_pixel_tests/
  2. sabi/
  3. accessibility_get_setting_test.cc
  4. align_test.cc
  5. atomic_base_test.cc
  6. atomic_test.cc
  7. audio_sink_create_test.cc
  8. audio_sink_destroy_test.cc
  9. audio_sink_get_max_channels_test.cc
  10. audio_sink_get_min_buffer_size_in_frames_test.cc
  11. audio_sink_get_nearest_supported_sample_frequency_test.cc
  12. audio_sink_helpers.cc
  13. audio_sink_helpers.h
  14. audio_sink_is_audio_frame_storage_type_supported_test.cc
  15. audio_sink_is_audio_sample_type_supported_test.cc
  16. audio_sink_test.cc
  17. blitter_blit_rect_to_rect_test.cc
  18. blitter_blit_rect_to_rect_tiled_test.cc
  19. blitter_blit_rects_to_rects_test.cc
  20. blitter_create_context_test.cc
  21. blitter_create_default_device_test.cc
  22. blitter_create_pixel_data_test.cc
  23. blitter_create_render_target_surface_test.cc
  24. blitter_create_surface_from_pixel_data_test.cc
  25. blitter_create_swap_chain_from_window_test.cc
  26. blitter_destroy_context_test.cc
  27. blitter_destroy_device_test.cc
  28. blitter_destroy_pixel_data_test.cc
  29. blitter_destroy_surface_test.cc
  30. blitter_destroy_swap_chain_test.cc
  31. blitter_download_surface_pixels_test.cc
  32. blitter_fill_rect_test.cc
  33. blitter_flip_swap_chain_test.cc
  34. blitter_flush_context_test.cc
  35. blitter_get_max_contexts_test.cc
  36. blitter_get_pixel_data_pitch_in_bytes_test.cc
  37. blitter_get_pixel_data_pointer_test.cc
  38. blitter_get_render_target_from_surface_test.cc
  39. blitter_get_render_target_from_swap_chain_test.cc
  40. blitter_get_surface_info_test.cc
  41. blitter_helpers.cc
  42. blitter_helpers.h
  43. blitter_is_pixel_format_supported_by_download_surface_pixels_test.cc
  44. blitter_is_pixel_format_supported_by_pixel_data_test.cc
  45. blitter_is_pixel_format_supported_by_render_target_surface_test.cc
  46. blitter_set_blending_test.cc
  47. blitter_set_color_test.cc
  48. blitter_set_modulate_blits_with_color_test.cc
  49. blitter_set_render_target_test.cc
  50. blitter_set_scissor_test.cc
  51. BUILD.gn
  52. byte_swap_test.cc
  53. char_is_signed_test.cc
  54. character_is_alphanumeric_test.cc
  55. character_is_digit_test.cc
  56. character_is_hex_digit_test.cc
  57. character_is_space_test.cc
  58. character_is_upper_test.cc
  59. character_to_lower_test.cc
  60. character_to_upper_test.cc
  61. condition_variable_broadcast_test.cc
  62. condition_variable_create_test.cc
  63. condition_variable_destroy_test.cc
  64. condition_variable_signal_test.cc
  65. condition_variable_wait_test.cc
  66. condition_variable_wait_timed_test.cc
  67. configuration_test.cc
  68. cpu_features_get_test.cc
  69. cryptography_create_transformer_test.cc
  70. cryptography_helpers.cc
  71. cryptography_helpers.h
  72. cryptography_transform_gcm_test.cc
  73. cryptography_transform_test.cc
  74. directory_can_open_test.cc
  75. directory_close_test.cc
  76. directory_create_test.cc
  77. directory_get_next_test.cc
  78. directory_open_test.cc
  79. double_absolute_test.cc
  80. double_exponent_test.cc
  81. double_floor_test.cc
  82. double_is_finite_test.cc
  83. double_is_nan_test.cc
  84. drm_create_system_test.cc
  85. drm_helpers.cc
  86. drm_helpers.h
  87. drm_is_server_certificate_updatable_test.cc
  88. drm_update_server_certificate_test.cc
  89. egl_test.cc
  90. extern_c_test.cc
  91. file_atomic_replace_test.cc
  92. file_can_open_test.cc
  93. file_close_test.cc
  94. file_delete_test.cc
  95. file_flush_test.cc
  96. file_get_info_test.cc
  97. file_get_path_info_test.cc
  98. file_helpers.cc
  99. file_helpers.h
  100. file_mode_string_to_flags_test.cc
  101. file_open_test.cc
  102. file_read_test.cc
  103. file_read_write_all_test.cc
  104. file_seek_test.cc
  105. file_truncate_test.cc
  106. file_write_test.cc
  107. flat_map_test.cc
  108. gles_test.cc
  109. include_all.c
  110. include_all_too.c
  111. key_test.cc
  112. log_flush_test.cc
  113. log_format_test.cc
  114. log_is_tty_test.cc
  115. log_raw_dump_stack_test.cc
  116. log_raw_test.cc
  117. log_test.cc
  118. media_buffer_test.cc
  119. media_set_audio_write_duration_test.cc
  120. memory_align_to_page_size_test.cc
  121. memory_allocate_aligned_test.cc
  122. memory_allocate_test.cc
  123. memory_compare_test.cc
  124. memory_copy_test.cc
  125. memory_deallocate_aligned_test.cc
  126. memory_deallocate_test.cc
  127. memory_find_byte_test.cc
  128. memory_get_stack_bounds_test.cc
  129. memory_is_zero_test.cc
  130. memory_map_test.cc
  131. memory_move_test.cc
  132. memory_reallocate_test.cc
  133. memory_reporter_test.cc
  134. memory_set_test.cc
  135. microphone_close_test.cc
  136. microphone_create_test.cc
  137. microphone_destroy_test.cc
  138. microphone_get_available_test.cc
  139. microphone_helpers.h
  140. microphone_is_sample_rate_supported_test.cc
  141. microphone_open_test.cc
  142. microphone_read_test.cc
  143. murmurhash2_test.cc
  144. mutex_acquire_test.cc
  145. mutex_acquire_try_test.cc
  146. mutex_create_test.cc
  147. mutex_destroy_test.cc
  148. nplb.gyp
  149. once_test.cc
  150. optional_test.cc
  151. player_create_test.cc
  152. player_output_mode_supported_test.cc
  153. random_helpers.cc
  154. random_helpers.h
  155. README.md
  156. recursive_mutex_test.cc
  157. rwlock_test.cc
  158. semaphore_test.cc
  159. socket_accept_test.cc
  160. socket_bind_test.cc
  161. socket_clear_last_error_test.cc
  162. socket_connect_test.cc
  163. socket_create_test.cc
  164. socket_destroy_test.cc
  165. socket_get_interface_address_test.cc
  166. socket_get_last_error_test.cc
  167. socket_get_local_address_test.cc
  168. socket_helpers.cc
  169. socket_helpers.h
  170. socket_is_connected_and_idle_test.cc
  171. socket_is_connected_test.cc
  172. socket_join_multicast_group_test.cc
  173. socket_listen_test.cc
  174. socket_receive_from_test.cc
  175. socket_resolve_test.cc
  176. socket_send_to_test.cc
  177. socket_set_options_test.cc
  178. socket_waiter_add_test.cc
  179. socket_waiter_create_test.cc
  180. socket_waiter_destroy_test.cc
  181. socket_waiter_remove_test.cc
  182. socket_waiter_wait_test.cc
  183. socket_waiter_wait_timed_test.cc
  184. socket_waiter_wake_up_test.cc
  185. socket_wrapper_test.cc
  186. speech_recognizer_cancel_test.cc
  187. speech_recognizer_create_test.cc
  188. speech_recognizer_destroy_test.cc
  189. speech_recognizer_helper.h
  190. speech_recognizer_start_test.cc
  191. speech_recognizer_stop_test.cc
  192. speech_synthesis_basic_test.cc
  193. state_machine_test.cc
  194. storage_close_record_test.cc
  195. storage_delete_record_test.cc
  196. storage_get_record_size_test.cc
  197. storage_helpers.h
  198. storage_open_record_test.cc
  199. storage_read_record_test.cc
  200. storage_write_record_test.cc
  201. string_compare_all_test.cc
  202. string_compare_no_case_n_test.cc
  203. string_compare_no_case_test.cc
  204. string_compare_test.cc
  205. string_compare_wide_test.cc
  206. string_concat_test.cc
  207. string_concat_wide_test.cc
  208. string_copy_test.cc
  209. string_copy_wide_test.cc
  210. string_duplicate_test.cc
  211. string_find_character_test.cc
  212. string_find_last_character_test.cc
  213. string_find_string_test.cc
  214. string_format_test.cc
  215. string_format_wide_test.cc
  216. string_parse_double_test.cc
  217. string_parse_signed_integer_test.cc
  218. string_parse_uint64_test.cc
  219. string_parse_unsigned_integer_test.cc
  220. string_scan_test.cc
  221. system_binary_search_test.cc
  222. system_clear_last_error_test.cc
  223. system_get_error_string_test.cc
  224. system_get_extension_test.cc
  225. system_get_last_error_test.cc
  226. system_get_locale_id_test.cc
  227. system_get_number_of_processors_test.cc
  228. system_get_path_test.cc
  229. system_get_property_test.cc
  230. system_get_random_data_test.cc
  231. system_get_random_uint64_test.cc
  232. system_get_stack_test.cc
  233. system_get_total_cpu_memory_test.cc
  234. system_get_total_gpu_memory_test.cc
  235. system_get_used_cpu_memory_test.cc
  236. system_get_used_gpu_memory_test.cc
  237. system_has_capability_test.cc
  238. system_hide_splash_screen_test.cc
  239. system_is_debugger_attached_test.cc
  240. system_sign_with_certification_secret_key_test.cc
  241. system_sort_test.cc
  242. system_symbolize_test.cc
  243. thread_create_test.cc
  244. thread_detach_test.cc
  245. thread_get_current_test.cc
  246. thread_get_id_test.cc
  247. thread_get_name_test.cc
  248. thread_helpers.cc
  249. thread_helpers.h
  250. thread_is_equal_test.cc
  251. thread_join_test.cc
  252. thread_local_value_test.cc
  253. thread_sampler_test.cc
  254. thread_set_name_test.cc
  255. thread_sleep_test.cc
  256. thread_test.cc
  257. thread_yield_test.cc
  258. time_constants.h
  259. time_get_monotonic_now_test.cc
  260. time_get_now_test.cc
  261. time_narrow_test.cc
  262. time_zone_get_current_test.cc
  263. time_zone_get_name_test.cc
  264. undefined_behavior_test.cc
  265. unsafe_math_test.cc
  266. url_player_create_test.cc
  267. user_get_current_test.cc
  268. user_get_property_test.cc
  269. user_get_signed_in_test.cc
  270. window_create_test.cc
  271. window_destroy_test.cc
  272. window_get_diagonal_size_in_inches_test.cc
  273. window_get_platform_handle_test.cc
  274. window_get_size_test.cc
src/starboard/nplb/README.md

No Platform Left Behind

Starboard attempts to make bringing up new platforms as easy as possible. No Platform Left Behind (NPLB) services this goal by providing a compliance test suite that new platform implementations can use to determine achieved progress.

Current State

All defined APIs are at least called by NPLB, and most are verified in one way or another. The APIs that are most likely to just be implemented by a single system call are not exhaustively tested. In particular, the Starboard functions defined in string.h and memory.h.

NPLB tests must work on all Starboard implementations, so they may make no assumptions about platform-specific details. They attempt to define a living contract for the APIs on all platforms.

Test Organization

The tests are broken out into files by both Starboard module and function.

src/starboard/nplb/<module>_<function>_test.cc

Each test may incidentally test other functions. There is an attempt to keep things as self-contained within a function and module as possible, but also an attempt to avoid testing behavior that is effectively tested as part of another test.

For example, SbSocketSendTo and SbSocketReceiveFrom are tested together, ensuring that the API is self-consistent on both sides of a connection. Therefore, only one set of tests exist to cover those use cases, in socket_receive_from_test.cc.