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

Issue 1178423008: Provision to start base::SimpleTestTickClock at initial ticks

Created:
5 years, 6 months ago by Ankur Verma
Modified:
4 years, 11 months ago
CC:
avayvod+watch_chromium.org, cbentzel+watch_chromium.org, cc-bugs_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, hclam+watch_chromium.org, hguihot+watch_chromium.org, hubbe+watch_chromium.org, imcheng+watch_chromium.org, jam, jasonroberts+watch_google.com, jbauman+watch_chromium.org, kalyank, miu+watch_chromium.org, nona+watch_chromium.org, penghuang+watch_chromium.org, piman+watch_chromium.org, scheduler-bugs_chromium.org, shuchen+watch_chromium.org, sievers+watch_chromium.org, James Su, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Provision to start base::SimpleTestTickClock at initial ticks This will let tests avoid a forced Advance(initial) before running. Cleaned up cc and components tests on this ideology. Updated all other call sites. BUG=494894 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added ctor to SimpleTestTickClock for specifying initial ticks #

Patch Set 3 : Rebased. #

Patch Set 4 : Removed the default ctor for SimpleTestTickClock. #

Total comments: 3

Patch Set 5 : Rebase only. Yet to rework review comments. #

Patch Set 6 : Removed the default ctor from SimpleTestTickClock. Updated all call sites. #

Patch Set 7 : Corrected clock initialization in H264VideoToolboxEncoderTest. Missed out earlier as its mac/ios on… #

Patch Set 8 : Rebased. Caters try bot failures. #

