Skip to content

Commit

Permalink
Cherry pick PR #1905: [XB1] Revert UWP implementation of SbTimeZoneGe…
Browse files Browse the repository at this point in the history
…tName (#1911)

Refer to the original PR: #1905

Revert to using the Win32 implementation of SbTimeZoneGetName due to a
daylight time offest error.
Filter the IsIANAFormat test for Win32 and XB1

b/304335954

Change-Id: I0aec1011bf8475ea7b6a24f755bb5911b55a6255

Co-authored-by: Tyler Holcombe <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and TyHolc committed Nov 6, 2023
1 parent 932032c commit 2539292
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
10 changes: 9 additions & 1 deletion starboard/shared/win32/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@

from starboard.tools.testing import test_filter

_FILTERED_TESTS = {}
_FILTERED_TESTS = {
'nplb': [
# Windows uses a special time zone format that ICU accepts, so we don't
# enforce IANA.
# TODO(b/304335954): Re-enable the test for UWP after fixing DST
# implementation.
'SbTimeZoneGetNameTest.IsIANAFormat',
],
}


class TestFilters(object):
Expand Down
4 changes: 0 additions & 4 deletions starboard/win/win32/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@

# Enable once verified on the platform.
'SbMediaCanPlayMimeAndKeySystem.MinimumSupport',

# Windows uses a special time zone format that ICU accepts, so we don't enforce IANA.
# TODO(b/304335954): Re-enable the test after fixing Windows implementation.
'SbTimeZoneGetNameTest.IsIANAFormat',
],
'player_filter_tests': [
# These tests fail on our VMs for win-win32 builds due to missing
Expand Down
5 changes: 4 additions & 1 deletion starboard/xb1/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ static_library("starboard_platform") {
"//starboard/shared/uwp/system_platform_error_internal.cc",
"//starboard/shared/uwp/system_platform_error_internal.h",
"//starboard/shared/uwp/system_raise_platform_error.cc",
"//starboard/shared/uwp/time_zone_get_name.cc",
"//starboard/shared/uwp/wasapi_audio.cc",
"//starboard/shared/uwp/wasapi_audio.h",
"//starboard/shared/uwp/wasapi_audio_sink.cc",
Expand Down Expand Up @@ -177,6 +176,10 @@ static_library("starboard_platform") {
"//starboard/shared/win32/media_get_max_buffer_capacity.cc",
"//starboard/shared/win32/media_transform.cc",
"//starboard/shared/win32/media_transform.h",

# TODO (b/304335954): Use uwp implementation for correct IANA name once
# daylight savings offset is fixed.
"//starboard/shared/win32/time_zone_get_name.cc",
"//starboard/shared/win32/video_decoder.cc",
"//starboard/shared/win32/video_decoder.h",
"//starboard/shared/win32/win32_audio_decoder.cc",
Expand Down

0 comments on commit 2539292

Please sign in to comment.