tree: 69627c2399c03faccef9acf94316fb8ab9839f02 [path history] [tgz]
  1. compiler_compliance/
  2. nplb_evergreen_compat_tests/
  3. posix_compliance/
  4. sabi/
  5. testdata/
  6. accessibility_test.cc
  7. align_test.cc
  8. atomic_base_test.cc
  9. atomic_test.cc
  10. audio_sink_create_test.cc
  11. audio_sink_destroy_test.cc
  12. audio_sink_get_max_channels_test.cc
  13. audio_sink_get_min_buffer_size_in_frames_test.cc
  14. audio_sink_get_nearest_supported_sample_frequency_test.cc
  15. audio_sink_helpers.cc
  16. audio_sink_helpers.h
  17. audio_sink_is_audio_frame_storage_type_supported_test.cc
  18. audio_sink_is_audio_sample_type_supported_test.cc
  19. audio_sink_test.cc
  20. BUILD.gn
  21. byte_swap_test.cc
  22. char_is_signed_test.cc
  23. condition_variable_broadcast_test.cc
  24. condition_variable_create_test.cc
  25. condition_variable_destroy_test.cc
  26. condition_variable_signal_test.cc
  27. condition_variable_wait_test.cc
  28. condition_variable_wait_timed_test.cc
  29. configuration_test.cc
  30. cpu_features_get_test.cc
  31. directory_can_open_test.cc
  32. directory_close_test.cc
  33. directory_create_test.cc
  34. directory_get_next_test.cc
  35. directory_open_test.cc
  36. drm_create_system_test.cc
  37. drm_get_metrics_test.cc
  38. drm_helpers.h
  39. drm_is_server_certificate_updatable_test.cc
  40. drm_session_test.cc
  41. drm_update_server_certificate_test.cc
  42. egl_test.cc
  43. extern_c_test.cc
  44. file_atomic_replace_test.cc
  45. file_can_open_test.cc
  46. file_close_test.cc
  47. file_delete_recursive_test.cc
  48. file_delete_test.cc
  49. file_flush_test.cc
  50. file_get_info_test.cc
  51. file_get_path_info_test.cc
  52. file_helpers.cc
  53. file_helpers.h
  54. file_mode_string_to_flags_test.cc
  55. file_open_test.cc
  56. file_read_test.cc
  57. file_read_write_all_test.cc
  58. file_seek_test.cc
  59. file_truncate_test.cc
  60. file_write_test.cc
  61. flat_map_test.cc
  62. gles_test.cc
  63. image_test.cc
  64. include_all.c
  65. include_all_too.c
  66. key_test.cc
  67. log_flush_test.cc
  68. log_format_test.cc
  69. log_is_tty_test.cc
  70. log_raw_dump_stack_test.cc
  71. log_raw_test.cc
  72. log_test.cc
  73. maximum_player_configuration_explorer.cc
  74. maximum_player_configuration_explorer.h
  75. maximum_player_configuration_explorer_test.cc
  76. media_buffer_test.cc
  77. media_can_play_mime_and_key_system_test.cc
  78. media_can_play_mime_and_key_system_test_helpers.h
  79. media_configuration_test.cc
  80. media_set_audio_write_duration_test.cc
  81. memory_allocate_aligned_test.cc
  82. memory_allocate_test.cc
  83. memory_deallocate_aligned_test.cc
  84. memory_deallocate_test.cc
  85. memory_map_test.cc
  86. memory_reallocate_test.cc
  87. microphone_close_test.cc
  88. microphone_create_test.cc
  89. microphone_destroy_test.cc
  90. microphone_get_available_test.cc
  91. microphone_helpers.h
  92. microphone_is_sample_rate_supported_test.cc
  93. microphone_open_test.cc
  94. microphone_read_test.cc
  95. multiple_player_test.cc
  96. murmurhash2_test.cc
  97. mutex_acquire_test.cc
  98. mutex_acquire_try_test.cc
  99. mutex_create_test.cc
  100. mutex_destroy_test.cc
  101. once_test.cc
  102. optional_test.cc
  103. performance_helpers.h
  104. player_create_test.cc
  105. player_creation_param_helpers.cc
  106. player_creation_param_helpers.h
  107. player_get_audio_configuration_test.cc
  108. player_get_media_time_test.cc
  109. player_get_preferred_output_mode_test.cc
  110. player_test_fixture.cc
  111. player_test_fixture.h
  112. player_test_util.cc
  113. player_test_util.h
  114. player_write_sample_test.cc
  115. random_helpers.cc
  116. random_helpers.h
  117. README.md
  118. recursive_mutex_test.cc
  119. rwlock_test.cc
  120. semaphore_test.cc
  121. socket_accept_test.cc
  122. socket_bind_test.cc
  123. socket_clear_last_error_test.cc
  124. socket_connect_test.cc
  125. socket_create_test.cc
  126. socket_destroy_test.cc
  127. socket_get_interface_address_test.cc
  128. socket_get_last_error_test.cc
  129. socket_get_local_address_test.cc
  130. socket_helpers.cc
  131. socket_helpers.h
  132. socket_is_connected_and_idle_test.cc
  133. socket_is_connected_test.cc
  134. socket_join_multicast_group_test.cc
  135. socket_listen_test.cc
  136. socket_receive_from_test.cc
  137. socket_resolve_test.cc
  138. socket_send_to_test.cc
  139. socket_set_options_test.cc
  140. socket_waiter_add_test.cc
  141. socket_waiter_create_test.cc
  142. socket_waiter_destroy_test.cc
  143. socket_waiter_remove_test.cc
  144. socket_waiter_wait_test.cc
  145. socket_waiter_wait_timed_test.cc
  146. socket_waiter_wake_up_test.cc
  147. socket_wrapper_test.cc
  148. speech_synthesis_basic_test.cc
  149. state_machine_test.cc
  150. storage_close_record_test.cc
  151. storage_get_record_size_test.cc
  152. storage_helpers.h
  153. storage_read_record_test.cc
  154. storage_write_record_test.cc
  155. string_compare_no_case_n_test.cc
  156. string_compare_no_case_test.cc
  157. string_duplicate_test.cc
  158. string_format_test.cc
  159. string_format_wide_test.cc
  160. string_scan_test.cc
  161. system_clear_last_error_test.cc
  162. system_get_error_string_test.cc
  163. system_get_extension_test.cc
  164. system_get_last_error_test.cc
  165. system_get_locale_id_test.cc
  166. system_get_number_of_processors_test.cc
  167. system_get_path_test.cc
  168. system_get_property_test.cc
  169. system_get_random_data_test.cc
  170. system_get_random_uint64_test.cc
  171. system_get_stack_test.cc
  172. system_get_total_cpu_memory_test.cc
  173. system_get_total_gpu_memory_test.cc
  174. system_get_used_cpu_memory_test.cc
  175. system_get_used_gpu_memory_test.cc
  176. system_has_capability_test.cc
  177. system_hide_splash_screen_test.cc
  178. system_is_debugger_attached_test.cc
  179. system_network_status_test.cc
  180. system_sign_with_certification_secret_key_test.cc
  181. system_symbolize_test.cc
  182. thread_create_test.cc
  183. thread_detach_test.cc
  184. thread_get_current_test.cc
  185. thread_get_id_test.cc
  186. thread_get_name_test.cc
  187. thread_helpers.cc
  188. thread_helpers.h
  189. thread_is_equal_test.cc
  190. thread_join_test.cc
  191. thread_local_value_test.cc
  192. thread_priority_test.cc
  193. thread_sampler_test.cc
  194. thread_set_name_test.cc
  195. thread_sleep_test.cc
  196. thread_test.cc
  197. thread_yield_test.cc
  198. time_constants.h
  199. time_get_monotonic_now_test.cc
  200. time_get_now_test.cc
  201. time_narrow_test.cc
  202. time_zone_get_current_test.cc
  203. time_zone_get_name_test.cc
  204. ui_navigation_test.cc
  205. undefined_behavior_test.cc
  206. url_player_create_test.cc
  207. user_get_current_test.cc
  208. user_get_property_test.cc
  209. user_get_signed_in_test.cc
  210. vertical_video_test.cc
  211. window_create_test.cc
  212. window_destroy_test.cc
  213. window_get_diagonal_size_in_inches_test.cc
  214. window_get_platform_handle_test.cc
  215. window_get_size_test.cc
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.