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

Issue 444053004: cc: Prevent unit tests from using Now() as the impl frame time. (Closed)

Created:
6 years, 4 months ago by danakj
Modified:
6 years, 4 months ago
Reviewers:
jbedley, enne (OOO)
CC:
aelias_OOO_until_Jul13, cc-bugs_chromium.org, chromium-reviews, hush (inactive)
Project:
chromium
Visibility:
Public.

Description

cc: Prevent unit tests from using Now() as the impl frame time. Unit tests using FakeLayerTreeHostImpl should not use Now() as the frame time, as this is racey/problematic. For instance it may not change fast enough to let your test produce 2 outputs at different Now() times. Re-enable 2 tests that were failing because of this problem in the test harness. R=enne, jbedley BUG=393733 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288029

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -23 lines) Patch
M cc/layers/picture_layer_impl_unittest.cc View 8 chunks +18 lines, -23 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl.cc View 2 chunks +8 lines, -0 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
danakj
6 years, 4 months ago (2014-08-06 22:13:56 UTC) #1
enne (OOO)
lgtm https://codereview.chromium.org/444053004/diff/1/cc/test/fake_layer_tree_host_impl.cc File cc/test/fake_layer_tree_host_impl.cc (right): https://codereview.chromium.org/444053004/diff/1/cc/test/fake_layer_tree_host_impl.cc#newcode23 cc/test/fake_layer_tree_host_impl.cc:23: // Avoid using Now() as the frame time ...
6 years, 4 months ago (2014-08-06 23:49:38 UTC) #2
danakj
https://codereview.chromium.org/444053004/diff/1/cc/test/fake_layer_tree_host_impl.cc File cc/test/fake_layer_tree_host_impl.cc (right): https://codereview.chromium.org/444053004/diff/1/cc/test/fake_layer_tree_host_impl.cc#newcode23 cc/test/fake_layer_tree_host_impl.cc:23: // Avoid using Now() as the frame time in ...
6 years, 4 months ago (2014-08-07 03:36:11 UTC) #3
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 4 months ago (2014-08-07 03:36:19 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/444053004/1
6 years, 4 months ago (2014-08-07 03:37:38 UTC) #5
commit-bot: I haz the power
6 years, 4 months ago (2014-08-07 11:06:18 UTC) #6
Message was sent while issue was closed.
Change committed as 288029

Powered by Google App Engine
This is Rietveld 408576698