Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Issue 11567013: Fix PPAPI time conversion code to handle epoch times. (Closed)

Created:
8 years ago by raymes
Modified:
8 years ago
CC:
chromium-reviews, pam+watch_chromium.org, darin-cc_chromium.org, Scott Hess - ex-Googler
Visibility:
Public.

Description

Fix PPAPI time conversion code to handle epoch times. This fixes the time conversion code to be able to correctly handle epoch times (e.g. when passing a PP_Time of 0). This eliminates the need to special-case for epoch time in other code. In practice the problem this fixes only manifests itself in test code. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173516

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -54 lines) Patch
M ppapi/ppapi_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/shared_impl/time_conversion.cc View 1 chunk +6 lines, -0 lines 0 comments Download
A + ppapi/shared_impl/time_conversion_unittest.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download
D webkit/plugins/ppapi/time_conversion_unittest.cc View 1 chunk +0 lines, -53 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
raymes
8 years ago (2012-12-13 18:21:59 UTC) #1
Scott Hess - ex-Googler
drive-by review: much better than what went before. https://codereview.chromium.org/11567013/diff/1/ppapi/shared_impl/time_conversion_unittest.cc File ppapi/shared_impl/time_conversion_unittest.cc (right): https://codereview.chromium.org/11567013/diff/1/ppapi/shared_impl/time_conversion_unittest.cc#newcode64 ppapi/shared_impl/time_conversion_unittest.cc:64: EXPECT_GE(kTimeSecondsSlop, ...
8 years ago (2012-12-13 18:35:24 UTC) #2
brettw
lgtm
8 years ago (2012-12-13 20:56:40 UTC) #3
raymes
https://codereview.chromium.org/11567013/diff/1/ppapi/shared_impl/time_conversion_unittest.cc File ppapi/shared_impl/time_conversion_unittest.cc (right): https://codereview.chromium.org/11567013/diff/1/ppapi/shared_impl/time_conversion_unittest.cc#newcode64 ppapi/shared_impl/time_conversion_unittest.cc:64: EXPECT_GE(kTimeSecondsSlop, fabs(converted_one_second_from_epoch - 1)); On 2012/12/13 18:35:24, shess wrote: ...
8 years ago (2012-12-14 17:28:22 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/11567013/2003
8 years ago (2012-12-14 17:30:34 UTC) #5
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-14 21:53:12 UTC) #6
commit-bot: I haz the power
8 years ago (2012-12-16 23:10:38 UTC) #7

Powered by Google App Engine
This is Rietveld 408576698