Patch Set 9 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -201 lines) Patch
M ash/shelf/shelf_button_pressed_metric_tracker_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -5 lines 0 comments Download
M ash/test/task_switch_time_tracker_test_api.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M base/test/simple_test_tick_clock.h View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M base/test/simple_test_tick_clock.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M cc/scheduler/begin_frame_source_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M cc/surfaces/display_scheduler_unittest.cc View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M cc/surfaces/surface_display_output_surface_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/test/ordered_simple_task_runner_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/data_usage/data_use_tab_model_unittest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/captive_portal/captive_portal_service_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/accessibility/touch_exploration_controller_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/power/peripheral_battery_observer_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/memory/tab_manager_web_contents_data_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sessions/session_restore_stats_collector_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/media/cast_ipc_dispatcher_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M components/copresence/handlers/audio/audio_directive_handler_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M components/copresence/timed_map_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M components/data_usage/android/traffic_stats_amortizer_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M components/memory_pressure/memory_pressure_stats_collector_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M components/metrics/profiler/tracking_synchronizer_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
M components/proximity_auth/bluetooth_throttler_impl_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -6 lines 0 comments Download
M components/proximity_auth/proximity_monitor_impl_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M components/scheduler/base/task_queue_manager_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M components/scheduler/base/time_domain_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M components/scheduler/child/idle_helper_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -4 lines 0 comments Download
M components/scheduler/child/scheduler_helper_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -4 lines 0 comments Download
M components/scheduler/child/worker_scheduler_impl_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -4 lines 0 comments Download
M components/scheduler/renderer/deadline_task_runner_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/scheduler/renderer/idle_time_estimator_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M components/scheduler/renderer/renderer_scheduler_impl_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -6 lines 0 comments Download
M components/scheduler/renderer/task_cost_estimator_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/scheduler/renderer/throttling_helper_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M components/scheduler/renderer/user_model_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M components/scheduler/renderer/web_view_scheduler_impl_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M components/scheduler/renderer/webthread_impl_for_renderer_scheduler_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/media/audio_stream_monitor_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -4 lines 0 comments Download
M content/browser/media/capture/cursor_renderer_aura_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/render_media_client_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/media/render_media_log_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M google_apis/gcm/engine/connection_factory_impl_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -4 lines 0 comments Download
M media/audio/win/audio_device_listener_win_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M media/base/null_video_sink_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M media/base/pipeline_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M media/base/time_delta_interpolator_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M media/base/wall_clock_time_source_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M media/blink/video_frame_compositor_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M media/cast/logging/encoding_event_subscriber_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M media/cast/logging/receiver_time_offset_estimator_impl_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M media/cast/logging/simple_event_subscriber_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M media/cast/logging/stats_event_subscriber_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M media/cast/net/cast_transport_sender_impl_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
M media/cast/net/pacing/paced_sender_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
M media/cast/net/rtcp/receiver_rtcp_event_subscriber_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M media/cast/net/rtcp/rtcp_builder_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +10 lines, -10 lines 0 comments Download
M media/cast/net/rtcp/rtcp_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M media/cast/net/rtcp/rtcp_utility_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -8 lines 0 comments Download
M media/cast/net/rtp/cast_message_builder_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -8 lines 0 comments Download
M media/cast/net/rtp/framer_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M media/cast/net/rtp/receiver_stats_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M media/cast/net/rtp/rtp_packetizer_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M media/cast/receiver/frame_receiver_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/sender/audio_encoder_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/sender/audio_sender_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/sender/congestion_control_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M media/cast/sender/h264_vt_encoder_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/sender/video_encoder_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M media/cast/sender/video_sender_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M media/cast/test/cast_benchmarks.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -4 lines 0 comments Download
M media/cast/test/end2end_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/test/simulator.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M media/filters/video_renderer_algorithm_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M media/renderers/audio_renderer_impl_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M media/renderers/renderer_impl_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M media/renderers/video_renderer_impl_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -4 lines 0 comments Download
M mojo/message_pump/handle_watcher_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M remoting/protocol/capture_scheduler_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ui/chromeos/touch_exploration_controller_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M ui/display/chromeos/x11/native_display_event_dispatcher_x11_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (6 generated)
Ankur Verma
Hello mithro & Sami, PTAL. This is a first cut, where we're advancing the SimpleTestTickClock ...
5 years, 6 months ago (2015-06-17 09:21:33 UTC) #2
mithro-old
I bumped this CL onto the try bots. Change is looking okay but we should ...
5 years, 6 months ago (2015-06-18 04:02:36 UTC) #3
Ankur Verma
On 2015/06/18 04:02:36, mithro wrote: > I bumped this CL onto the try bots. Change ...
5 years, 6 months ago (2015-06-18 05:13:17 UTC) #4
Sami
https://codereview.chromium.org/1178423008/diff/1/cc/scheduler/begin_frame_source_unittest.cc File cc/scheduler/begin_frame_source_unittest.cc (right): https://codereview.chromium.org/1178423008/diff/1/cc/scheduler/begin_frame_source_unittest.cc#newcode347 cc/scheduler/begin_frame_source_unittest.cc:347: now_src_->Advance(base::TimeDelta::FromMicroseconds(999)); It feels like having two constructor for SimpleTestTickClock ...
5 years, 6 months ago (2015-06-18 20:57:43 UTC) #5
Ankur Verma
On 2015/06/18 20:57:43, Sami wrote: > https://codereview.chromium.org/1178423008/diff/1/cc/scheduler/begin_frame_source_unittest.cc > File cc/scheduler/begin_frame_source_unittest.cc (right): > > https://codereview.chromium.org/1178423008/diff/1/cc/scheduler/begin_frame_source_unittest.cc#newcode347 > ...
5 years, 6 months ago (2015-06-20 03:57:53 UTC) #6
Ankur Verma
PTAL. @phajdan.jr Please check base/test. Added ctor to start SimpleTestTickClock at some initial ticks. This ...
5 years, 6 months ago (2015-06-22 13:40:36 UTC) #8
Ankur Verma
Pls note, none of the try bot failures are attributed to this change. PTAL. Thanks!
5 years, 6 months ago (2015-06-23 14:22:09 UTC) #9
mithro-old
Sorry about the delay, can you please upload a rebased version of this patch? @phajdan.jr ...
5 years, 5 months ago (2015-06-30 08:17:49 UTC) #10
Paweł Hajdan Jr.
It's still not clear to me why this patch is needed. If Advance is always ...
5 years, 5 months ago (2015-06-30 09:12:51 UTC) #11
Ankur Verma
Rebased. Please trigger try bots. @phajdan.jr - PTAL at base/test? Thanks! https://codereview.chromium.org/1178423008/diff/1/cc/scheduler/begin_frame_source_unittest.cc File cc/scheduler/begin_frame_source_unittest.cc (right): ...
5 years, 5 months ago (2015-06-30 09:19:26 UTC) #12
Ankur Verma
On 2015/06/30 09:12:51, Paweł Hajdan Jr. wrote: > It's still not clear to me why ...
5 years, 5 months ago (2015-06-30 09:40:13 UTC) #13
Ankur Verma
Sorry for missing out on the point of default ctor. We can probably remove the ...
5 years, 5 months ago (2015-06-30 10:10:25 UTC) #14
Ankur Verma
Updated change with removal of default ctor for SimpleTestTickClock. PTAL. Thanks!
5 years, 5 months ago (2015-06-30 10:31:45 UTC) #15
Paweł Hajdan Jr.
https://codereview.chromium.org/1178423008/diff/60001/base/test/simple_test_tick_clock.h File base/test/simple_test_tick_clock.h (right): https://codereview.chromium.org/1178423008/diff/60001/base/test/simple_test_tick_clock.h#newcode22 base/test/simple_test_tick_clock.h:22: SimpleTestTickClock(TimeTicks initial = TimeTicks()); Default arguments are prohibited, please ...
5 years, 5 months ago (2015-06-30 11:40:19 UTC) #16
Ankur Verma
@phajdan.jr The guideline mentions an exception for ctor's. Even if its still not acceptable, would ...
5 years, 5 months ago (2015-06-30 11:58:39 UTC) #17
Ankur Verma
Jumping back here. Ping! @phajdan.jr, Requesting your feedback on SimpleTestTickClock changes. Based on previous reviews, ...
5 years, 5 months ago (2015-07-15 05:18:17 UTC) #18
Paweł Hajdan Jr.
3. Remove the default ctor of SimpleTestTickClock and update all call-sites(~54) accordingly. sounds best to ...
5 years, 5 months ago (2015-07-15 17:36:59 UTC) #19
Ankur Verma
Thanks Pawel. I'll put up a patch soon enough. On 2015/07/15 17:36:59, Paweł Hajdan Jr. ...
5 years, 5 months ago (2015-07-16 04:20:21 UTC) #20
Ankur Verma
Apologies for a long lay-off on this. Have re-worked based on review comments. @phajdan.jr PTAL. ...
5 years ago (2015-12-18 14:24:16 UTC) #21
Ankur Verma
On 2015/12/18 14:24:16, Ankur Verma wrote: > Apologies for a long lay-off on this. Have ...
5 years ago (2015-12-18 14:29:07 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1178423008/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1178423008/140001
5 years ago (2015-12-20 03:24:55 UTC) #24
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years ago (2015-12-20 03:24:57 UTC) #26
Ankur Verma
4 years, 12 months ago (2015-12-24 09:54:59 UTC) #29
Ping!

@phajdan.jr
PTAL. As per your suggestion, the default ctor of SimpleTestTickClock is now
removed. All call sites have been updated. If you deem this fit for base/test, i
would get other OWNERS on board too.

The try-bot failures have been corrected in the Rebase patch.

@mithro
Request you to please triggers the bots again.

Powered by Google App Engine
This is Rietveld 408576698