Migrate "base::TimeDelta::FromX" to "base:X".
All changes were done automatically with git grep, sed, xargs, etc.
No-Presubmit: true
No-Try: true
Bug: 1243777
Change-Id: I7cc197e9027f7837cd36afc67a209079f85ec364
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3198824
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Owners-Override: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#927512}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
1931425875
commit
e5a38eddbd
android_webview
browser
aw_contents.cc
component_updater
loader_policies
gfx
metrics
aw_metrics_service_client.ccaw_metrics_service_client_unittest.ccvisibility_metrics_logger.ccvisibility_metrics_logger.hvisibility_metrics_logger_unittest.cc
network_service
state_serializer_unittest.cccommon
renderer
ash
accelerators
accelerometer
accessibility
accessibility_controller_impl.cc
autoclick
chromevox
key_accessibility_enabler_unittest.ccspoken_feedback_enabler.cctouch_accessibility_enabler.cctouch_accessibility_enabler_unittest.cctouch_exploration_controller.cctouch_exploration_controller_unittest.cc
magnifier
sticky_keys
switch_access
test_accessibility_controller_client.hui
ambient
ambient_constants.hambient_controller.ccambient_controller_unittest.ccautotest_ambient_api_unittest.cc
model
test
ui
app_list
app_list_controller_impl.ccapp_list_controller_impl_unittest.ccapp_list_presenter_unittest.cc
views
app_drag_icon_proxy_unittest.ccapp_list_folder_view.ccapp_list_item_view.ccapp_list_view.ccapp_list_view_unittest.ccapps_grid_view.ccapps_grid_view_unittest.cc
assistant
assistant_dialog_plate.ccassistant_main_stage.ccassistant_main_view.ccassistant_page_view_unittest.cc
contents_view.ccexpand_arrow_view.ccghost_image_view.ccpaged_apps_grid_view.ccpaged_apps_grid_view_unittest.ccpulsing_block_view.ccscrollable_apps_grid_view.ccscrollable_apps_grid_view_unittest.ccsearch_result_list_view.ccsearch_result_page_view.ccsearch_result_tile_item_list_view.ccassistant
assistant_alarm_timer_controller_impl.ccassistant_alarm_timer_controller_unittest.ccassistant_notification_controller_impl_unittest.ccassistant_view_delegate_impl.cc
ui
main_stage
util
capture_mode
capture_label_view.cccapture_mode_controller.cccapture_mode_metrics.cccapture_mode_session.cccapture_mode_unittests.ccvideo_recording_watcher.cc
clipboard
clipboard_history.ccclipboard_history_controller_impl.ccclipboard_nudge_constants.hclipboard_nudge_controller_unittest.cc
views
components
audio
drivefs
drivefs_auth.ccdrivefs_auth_unittest.ccdrivefs_host_unittest.ccdrivefs_search.ccdrivefs_search_unittest.ccdrivefs_session.ccdrivefs_session_unittest.cc
power
quick_answers
smbfs
constants
controls
display
display_alignment_controller.ccdisplay_animator.ccdisplay_change_dialog.ccdisplay_configuration_controller.ccresolution_notification_controller_unittest.ccroot_window_transformers_unittest.ccshared_display_edge_indicator.cctouch_calibrator_controller.cctouch_calibrator_view.ccwindow_tree_host_manager.ccwindow_tree_host_manager_unittest.cc
drag_drop
fast_ink
frame
caption_buttons
frame_throttler
highlighter
hud_display
ime
in_session_auth
keyboard
lock_screen_action
login
login_screen_controller.cc
ui
arrow_button_view.cclock_contents_view_unittest.cclock_debug_view.cclock_screen_media_controls_view.cclock_screen_media_controls_view_unittest.cclogin_auth_user_view.cclogin_base_bubble_view.cclogin_password_view.cclogin_password_view_test.cclogin_pin_view.cclogin_public_account_user_view.cclogin_user_view.ccnote_action_launch_button_unittest.cc
media
metrics
demo_session_metrics_recorder.ccdemo_session_metrics_recorder_unittest.cclogin_unlock_throughput_recorder.ccpresentation_time_recorder_unittest.ccstylus_metrics_recorder_unittest.cctask_switch_time_tracker.cctask_switch_time_tracker_unittest.ccuser_metrics_recorder.cc
multi_user
policy
projector
public
cpp
quick_pair
pairing
repository
scanning
fast_pair
rotator
services
session
shelf
assistant_overlay.ccassistant_overlay_unittest.cccontextual_nudge_status_tracker.cccontextual_tooltip.hcontextual_tooltip_unittest.ccdrag_handle.ccdrag_window_from_shelf_controller.ccdrag_window_from_shelf_controller_unittest.cchome_button.cchome_button_controller.cchome_button_unittest.cchome_to_overview_nudge_controller.cchome_to_overview_nudge_controller_unittest.cchotseat_widget.cchotseat_widget_unittest.cclogin_shelf_gesture_controller.cclogin_shelf_gesture_controller_unittest.ccscrollable_shelf_constants.hscrollable_shelf_view_unittest.ccshelf.ccshelf_app_button.ccshelf_background_animator.ccshelf_button_pressed_metric_tracker_unittest.ccshelf_config.ccshelf_drag_handle_unittest.ccshelf_layout_manager.ccshelf_layout_manager_unittest.ccshelf_navigation_widget.ccshelf_tooltip_manager.ccshelf_tooltip_preview_bubble.ccshelf_view.ccshelf_view_unittest.ccswipe_home_to_overview_controller.ccswipe_home_to_overview_controller_unittest.cc
test
window_scale_animation.ccshortcut_viewer
system
accessibility
autoclick_menu_bubble_controller.ccautoclick_scroll_view.ccfloating_accessibility_controller.ccfloating_accessibility_detailed_controller.cc
bluetooth
bluetooth_power_controller.cctray_bluetooth_helper.ccunified_bluetooth_detailed_view_controller_unittest.cc
holding_space
holding_space_item_chip_view.ccholding_space_item_views_section.ccholding_space_progress_ring_indeterminate_animation.ccholding_space_progress_ring_pulse_animation.ccholding_space_tray.ccholding_space_tray_bubble.ccholding_space_tray_child_bubble.ccholding_space_tray_icon.ccholding_space_tray_icon_preview.cc
machine_learning
media
message_center
ash_notification_view_unittest.ccmessage_center_ui_controller.ccnotification_grouping_controller.ccsession_state_notification_blocker.ccstacked_notification_bar.ccunified_message_center_view.ccunified_message_list_view.ccunified_message_list_view_unittest.cc
model
nearby_share
network
active_network_icon.ccauto_connect_notifier.cccellular_setup_notifier.ccnetwork_icon_animation.ccnetwork_section_header_view.ccnetwork_state_list_detailed_view.cctray_network_state_model.cc
night_light
overview
palette
phonehub
locate_phone_quick_action_controller.ccphone_hub_notification_controller.ccphone_hub_notification_controller_unittest.ccphone_hub_tray.ccphone_hub_tray_unittest.ccphone_hub_ui_controller.ccphone_hub_ui_controller_unittest.ccquick_actions_view_unittest.ccsilence_phone_quick_action_controller.cc
power
peripheral_battery_listener.ccperipheral_battery_listener_unittest.ccperipheral_battery_notifier.ccperipheral_battery_notifier_listener_integration_test.ccperipheral_battery_notifier_unittest.ccpower_button_controller.ccpower_button_controller.hpower_button_controller_unittest.ccpower_button_menu_view.hpower_button_screenshot_controller.hpower_button_screenshot_controller_unittest.ccpower_button_test_base.ccpower_notification_controller.ccpower_prefs_unittest.ccpower_status.ccpower_status_unittest.ccvideo_activity_notifier.cc
privacy_screen
session
logout_button_tray.cclogout_confirmation_controller.cclogout_confirmation_controller_unittest.cclogout_confirmation_dialog.ccsession_limit_notification_controller.ccsession_limit_notification_controller_unittest.cc
status_area_widget.cctime
toast
tray
status_area_overflow_button_tray.ccsystem_nudge.ccsystem_nudge_controller.cctray_background_view.cctray_background_view_unittest.cctray_item_view.cc
unified
touch
utility
wallpaper
webui
diagnostics_ui
backend
telemetry_extension_ui
wm
desks
desk.ccdesk_animation_impl.ccdesk_drag_proxy.ccdesk_mini_view_animations.ccdesks_animations.ccdesks_bar_view.ccdesks_controller.ccdesks_restore_util.ccdesks_unittests.ccroot_window_desk_switch_animator.ccscroll_arrow_button.cc
gestures
back_gesture
back_gesture_affordance.ccback_gesture_contextual_nudge.ccback_gesture_contextual_nudge_controller_impl_unittest.ccback_gesture_event_handler_unittest.cc
wm_gesture_handler.ccwm_gesture_handler_unittest.ccoverview
cleanup_animation_observer_unittest.ccdelayed_animation_observer_impl_unittest.ccoverview_constants.hoverview_controller.ccoverview_controller_unittest.ccoverview_grid.ccoverview_item_view.ccoverview_session_unittest.ccoverview_test_base.ccoverview_wallpaper_controller.ccoverview_window_drag_controller.ccoverview_window_drag_histogram_unittests.ccscoped_overview_animation_settings.ccscoped_overview_transform_window.cc
pip
resize_shadow.ccresize_shadow_and_cursor_unittest.ccsession_state_animator.ccsplitview
split_view_constants.hsplit_view_controller.ccsplit_view_controller_unittest.ccsplit_view_metrics_controller.ccsplit_view_utils.cc
tablet_mode
tablet_mode_controller.cctablet_mode_controller_unittest.cctablet_mode_toggle_fullscreen_event_handler_unittest.cctablet_mode_window_drag_delegate.cctablet_mode_window_state.cc
toplevel_window_event_handler_unittest.ccvideo_detector.ccwindow_animations.ccwindow_animations_unittest.ccwindow_cycle
window_cycle_controller_unittest.ccwindow_cycle_event_filter.ccwindow_cycle_list.ccwindow_cycle_tab_slider.ccwindow_cycle_view.cc
window_dimmer.ccwindow_positioner.ccwindow_restore
window_state.ccwindow_state.hwindow_state_unittest.ccworkspace
multi_window_resize_controller.ccphantom_window_controller.ccworkspace_window_resizer.ccworkspace_window_resizer_unittest.cc
workspace_controller.ccbase
allocator
android
debug
files
i18n
lazy_instance_unittest.ccmessage_loop
metrics
process
sync_socket_unittest.ccsync_socket_win.ccsystem
task
sequence_manager
thread_pool
test
ios
launcher
metrics
spin_wait.htask_runner_test_template.htest_future_unittest.cctest_pending_task_unittest.cctest_reg_util_win.cctest_reg_util_win_unittest.cctest_timeouts.cctrace_event_analyzer_unittest.ccthreading
hang_watcher.cchang_watcher.hhang_watcher_unittest.ccplatform_thread_mac.mmplatform_thread_win_unittest.ccthread_collision_warner_unittest.ccthread_unittest.cc
time
timer
trace_event
tracing
cc
animation
animation_host_unittest.ccanimation_unittest.ccelement_animations_unittest.ccfilter_animation_curve_unittest.cckeyframe_model_unittest.ccscroll_offset_animation_curve.ccscroll_offset_animation_curve_unittest.ccscroll_timeline.ccworklet_animation_unittest.cc
base
delayed_unique_notifier_unittest.ccdevtools_instrumentation.hhistograms.ccrolling_time_delta_history_unittest.ccrtree_perftest.cc
benchmarks
debug
input
browser_controls_offset_manager.ccbrowser_controls_offset_manager_unittest.ccscrollbar.hscrollbar_animation_controller_unittest.ccsingle_scrollbar_animation_controller_thinning_unittest.ccsnap_fling_controller_unittest.ccsnap_fling_curve.cc
layers
layer_perftest.ccpicture_layer_impl_perftest.ccpicture_layer_impl_unittest.ccscrollbar_layer_unittest.ccsurface_layer_impl_unittest.ccviewport.cc
metrics
average_lag_tracker.ccaverage_lag_tracker_unittest.ccaverage_lag_tracking_manager_unittest.cccompositor_frame_reporter.cccompositor_frame_reporter_unittest.cccompositor_frame_reporting_controller.cccompositor_frame_reporting_controller_unittest.cccompositor_timing_history.cccompositor_timing_history_unittest.ccdropped_frame_counter.ccdropped_frame_counter.hdropped_frame_counter_unittest.ccevents_metrics_manager_unittest.ccframe_sequence_tracker.ccframe_sequence_tracker.hframe_sequence_tracker_unittest.ccjank_injector_unittest.ccjank_metrics.ccjank_metrics_unittest.cclcd_text_metrics_reporter.cctotal_frame_counter_unittest.ccukm_smoothness_data.hvideo_playback_roughness_reporter.ccvideo_playback_roughness_reporter_unittest.cc
paint
raster
playback_image_provider_unittest.ccraster_buffer_provider_perftest.ccraster_query_queue.ccstaging_buffer_pool.cctask_graph_runner_perftest.cc
resources
scheduler
test
animation_test_common.ccfake_compositor_frame_reporting_controller.ccfake_layer_tree_host_impl.cclayer_tree_test.cctest_layer_tree_frame_sink.cc
tiles
decoded_image_tracker.ccdecoded_image_tracker_unittest.ccgpu_image_decode_cache_perftest.ccgpu_image_decode_cache_unittest.ccimage_controller_unittest.ccsoftware_image_decode_cache_perftest.ccsoftware_image_decode_cache_unittest.cctile_manager.cctile_manager_perftest.cctile_manager_unittest.cc
trees
draw_properties_unittest.ccdraw_property_utils_perftest.ccframe_rate_estimator.ccframe_rate_estimator_unittest.ccimage_animation_controller.ccimage_animation_controller_unittest.cclayer_tree_host_impl.cclayer_tree_host_impl_unittest.cclayer_tree_host_perftest.cclayer_tree_host_unittest.cclayer_tree_host_unittest_animation.cclayer_tree_host_unittest_context.cclayer_tree_host_unittest_proxy.ccproperty_tree_builder_unittest.ccproxy_impl.ccukm_manager_unittest.cc
chrome
app_shim
browser
accessibility
after_startup_task_utils.ccandroid
autofill_assistant
bottombar
chrome_power_mode_voter.cccookies
explore_sites
explore_sites_fetcher_unittest.cchistory_statistics_reporter.cchistory_statistics_reporter.hhistory_statistics_reporter_unittest.cc
feed
feedback
metrics
android_session_durations_service.ccandroid_session_durations_service_unittest.ccuma_session_stats.cc
omnibox
oom_intervention
search_permissions
send_tab_to_self
survey
usage_stats
vr
webapk
apps
app_discovery_service
remote_url_search
app_service
app_platform_metrics.ccapp_platform_metrics_service.ccapp_platform_metrics_service_unittest.ccapp_service_metrics.ccnotifications_browsertest.cc
webapk
guest_view
intent_helper
platform_apps
ash
accessibility
dictation.ccdictation_browsertest.ccmagnification_controller_browsertest.ccspeech_monitor.ccspoken_feedback_browsertest.cctouch_exploration_controller_browsertest.cc
account_manager
android_sms
app_mode
arc
kiosk_app_manager.cckiosk_app_update_service.cckiosk_app_update_service_browsertest.cckiosk_mode_idle_app_name_notification.cckiosk_profile_loader.ccstartup_app_launcher.ccapp_restore
arc_app_launch_handler.ccarc_app_launch_handler.harc_ghost_window_view.ccfull_restore_app_launch_handler_browsertest.cc
arc
arc_optin_uma.cc
auth
bluetooth
boot_phase_monitor
file_system_watcher
fileapi
input_method_manager
instance_throttle
nearby_share
policy
print_spooler
process
session
tracing
attestation
enrollment_certificate_uploader_impl.ccenrollment_id_upload_manager.ccfake_certificate.ccmachine_certificate_uploader_impl.ccmachine_certificate_uploader_impl_unittest.ccplatform_verification_flow.ccplatform_verification_flow_unittest.cctpm_challenge_key_subtle_unittest.cc
authpolicy
bluetooth
borealis
borealis_context.ccborealis_installer_impl.ccborealis_installer_unittest.ccborealis_launch_watcher.hborealis_launch_watcher_unittest.ccborealis_shutdown_monitor.ccborealis_shutdown_monitor_unittest.ccborealis_task_unittest.cc
camera_mic
cert_provisioning
cert_provisioning_common.cccert_provisioning_common.hcert_provisioning_metrics.cccert_provisioning_platform_keys_helpers_unittest.cccert_provisioning_scheduler.cccert_provisioning_serializer.cccert_provisioning_test_helpers.cccert_provisioning_worker.cccert_provisioning_worker_unittest.cc
certificate_provider
child_accounts
child_status_reporting_service.ccchild_user_service_unittest.ccfamily_user_app_metrics.ccfamily_user_app_metrics_unittest.ccfamily_user_chrome_activity_metrics.ccfamily_user_chrome_activity_metrics_unittest.ccfamily_user_metrics_service.ccfamily_user_metrics_service_unittest.ccfamily_user_parental_control_metrics_unittest.ccfamily_user_session_metrics.ccfamily_user_session_metrics_unittest.cc
parent_access_code
screen_time_controller.ccscreen_time_controller_browsertest.ccsecondary_account_consent_logger_unittest.cctime_limit_consistency_test
time_limit_notifier.cctime_limit_notifier_unittest.cctime_limit_override.cctime_limit_test_utils.cctime_limits
app_activity_registry.ccapp_activity_registry_unittest.ccapp_time_browsertest.ccapp_time_controller.ccapp_time_controller.happ_time_controller_unittest.ccapp_time_policy_helpers.ccapp_types.ccapp_types_unittest.ccpersisted_app_info.ccpersisted_app_info_unittest.ccweb_time_limit_enforcer_browsertest.cc
usage_time_limit_processor.ccusage_time_limit_processor_unittest.cccrosapi
crostini
crostini_force_close_watcher.cccrostini_force_close_watcher_unittest.cccrostini_installer.cccrostini_installer_unittest.cccrostini_low_disk_notification.cccrostini_low_disk_notification_unittest.cccrostini_manager.cccrostini_manager_unittest.cccrostini_reporting_util.cccrostini_reporting_util_unittest.cccrostini_util.cccrosvm_metrics.cctermina_installer.cctermina_installer_unittest.cc
customization
customization_document.cccustomization_wallpaper_downloader.cccustomization_wallpaper_downloader_browsertest.cc
device_name
drive
file_system_provider
first_run
guest_os
hats
input_method
grammar_manager.ccgrammar_manager_unittest.ccime_service_connector.ccnative_input_method_engine.ccpersonal_info_suggester_unittest.cctextinput_test_helper.cc
ui
kerberos
lock_screen_apps
login
app_mode
challenge_response_auth_keys_loader.ccchrome_restart_request.ccdemo_mode
demo_mode_detector.ccdemo_mode_detector_unittest.ccdemo_mode_resources_remover.ccdemo_mode_resources_remover_unittest.ccdemo_session.ccdemo_setup_browsertest.cc
easy_unlock
enrollment
enterprise_user_session_metrics.ccenterprise_user_session_metrics_unittest.ccerror_screen_browsertest.ccerror_screens_histogram_helper.ccerror_screens_histogram_helper_unittest.ccexisting_user_controller.ccexisting_user_controller_browsertest.ccexisting_user_controller_forced_online_auth_unittest.cclock
login_constants.honboarding_user_activity_counter.cconboarding_user_activity_counter_unittest.ccquick_unlock
reset_browsertest.ccsaml
in_session_password_change_manager.ccin_session_password_change_manager_unittest.ccin_session_password_sync_manager_unittest.ccpassword_expiry_notification.ccpassword_expiry_notification_unittest.ccpassword_sync_token_login_checker.ccpassword_sync_token_login_checker_unittest.ccpassword_sync_token_verifier_unittest.ccsaml_browsertest.cc
screens
chromevox_hint
encryption_migration_screen.cclocale_switch_screen.ccnetwork_screen.ccoffline_login_screen.ccos_install_screen.ccos_install_screen_browsertest.ccpin_setup_screen.ccrecommend_apps
reset_screen.ccsync_consent_screen.ccterms_of_service_screen.ccupdate_required_screen.ccupdate_required_screen_browsertest.ccupdate_required_screen_unittest.ccupdate_screen.ccupdate_screen_browsertest.ccuser_selection_screen.ccuser_selection_screen_browsertest.ccsession
signin
merge_session_navigation_throttle.ccoauth2_browsertest.ccoauth2_token_fetcher.ccoffline_signin_limiter.ccoffline_signin_limiter_unittest.cctoken_handle_util.cc
test
ui
user_online_signin_notifier_unittest.ccusers
version_updater
update_time_estimator.ccupdate_time_estimator_unittest.ccversion_updater.ccversion_updater_unittest.cc
wizard_controller.ccwizard_controller_browsertest.ccmobile
nearby
net
network_diagnostics
arc_ping_routine.ccdns_latency_routine.ccdns_latency_routine_unittest.ccgateway_can_be_pinged_routine.cchttp_request_manager_unittest.cchttps_latency_routine.cchttps_latency_routine_unittest.ccudp_prober_unittest.ccvideo_conferencing_routine.cc
network_health
network_portal_detector_impl.ccnetwork_portal_detector_impl_unittest.ccnight_light
notifications
gnubby_notification.ccidle_app_name_notification_view.cclow_disk_notification.cclow_disk_notification_unittest.ccupdate_required_notification_unittest.cc
policy
active_directory
core
device_cloud_policy_manager_ash.ccpolicy_oauth2_token_fetcher.ccuser_cloud_policy_manager_ash_unittest.ccuser_cloud_policy_token_forwarder_unittest.ccuser_policy_manager_builder_ash.cc
dlp
enrollment
handlers
adb_sideloading_allowance_mode_policy_handler.ccadb_sideloading_allowance_mode_policy_handler_unittest.ccextension_cache_unittest.ccminimum_version_policy_handler.ccminimum_version_policy_handler_browsertest.ccminimum_version_policy_handler_unittest.cctpm_auto_update_mode_policy_handler.cctpm_auto_update_mode_policy_handler_unittest.cc
invalidation
off_hours
remote_commands
crd_host_delegate_unittest.ccdevice_command_get_available_routines_job_unittest.ccdevice_command_get_routine_update_job_unittest.ccdevice_command_remote_powerwash_job.ccdevice_command_remote_powerwash_job_unittest.ccdevice_command_run_routine_job.ccdevice_command_run_routine_job_unittest.ccdevice_command_set_volume_job_unittest.ccdevice_command_start_crd_session_job.ccdevice_command_start_crd_session_unittest.ccdevice_command_wipe_users_job.ccdevice_command_wipe_users_job_unittest.ccuser_command_arc_job.cc
reporting
arc_app_install_event_log_collector_unittest.ccarc_app_install_event_log_manager_unittest.ccarc_app_install_event_log_uploader.ccarc_app_install_event_log_uploader_unittest.ccextension_install_event_log_manager_unittest.ccextension_install_event_log_uploader.ccextension_install_event_log_uploader_unittest.ccinstall_event_log_manager.ccinstall_event_log_util.cc
rsu
scheduled_task_handler
device_scheduled_update_checker.hos_and_policies_update_checker.hscheduled_task_executor_impl.cc
test
server_backed_state
status_collector
activity_storage.ccactivity_storage.hactivity_storage_unittest.ccapp_info_generator.ccapp_info_generator_unittest.ccchild_activity_storage.ccchild_status_collector.ccdevice_status_collector.ccdevice_status_collector.hdevice_status_collector_browsertest.ccenterprise_activity_storage.cclegacy_device_status_collector.cclegacy_device_status_collector.hlegacy_device_status_collector_browsertest.ccmanaged_session_service.ccmanaged_session_service_unittest.cc
uploading
power
auto_screen_brightness
adapter.ccadapter.hadapter_unittest.ccals_file_reader.hals_samples_unittest.ccbrightness_monitor_impl.ccbrightness_monitor_impl.hlight_provider_mojo.ccmetrics_reporter.ccmodeller_impl.ccmodeller_impl.hmodeller_impl_unittest.cc
cpu_data_collector.ccextension_event_observer.ccidle_action_warning_dialog_view.ccml
adaptive_screen_brightness_manager.ccadaptive_screen_brightness_manager.hadaptive_screen_brightness_manager_unittest.ccboot_clock.ccboot_clock_unittest.ccidle_event_notifier.hidle_event_notifier_unittest.ccrecent_events_counter_unittest.ccuser_activity_manager.ccuser_activity_manager_unittest.cc
power_data_collector.hpower_data_collector_unittest.ccpower_metrics_reporter.ccprocess_data_collector.ccsmart_charging
printing
secure_channel
settings
smb_client
system
automatic_reboot_manager.ccautomatic_reboot_manager_unittest.ccdevice_disabling_browsertest.ccuser_removal_manager.ccuser_removal_manager_unittest.cc
tether
web_applications
wilco_dtc_supportd
autocomplete
autofill
autofill_autocomplete_browsertest.ccautofill_captured_sites_interactive_uitest.ccautofill_interactive_uitest.ccautofill_uitest.ccautofill_uitest.hcaptured_sites_test_utils.cccaptured_sites_test_utils.h
availability
availability_prober.ccavailability_prober.havailability_prober_browsertest.ccavailability_prober_unittest.cc
background
background_sync
badging
bitmap_fetcher
bookmarks
browser_process_impl.ccbrowser_process_platform_part_chromeos.ccbrowser_switcher
browsing_data
access_context_audit_browsertest.ccaccess_context_audit_database_unittest.ccaccess_context_audit_service_unittest.ccbrowsing_data_history_observer_service_unittest.ccbrowsing_data_media_license_helper_unittest.ccbrowsing_data_remover_browsertest.ccchrome_browsing_data_lifetime_manager.ccchrome_browsing_data_lifetime_manager_unittest.ccchrome_browsing_data_remover_delegate.ccchrome_browsing_data_remover_delegate_unittest.cc
counters
autofill_counter_browsertest.ccbookmark_counter_unittest.cccache_counter_browsertest.ccconditional_cache_counting_helper_browsertest.ccdownloads_counter_browsertest.cchistory_counter_browsertest.ccpasswords_counter_browsertest.ccsite_data_counting_helper_unittest.ccsite_settings_counter_unittest.cc
mock_browsing_data_media_license_helper.cccaptive_portal
cart
chrome_browser_main.ccchrome_browser_main_android.ccchrome_browser_main_win.ccchrome_content_browser_client.ccchrome_content_browser_client_browsertest.ccchrome_web_platform_security_metrics_browsertest.ccchromeos
app_mode
camera_presence_notifier.cceol_notification.ccextensions
autotest_private
file_manager
device_event_router.ccdevice_event_router_unittest.cclogged_extension_function.ccprivate_api_drive.ccprivate_api_misc.ccprivate_api_thumbnail.cc
install_limiter.ccwallpaper_private_api.ccfileapi
platform_keys
key_permissions
printing
cups_print_job_manager_impl.cccups_print_job_manager_utils.cccups_print_job_notification.cccups_printers_manager.cc
process_snapshot_server_unittest.ccsession_length_limiter.ccsession_length_limiter_unittest.ccsystem_token_cert_db_initializer.ccsystem_token_cert_db_initializer.hsystem_token_cert_db_initializer_unittest.cctpm_firmware_update_unittest.cchistory
client_hints
commerce
merchant_viewer
component_updater
pki_metadata_component_installer.ccrecovery_component_installer.ccrecovery_improved_component_installer.ccrecovery_improved_component_installer_win.ccrecovery_improved_component_unittest.ccsw_reporter_installer_win.cc
content_settings
content_settings_origin_identifier_value_map_unittest.cccontent_settings_pref_provider_unittest.cchost_content_settings_map_unittest.ccone_time_geolocation_permission_provider.ccpage_specific_content_settings_unittest.cc
custom_handlers
data_reduction_proxy
data_saver
dbus_memory_pressure_evaluator_linux.ccdevice_api
device_reauth
devtools
device
devtools_browsertest.ccdevtools_eye_dropper.ccdevtools_file_watcher.ccdevtools_interactive_browsertest.ccdevtools_targets_ui.ccdevtools_ui_bindings.ccdom_distiller
download
android
download_history_unittest.ccdownload_item_model_unittest.ccdownload_offline_content_provider.ccdownload_shelf.ccdownload_target_determiner_unittest.ccoffline_item_model.ccoffline_item_utils_unittest.ccendpoint_fetcher
engagement
history_aware_site_engagement_service.ccimportant_sites_util.ccsite_engagement_helper_browsertest.ccsite_engagement_service_unittest.cc
enterprise
connectors
analysis
device_trust
attestation
file_system
reporting
extension_request
report_scheduler_unittest.ccutil
error_reporting
chrome_js_error_report_processor.ccchrome_js_error_report_processor_chromeos.ccchrome_js_error_report_processor_unittest.ccmock_chrome_js_error_report_processor.cc
extensions
activity_log
activity_database.ccactivity_log_policy.ccactivity_log_unittest.cccounting_policy.cccounting_policy_unittest.ccfullstream_ui_policy_unittest.cc
api
braille_display_private
certificate_provider
debugger
declarative_net_request
downloads
extension_action
identity
identity_apitest.ccidentity_get_auth_token_function.ccidentity_token_cache.ccidentity_token_cache_unittest.cc
messaging
passwords_private
password_check_delegate.ccpassword_check_delegate_unittest.ccpasswords_private_delegate_impl.cctest_passwords_private_delegate.cc
printing
processes
runtime
safe_browsing_private
sessions
socket
tab_capture
tabs
terminal
web_request
webrtc_audio_private
webrtc_logging_private
forced_extensions
test_extension_prefs.ccupdater
chromeos_extension_cache_delegate.ccextension_updater.ccextension_updater_unittest.cclocal_extension_cache.cclocal_extension_cache_unittest.cc
webstore_installer.ccwindow_open_apitest.cczipfile_installer_unittest.ccfavicon
federated_learning
floc_event_logger.ccfloc_event_logger_unittest.ccfloc_id_provider_impl.ccfloc_id_provider_unittest.ccfloc_internals_browsertest.cc
feedback
system_logs
log_sources
file_system_access
chrome_file_system_access_permission_context.ccchrome_file_system_access_permission_context.hchrome_file_system_access_permission_context_unittest.cc
google
google_search_domain_mixing_metrics_emitter.ccgoogle_search_domain_mixing_metrics_emitter_unittest.ccgoogle_update_win.cc
history_clusters
idle
idle_browsertest.ccidle_detection_permission_context.ccidle_detection_permission_context_unittest.cc
importer
interest_group
internal_auth_unittest.ccintranet_redirect_detector.cclacros
browser_test_util.ccclipboard_lacros_browsertest.ccdownload_controller_client_lacros_browsertest.cclacros_extension_apps_controller_lacros_browsertest.cclacros_memory_pressure_evaluator.ccpopup_lacros_browsertest.ccscreen_manager_lacros_browsertest.ccweb_contents_can_go_back_observer_browsertest.cc
lifetime
lite_video
lite_video_decider_unittest.cclite_video_features.cclite_video_hint.cclite_video_hint_unittest.cclite_video_user_blocklist_unittest.cc
local_discovery
local_domain_resolver_unittest.ccservice_discovery_client_impl.ccservice_discovery_client_mdns.ccservice_discovery_client_unittest.cc
lookalikes
mac
media
android
cdm
history
media_history_browsertest.ccmedia_history_keyed_service_unittest.ccmedia_history_origin_table.ccmedia_history_playback_table.ccmedia_history_session_table.ccmedia_history_store.ccmedia_history_store_unittest.cc
media_engagement_browsertest.ccmedia_engagement_contents_observer.ccmedia_engagement_contents_observer_unittest.ccmedia_engagement_score_unittest.ccmedia_engagement_service_unittest.ccmedia_engagement_session_unittest.ccoffscreen_tab.ccrouter
discovery
mojo
providers
cast
cast_app_discovery_service.cccast_app_discovery_service_unittest.cccast_media_controller.cccast_media_controller_unittest.cccast_media_route_provider_metrics_unittest.cccast_media_route_provider_unittest.cc
test
wired_display
test
webrtc
conditional_focus_browsertest.cccurrent_tab_desktop_media_list.cccurrent_tab_desktop_media_list_unittest.ccdesktop_media_list_ash.ccdesktop_media_list_ash_unittest.ccmedia_stream_focus_delegate.ccnative_desktop_media_list.ccnative_desktop_media_list_unittest.ccsystem_media_capture_permissions_stats_mac.mmtab_desktop_media_list.cctab_desktop_media_list_unittest.ccwebrtc_event_log_history.ccwebrtc_event_log_manager_remote.ccwebrtc_event_log_manager_unittest.cc
media_galleries
memory
memory_ablation_study.ccmemory_ablation_study_unittest.ccmemory_kills_histogram.hmemory_kills_monitor.cc
metrics
antivirus_metrics_provider_win.ccchrome_browser_main_extra_parts_metrics.ccchrome_metrics_service_client.cccros_healthd_metrics_provider.cccros_healthd_metrics_provider_unittest.cc
desktop_session_duration
chrome_visibility_observer.ccdesktop_session_duration_tracker.ccdesktop_session_duration_tracker_unittest.cctouch_mode_stats_tracker_unittest.cc
extensions_metrics_provider_unittest.ccoom
perf
collection_params.ccmetric_collector.ccmetric_collector_unittest.ccmetric_provider_unittest.ccperf_events_collector.ccperf_events_collector_unittest.ccperf_output_unittest.ccprofile_provider_chromeos.ccprofile_provider_chromeos_unittest.ccprofile_provider_unittest_main.cc
plugin_metrics_provider.ccpower
process_memory_metrics_emitter_unittest.ccstructured
tab_stats
thread_watcher.ccthread_watcher.hthread_watcher_android_unittest.ccthread_watcher_unittest.ccusage_scenario
navigation_predictor
navigation_predictor_keyed_service.ccnavigation_predictor_preconnect_client.ccsearch_engine_preconnector.ccsearch_engine_preconnector_browsertest.cc
nearby_sharing
bluetooth_advertising_interval_client.cc
certificates
common.cccommon_unittest.ccconstants.ccnearby_share_certificate_manager_impl.ccnearby_share_certificate_manager_impl_unittest.ccnearby_share_certificate_storage_impl.ccnearby_share_certificate_storage_impl_unittest.ccnearby_share_private_certificate.cctest_util.cc
constants.hcontacts
nearby_share_contact_downloader_impl_unittest.ccnearby_share_contact_manager_impl.ccnearby_share_contact_manager_impl_unittest.cc
fast_initiation
incoming_frames_reader_unittest.ccinstantmessaging
local_device_data
nearby_share_device_data_updater_impl_unittest.ccnearby_share_local_device_data_manager_impl.ccnearby_share_local_device_data_manager_impl_unittest.cc
nearby_notification_manager.hnearby_share_delegate_impl.ccnearby_share_delegate_impl_unittest.ccnearby_sharing_service_impl.ccnearby_sharing_service_impl_unittest.ccpaired_key_verification_runner_unittest.ccscheduling
nearby_share_expiration_scheduler.ccnearby_share_expiration_scheduler_unittest.ccnearby_share_periodic_scheduler.ccnearby_share_periodic_scheduler_unittest.ccnearby_share_scheduler_base.ccnearby_share_scheduler_base_unittest.cc
tachyon_ice_config_fetcher.cctachyon_ice_config_fetcher_unittest.ccnet
cert_verify_proc_browsertest.ccchrome_mojo_proxy_resolver_factory_browsertest.ccchrome_network_service_browsertest.ccdns_probe_service_factory.ccdns_probe_service_factory_unittest.ccnetinfo_network_quality_estimator_holdback_browsertest.ccnetwork_context_configuration_browsertest.ccnetwork_quality_netinfo_browsertest.ccnetwork_quality_tracker_browsertest.ccnetwork_request_metrics_browsertest.ccprofile_network_context_service.ccprofile_network_context_service_browsertest.ccreporting_browsertest.ccstub_resolver_config_reader.hsystem_network_context_manager_browsertest.cc
new_tab_page
modules
drive
photos
task_module
promos
notifications
fullscreen_notification_blocker.ccnotification_channels_provider_android_unittest.ccnotification_dispatcher_mojo.ccnotification_dispatcher_mojo_unittest.ccnotification_permission_context.ccnotification_permission_context_unittest.ccnotification_platform_bridge_win.ccnotification_trigger_scheduler_unittest.ccplatform_notification_service_unittest.ccscreen_capture_notification_blocker_unittest.ccscreen_lock_notification_blocker.cc
scheduler
internal
background_task_coordinator.ccbackground_task_coordinator_unittest.ccdisplay_decider_unittest.ccimpression_history_tracker_unittest.ccproto_conversion.ccproto_conversion_unittest.ccscheduled_notification_manager_unittest.ccscheduler_config.ccscheduler_utils_unittest.cc
notification_schedule_service_browsertest.ccpublic
offline_pages
android
evaluation
prefetch
recent_tab_helper_unittest.ccoptimization_guide
page_load_metrics
integration_tests
observers
aborts_page_load_metrics_observer_unittest.cc
ad_metrics
android_page_load_metrics_observer_unittest.cccore
amp_page_load_metrics_observer.ccamp_page_load_metrics_observer_unittest.ccukm_page_load_metrics_observer.ccukm_page_load_metrics_observer_unittest.cc
document_write_page_load_metrics_observer_unittest.ccfrom_gws_page_load_metrics_observer.ccfrom_gws_page_load_metrics_observer_unittest.cclive_tab_count_page_load_metrics_observer.cclive_tab_count_page_load_metrics_observer_unittest.ccloading_predictor_page_load_metrics_observer_unittest.ccmedia_page_load_metrics_observer_unittest.ccmulti_tab_loading_page_load_metrics_observer_unittest.ccprefetch_proxy_page_load_metrics_observer_unittest.ccprotocol_page_load_metrics_observer_unittest.ccscheme_page_load_metrics_observer.ccscheme_page_load_metrics_observer_unittest.ccsecurity_state_page_load_metrics_observer.ccsecurity_state_page_load_metrics_observer_browsertest.ccservice_worker_page_load_metrics_observer.ccservice_worker_page_load_metrics_observer_unittest.ccsession_restore_page_load_metrics_observer_unittest.ccsigned_exchange_page_load_metrics_observer.ccsigned_exchange_page_load_metrics_observer_unittest.cctab_restore_page_load_metrics_observer_unittest.ccthird_party_metrics_observer_unittest.ccpaint_preview
services
password_manager
account_password_store_factory.ccpassword_manager_captured_sites_interactive_uitest.ccpassword_manager_test_base.ccpassword_manager_util_win.ccpassword_store_factory.ccpassword_store_utils.cc
performance_manager
mechanisms
observers
background_metrics_reporter.hisolation_context_metrics.hisolation_context_metrics_unittest.ccmetrics_collector.ccmetrics_collector_unittest.cc
policies
background_tab_loading_policy.hbackground_tab_loading_policy_helpers_unittest.ccbackground_tab_loading_policy_unittest.ccbfcache_policy_browsertest.ccdynamic_tcmalloc_policy_chromeos.ccdynamic_tcmalloc_policy_chromeos_unittest.ccpage_discarding_helper.ccpage_discarding_helper_unittest.ccpage_freezing_policy.ccpolicy_features.ccuserspace_swap_policy_chromeos.ccuserspace_swap_policy_chromeos_unittest.ccworking_set_trimmer_policy_arcvm_unittest.ccworking_set_trimmer_policy_chromeos.ccworking_set_trimmer_policy_chromeos_unittest.cc
test_support
performance_monitor
permissions
chrome_permission_request_manager_unittest.cccrowd_deny_safe_browsing_request.cccrowd_deny_safe_browsing_request_unittest.ccpermission_actions_history.ccpermission_actions_history_unittest.ccprediction_based_permission_ui_selector.ccquiet_notification_permission_ui_config.cc
policy
cloud
cloud_policy_invalidator.cccloud_policy_invalidator_unittest.ccpolicy_invalidation_util.ccpolicy_invalidation_util.huser_policy_signin_service_mobile.cc
messaging_layer
public
upload
util
test
portal
predictors
autocomplete_action_predictor_unittest.ccloading_data_collector.ccloading_data_collector_unittest.ccloading_predictor.ccloading_predictor_unittest.ccloading_stats_collector.ccloading_stats_collector_unittest.ccresource_prefetch_predictor.cc
prefetch
no_state_prefetch
prefetch_proxy
prefetch_proxy_browsertest.ccprefetch_proxy_origin_decider.ccprefetch_proxy_origin_decider_unittest.ccprefetch_proxy_origin_prober.ccprefetch_proxy_params.ccprefetch_proxy_prefetch_metrics_collector_unittest.ccprefetch_proxy_proxy_configurator.ccprefetch_proxy_proxy_configurator_unittest.ccprefetch_proxy_tab_helper.ccprefetch_proxy_tab_helper_unittest.ccprefetch_proxy_url_loader_interceptor.cc
search_prefetch
printing
print_backend_service_manager.ccprint_job.ccprint_job_manager.ccprint_job_worker.ccprint_preview_dialog_controller_browsertest.ccprint_view_manager_base.ccprinting_service.cc
privacy_sandbox
process_singleton_posix.ccprocess_singleton_win_unittest.ccprofile_resetter
profiles
off_the_record_profile_impl.ccprofile_activity_metrics_recorder.ccprofile_activity_metrics_recorder_unittest.ccprofile_attributes_entry.ccprofile_attributes_storage.ccprofile_attributes_storage_unittest.ccprofile_browsertest.ccprofile_destroyer.ccprofile_manager.ccprofile_metrics.cc
profiling_host
push_messaging
budget_database.ccbudget_database_unittest.ccpush_messaging_app_identifier.ccpush_messaging_app_identifier_unittest.ccpush_messaging_constants.hpush_messaging_service_unittest.cc
reading_list
renderer_context_menu
renderer_host
reputation
resource_coordinator
discard_metrics_lifecycle_unit_observer.ccdiscard_metrics_lifecycle_unit_observer_unittest.cclifecycle_unit_base_unittest.cclifecycle_unit_unittest.ccsession_restore_policy.hsession_restore_policy_unittest.cctab_activity_watcher_browsertest.cctab_activity_watcher_unittest.cctab_lifecycle_unit.htab_lifecycle_unit_source_unittest.cctab_lifecycle_unit_unittest.cctab_manager_browsertest.cctab_manager_delegate_chromeos.cctab_manager_delegate_chromeos.htab_manager_delegate_chromeos_unittest.cctab_manager_features.cctab_manager_stats_collector.cctab_manager_stats_collector.htab_manager_stats_collector_unittest.cctab_manager_unittest.cctab_manager_web_contents_data_unittest.cctab_memory_metrics_reporter.cctab_memory_metrics_reporter_unittest.ccusage_clock_unittest.cc
safe_browsing
advanced_protection_status_manager.ccadvanced_protection_status_manager_unittest.cccertificate_reporting_service_browsertest.cccertificate_reporting_service_factory.cccertificate_reporting_service_unittest.cc
chrome_cleaner
chrome_password_protection_service.ccchrome_password_protection_service_unittest.ccclient_side_detection_host_unittest.ccclient_side_detection_service_unittest.cccloud_content_scanning
binary_fcm_service.hbinary_upload_service.ccbinary_upload_service_unittest.ccdeep_scanning_browsertest_base.ccdeep_scanning_utils.ccdeep_scanning_utils_unittest.ccmultipart_data_pipe_getter.ccmultipart_uploader.cc
download_protection
incident_reporting
binary_integrity_analyzer.ccextension_data_collection_unittest.ccincident_reporting_service.ccincident_reporting_service_unittest.cclast_download_finder_unittest.cc
safe_browsing_blocking_page_test.ccsafe_browsing_navigation_observer_browsertest.ccsettings_reset_prompt
search
segmentation_platform
service_process
sessions
closed_tab_cache.ccclosed_tab_cache_browsertest.ccsession_restore_browsertest.ccsession_restore_stats_collector.ccsession_restore_stats_collector_unittest.ccsession_service_log.cctab_loader_delegate.cctab_restore_service_unittest.cc
share
sharing
click_to_call
shared_clipboard
sharing_constants.ccsharing_device_source_sync.ccsharing_device_source_sync_unittest.ccsharing_fcm_sender_unittest.ccsharing_message_bridge_impl.ccsharing_message_bridge_impl_unittest.ccsharing_message_sender_unittest.ccsharing_metrics.ccsharing_service_unittest.ccsms
web_push
signin
account_reconcilor_factory.ccchrome_signin_client.ccchrome_signin_helper.ccdice_browsertest.ccdice_intercepted_session_startup_helper.ccdice_response_handler.ccdice_response_handler_unittest.ccdice_web_signin_interceptor.cc
e2e_tests
signin_ui_util.ccsignin_ui_util_unittest.ccsite_isolation
speech
ssl
https_only_mode_navigation_throttle.ccknown_interception_disclosure_infobar_browsertest.ccknown_interception_disclosure_infobar_delegate.ccsct_reporting_service_browsertest.ccssl_browsertest.ccssl_browsertest_util.ccstateful_ssl_host_state_delegate_test.cctyped_navigation_upgrade_throttle.cctyped_navigation_upgrade_throttle_browsertest.cc
storage
storage_access_api
subresource_filter
subresource_redirect
litepages_service_bypass_decider_unittest.ccorigin_robots_rules_unittest.ccsubresource_redirect_util.cc
supervised_user
child_accounts
sync
test
integration
retry_verifier.ccsingle_client_history_delete_directives_sync_test.ccsingle_client_polling_sync_test.ccsingle_client_sessions_sync_test.ccsingle_client_user_events_sync_test.ccsingle_client_wallet_sync_test.ccsingle_client_workspace_desk_sync_test.ccstatus_change_checker.ccsync_auth_test.ccsync_errors_test.ccsync_exponential_backoff_test.ccsync_service_impl_harness.cctwo_client_passwords_sync_test.cctwo_client_polling_sync_test.cctwo_client_printers_sync_test.cctwo_client_typed_urls_sync_test.cctwo_client_user_events_sync_test.cctyped_urls_helper.cc
sync_file_system
task_manager
providers
browser_process_task_unittest.ccchild_process_task_unittest.cc
crosapi
fallback_task_provider.ccfallback_task_provider_unittest.ccvm
sampling
task_manager_observer.cctask_manager_observer_unittest.ccthemes
thumbnail
touch_to_fill
tracing
translate
ui
android
start_surface
app_list
app_list_client_impl.ccapp_list_notifier_impl.ccapp_sync_ui_state.cc
arc
internal_app
search
app_result.ccapp_search_provider_unittest.cc
arc
arc_app_reinstall_search_provider.ccarc_app_reinstall_search_provider_unittest.ccrecommend_apps_fetcher_impl.cc
cros_action_history
files
file_search_provider.ccfile_search_provider_unittest.ccitem_suggest_cache.ccitem_suggest_cache_unittest.cc
ranking
mrfu_cache.hmrfu_cache_unittest.ccpersistent_proto_unittest.ccscore_normalizer.hscore_normalizer_unittest.cc
search_result_ranker
apps
ash
accessibility
assistant
capture_mode
clipboard_image_model_factory_impl.ccclipboard_image_model_request.ccdesk_template_app_launch_handler.ccholding_space
keyboard
launcher_drag_interactive_uitest.cclauncher_page_switches_interactive_uitest.ccnetwork
overview_animations_interactive_uitest.ccquick_answers
security_token_session_restriction_view.ccsession_controller_client_impl.ccsession_controller_client_impl_unittest.ccsharesheet
shelf
app_service
app_shortcut_shelf_item_controller.ccarc_app_shelf_browsertest.ccarc_app_window.ccchrome_shelf_controller_browsertest.ccshelf_spinner_controller.ccautofill
payments
blocked_content
bookmarks
browser.ccbrowser_focus_uitest.cccocoa
exclusive_access
exclusive_access_bubble.ccfullscreen_controller_browsertest.ccmouse_lock_controller.ccmouse_lock_controller_browsertest.cc
global_media_controls
cast_media_notification_item.cccast_media_notification_item_unittest.cccast_media_session_controller.cccast_media_session_controller_unittest.ccmedia_notification_device_monitor.ccmedia_notification_device_monitor_unittest.ccmedia_session_notification_item.ccmedia_session_notification_item_unittest.ccmedia_session_notification_producer.ccmedia_session_notification_producer_unittest.cc
hats
hung_plugin_tab_helper.ccmedia_router
omnibox
passwords
manage_passwords_test.ccmanage_passwords_ui_controller.ccmanage_passwords_ui_controller_unittest.ccwell_known_change_password_navigation_throttle_browsertest.cc
profile_picker.ccprofile_picker_unittest.ccrecently_audible_helper.hrecently_audible_helper_unittest.ccsearch
signin_reauth_view_controller_browsertest.ccstartup
tabs
task_manager
thumbnails
background_thumbnail_video_capturer.ccthumbnail_capture_driver.hthumbnail_image.ccthumbnail_stats_tracker.hthumbnail_tab_helper.cc
toolbar
user_education
active_tab_tracker_unittest.ccfeature_promo_snooze_service.ccfeature_promo_snooze_service.hfeature_promo_snooze_service_unittest.ccreopen_tab_in_product_help_trigger.ccreopen_tab_in_product_help_trigger_unittest.ccreopen_tab_in_product_help_unittest.cc
views
accessibility
apps
app_dialog
autofill
bookmarks
bubble
content_test_utils.cccritical_notification_bubble_view.cccrostini
desktop_capture
download
download_item_view.ccdownload_shelf_view.ccdownload_shelf_web_view.ccdownload_started_animation_views.cc
exclusive_access_bubble_views.ccextensions
eye_dropper
flying_indicator.ccframe
browser_view.cctop_container_loading_bar.cctop_controls_slide_controller_chromeos.ccweb_contents_close_handler.ccwebui_tab_strip_container_view.cc
fullscreen_control
hats
keyboard_access_browsertest.cclocation_bar
icon_label_bubble_view.cclocation_bar_view.ccomnibox_chip_button.ccpermission_chip.cczoom_bubble_view.cc
media_router
omnibox
omnibox_popup_contents_view.ccomnibox_result_view.ccomnibox_view_views_browsertest.ccomnibox_view_views_unittest.cc
overlay
page_action
page_info
passwords
manage_passwords_icon_view_interactive_uitest.ccpassword_auto_sign_in_view.ccpassword_save_update_view.cc
payments
profiles
avatar_toolbar_button.ccavatar_toolbar_button_delegate.ccprofile_customization_bubble_view_browsertest.ccprofile_picker_view.ccprofile_picker_view_browsertest.cc
read_later
relaunch_notification
relaunch_notification_controller.hrelaunch_notification_controller_unittest.ccrelaunch_recommended_bubble_view_browsertest.ccrelaunch_recommended_timer.ccrelaunch_required_dialog_view_browsertest.ccrelaunch_required_timer_internal.ccrelaunch_required_timer_internal_unittest.cc
send_tab_to_self
status_bubble_views.ccstatus_bubble_views_browsertest.cctab_sharing
tabs
alert_indicator.ccglow_hover_controller.cctab.cctab_animation.cctab_animation.htab_drag_controller.cctab_drag_controller_interactive_uitest.cctab_hover_card_bubble_view.htab_hover_card_controller.cctab_hover_card_metrics.cctab_hover_card_metrics_unittest.cctab_icon.cctab_strip.cctab_unittest.cc
toolbar
user_education
feature_promo_bubble_view.ccfeature_promo_bubble_view_unittest.ccfeature_promo_snooze_interactive_uitest.cc
web_apps
webauthn
web_applications
webauthn
webui
autofill_and_password_manager_internals
certificate_provisioning_ui_handler.cccertificate_provisioning_ui_handler_unittest.ccchromeos
add_supervision
arc_graphics_tracing
arc_graphics_tracing_handler.ccarc_graphics_tracing_handler.harc_graphics_tracing_handler_unittest.cc
arc_power_control
edu_account_login_handler_unittest.ccedu_coexistence
in_session_password_change
login
download_shelf
downloads
history_clusters
identity_internals_ui_browsertest.ccinternals
notifications
interstitials
management
metrics_handler.ccnet_internals
new_tab_page
read_later
realbox
settings
chromeos
recent_site_settings_helper_unittest.ccreset_settings_handler.ccsafety_check_handler.ccsafety_check_handler_unittest.ccsite_settings_handler_unittest.ccsignin
tab_search
tab_strip
webui_load_timer.ccupgrade_detector
installed_version_poller.ccinstalled_version_poller_unittest.ccupgrade_detector.ccupgrade_detector.hupgrade_detector_chromeos.ccupgrade_detector_chromeos_unittest.ccupgrade_detector_impl.ccupgrade_detector_impl_unittest.ccupgrade_detector_unittest.cc
video_tutorials
internal
vr
base_scheduler_delegate.ccbase_scheduler_delegate_unittest.ccbrowser_renderer.cc
elements
controller.cc
gesture_detector.ccgesture_detector_unittest.ccspeech_recognizer.ccenvironment
spinner.ccspinner_unittest.ccthrobber.cctransient_element_unittest.ccviewport_aware_root_unittest.cctest
ui.ccui_host
ui_scene_creator.ccwin
web_applications
daily_metrics_helper.ccexternally_managed_app_registration_task.ccinstall_bounce_metric.ccmanifest_update_manager.ccmanifest_update_manager_browsertest.cc
system_web_apps
test
web_app_prefs_utils_unittest.ccweb_app_url_loader.hwebshare
win
chrome_cleaner
components
engines
ipc
logging
cleaner_logging_service_unittest.ccreporter_logging_service_unittest.ccsafe_browsing_reporter.ccscoped_timed_task_logger.ccscoped_timed_task_logger_unittest.cc
os
scanner
settings
test
chrome_elf
third_party_dlls
common
credential_provider
extension
gaiacp
associated_user_validator.ccassociated_user_validator_unittests.ccevent_logs_upload_manager.ccexperiments_fetcher.ccgaia_credential_base_unittests.ccgcp_utils.ccgem_device_details_manager.ccpassword_recovery_manager.ccuser_policies_manager.ccwin_http_url_fetcher_unittests.cc
test
installer
gcapi
setup
util
renderer
cart
chrome_render_frame_observer.ccchrome_render_thread_observer.ccchromeos_merge_session_loader_throttle.cclite_video
media
pepper
safe_browsing
subresource_redirect
service
cloud_print
cloud_print_auth.cccloud_print_proxy_backend.ccprint_system_cups.ccprinter_job_handler_unittest.ccprinter_job_queue_handler.ccprinter_job_queue_handler_unittest.cc
service_main.ccservice_process.ccservices
cups_proxy
file_util
mac_notifications
media_gallery_util
public
sharing
nearby
speech
test
base
chromedriver
capabilities.cc
chrome
adb_impl.ccchrome_desktop_impl.ccchrome_impl.ccdevtools_client_impl.ccdevtools_client_impl_unittest.ccdevtools_http_client.ccscoped_temp_dir_with_retry.ccweb_view_impl.ccweb_view_impl_unittest.cc
chrome_launcher.cccommands.cccommands_unittest.ccelement_commands.ccelement_util.ccnet
net_util.ccsync_websocket_impl.ccsync_websocket_impl_unittest.cctest_http_server.ccwebsocket_unittest.cc
performance_logger.ccsession.ccsession_commands.ccsession_commands_unittest.ccwindow_commands.ccmedia_router
updater
app
check_for_updates_task.cclaunchd_util.ccmac
setup
test
updater_unittest.ccwin
utility
safe_browsing
chromecast
base
alarm_manager.ccalarm_manager_unittest.cc
metrics
system_time_change_notifier.ccsystem_time_change_notifier_unittest.cctask_runner_impl.ccthread_health_checker_unittest.ccbrowser
accessibility
cast_browser_main_parts.cccast_media_blocker_browsertest.cccast_system_memory_pressure_evaluator.cccast_web_contents_impl.ccmetrics
webview
cast_core
cast_runtime_metrics_recorder.ccmessage_port_handler.ccruntime_application_dispatcher.ccstreaming_receiver_session_client.h
crash
device
external_mojo
external_service_support
graphics
media
audio
audio_output_service
capture_service
cast_audio_device_factory.cccast_audio_input_stream.cccast_audio_mixer_unittest.cccast_audio_output_stream.cccast_audio_output_stream_unittest.cccast_audio_renderer.cccast_audio_renderer.hcma_audio_output_stream.ccmixer_service
rate_adjuster.ccrate_adjuster.hbase
cma
backend
alsa
android
audio_decoder_for_mixer.ccaudio_video_pipeline_device_unittest.ccdesktop
fuchsia
mixer
multizone_backend_unittest.ccproxy
video
volume_control.ccbase
balanced_media_task_runner_unittest.ccbuffering_controller.ccbuffering_controller_unittest.ccbuffering_frame_provider_unittest.ccdecoder_buffer_adapter_unittest.ccdemuxer_stream_adapter_unittest.ccdemuxer_stream_for_test.ccmulti_demuxer_stream_adapter_unittest.cc
decoder
pipeline
test
common
service
metrics
net
renderer
ui
chromeos
assistant
test_support
attestation
attestation_flow.ccattestation_flow_integrated.ccattestation_flow_integrated_unittest.ccattestation_flow_unittest.cc
components
cdm_factory_daemon
feature_usage
local_search_service
phonehub
connection_scheduler_impl_unittest.cccros_state_sender.cccros_state_sender_unittest.ccinvalid_connection_disconnector.ccnotification_access_setup_operation.ccrecent_apps_interaction_handler_unittest.cc
projector_app
proximity_auth
sync_wifi
synced_network_metrics_logger.ccsynced_network_metrics_logger_unittest.ccsynced_network_updater_impl.ccwifi_configuration_bridge.cc
tether
connect_tethering_operation_unittest.ccconnection_preserver_impl.ccdisconnect_tethering_operation_unittest.cchost_connection_metrics_logger_unittest.cchost_scan_scheduler_impl.cchost_scan_scheduler_impl_unittest.cchost_scanner_operation_unittest.cchotspot_usage_duration_tracker.cchotspot_usage_duration_tracker_unittest.cckeep_alive_operation_unittest.cckeep_alive_scheduler.cckeep_alive_scheduler_unittest.ccmessage_transfer_operation.ccmessage_transfer_operation_unittest.cctop_level_host_scan_cache.ccwifi_hotspot_connector.ccwifi_hotspot_connector_unittest.cc
crosapi
dbus
attestation
authpolicy
cicerone
kerberos
machine_learning
native_timer_unittest.ccpower
fake_power_manager_client.ccpower_manager_client.ccpower_policy_controller.ccpower_policy_controller_unittest.cc
shill
system_clock
tpm_manager
update_engine
userdataauth
disks
geolocation
memory
metrics
network
auto_connect_handler_unittest.cccellular_connection_handler.cccellular_connection_handler_unittest.cccellular_esim_installer_unittest.cccellular_esim_profile_handler.cccellular_esim_profile_handler_impl_unittest.cccellular_inhibitor.cccellular_inhibitor_unittest.cccellular_metrics_logger.cccellular_metrics_logger_unittest.cccellular_policy_handler_unittest.ccgeolocation_handler.ccmanaged_network_configuration_handler_unittest.ccnetwork_connection_handler_impl.ccnetwork_connection_handler_impl_unittest.ccnetwork_metadata_store.cc
portal_detector
system_token_cert_db_storage.hsystem_token_cert_db_storage_unittest.ccpolicy
weekly_time
printing
ppd_cache_unittest.ccppd_metadata_manager_unittest.ccppd_provider.ccppd_provider.hprinter_config_cache_unittest.cc
services
assistant
cellular_setup
cros_healthd
public
device_sync
async_execution_time_metrics_logger.ccasync_execution_time_metrics_logger.hcryptauth_device_activity_getter_impl.cccryptauth_device_manager_impl.cccryptauth_device_manager_impl_unittest.cccryptauth_enrollment_manager_impl.cccryptauth_enrollment_manager_impl_unittest.cccryptauth_gcm_manager_impl.cccryptauth_scheduler_impl.cccryptauth_scheduler_impl_unittest.cccryptauth_v2_device_manager_impl_unittest.cccryptauth_v2_enrollment_manager_impl_unittest.ccdevice_sync_impl.ccdevice_sync_service_unittest.ccfake_cryptauth_scheduler.h
proto
stub_device_sync.ccsync_scheduler_impl.ccsync_scheduler_impl_unittest.cclibassistant
audio
conversation_controller.ccconversation_controller.hgrpc
external_services
multidevice_setup
eligible_host_devices_provider_impl.heligible_host_devices_provider_impl_unittest.ccgrandfathered_easy_unlock_host_disabler.cchost_backend_delegate_impl.cchost_device_timestamp_manager_impl_unittest.cchost_verifier_impl.cchost_verifier_impl_unittest.ccwifi_sync_feature_manager_impl.cc
network_config
secure_channel
background_eid_generator_unittest.ccble_advertiser_impl.ccble_advertiser_impl_unittest.ccble_connection_manager_impl_unittest.ccble_synchronizer.ccble_synchronizer_unittest.ccble_weave_client_connection.ccconnection_metrics_logger.ccdevice_to_device_authenticator.ccforeground_eid_generator.ccforeground_eid_generator_unittest.ccnearby_connection_metrics_recorder.ccnearby_connection_metrics_recorder_unittest.cc
public
tts
system
timezone
tpm
ui
cloud_print/virtual_driver/win/port_monitor
codelabs/cpp101
components
accuracy_tips
app_restore
arc
compat_mode
enterprise
arc_data_snapshotd_bridge.ccarc_data_snapshotd_manager.ccsnapshot_reboot_controller.ccsnapshot_session_controller.ccsnapshot_session_controller_unittest.cc
ime
metrics
power
session
timer
video_accelerator
assist_ranker
ranker_model.ccranker_model_loader_impl.ccranker_model_loader_impl_unittest.ccranker_model_unittest.cc
autofill
content
core
browser
address_normalizer_impl.ccautocomplete_history_manager_unittest.ccautofill_ablation_study.ccautofill_ablation_study_unittest.ccautofill_download_manager.ccautofill_download_manager_unittest.ccautofill_manager.ccautofill_metrics.ccautofill_metrics_unittest.ccautofill_profile_import_process_unittest.ccautofill_profile_save_strike_database.ccautofill_profile_save_strike_database_unittest.ccautofill_profile_update_strike_database.ccautofill_profile_validator.ccautofill_suggestion_generator_unittest.ccautofill_test_utils.ccbrowser_autofill_manager.ccbrowser_autofill_manager_unittest.cc
data_model
autofill_data_model_unittest.ccautofill_profile_comparator_unittest.ccautofill_profile_unittest.cccredit_card_unittest.cctest_data_creator.cc
geo
metrics
payments
autofill_offer_manager_unittest.cccredit_card_access_manager.cccredit_card_access_manager_unittest.cccredit_card_fido_authenticator.cccredit_card_save_manager.cccredit_card_save_strike_database.ccfido_authentication_strike_database.ccpayments_client_unittest.ccwait_for_signal_or_timeout_unittest.cc
personal_data_manager_unittest.ccstrike_database_integrator_base.ccstrike_database_integrator_test_strike_database.hstrike_database_integrator_test_strike_database_unittest.cctest_autofill_profile_validator_delayed.cctest_event_waiter.hui
webdata
common
ios
autofill_assistant
browser
actions
action_delegate_util_unittest.ccaction_unittest.cccollect_user_data_action_unittest.ccconfigure_bottom_sheet_action.ccconfigure_bottom_sheet_action_unittest.cc
autofill_assistant_onboarding_fetcher.ccclient_settings.ccclient_settings.hcontroller.cccontroller_unittest.ccelement_area_unittest.ccprotocol_utils.ccretry_timer_unittest.ccscript_executor.ccscript_executor_unittest.ccstarter.ccstarter_unittest.ccfallback_handler
get_element_status_action_unittest.cchighlight_element_action_unittest.ccperform_on_single_element_action_unittest.ccprompt_action_unittest.ccselect_option_action_unittest.ccset_attribute_action_unittest.ccshow_cast_action.ccshow_cast_action_unittest.ccshow_details_action.ccstopwatch.ccstopwatch_unittest.ccupload_dom_action_unittest.ccuse_address_action_unittest.ccuse_credit_card_action_unittest.ccwait_for_document_action.ccwait_for_document_action_unittest.ccwait_for_dom_action.ccwait_for_dom_action_unittest.ccwait_for_navigation_action.cctrigger_scripts
user_data_util_unittest.ccwait_for_document_operation_unittest.ccweb
background_sync
blocked_content
blocklist
opt_out_blocklist
bookmarks
breadcrumbs
core
browser_sync
browsing_data
core
captive_portal
content
core
cast_certificate
cast_channel
cast_auth_util.cccast_auth_util_fuzzer.cccast_auth_util_unittest.cccast_message_handler.cccast_message_handler.hcast_message_handler_unittest.cccast_socket_service_unittest.cccast_socket_unittest.cckeep_alive_delegate_unittest.cclibcast_socket_service_unittest.ccopenscreen_cast_auth_util_fuzzer.cc
cast_streaming
certificate_transparency
client_hints
browser
component_updater
content_capture
content_settings
crash
content
browser
cronet
android
cronet_prefs_manager.cchost_cache_persistence_manager_unittest.ccnative
stale_host_resolver_unittest.ccurl_request_context_config.ccurl_request_context_config_unittest.ccdata_reduction_proxy
core
data_use_measurement
desks_storage
device_event_log
discardable_memory
client
common
service
dom_distiller
content
browser
core
domain_reliability
download
database
internal
background_service
config.cccontroller_impl_unittest.cc
ios
navigation_monitor_impl_unittests.ccscheduler
service_config_impl_unittest.ccstats.cccommon
public
drive
embedder_support
android
enterprise
browser
error_page
content
browser
exo
buffer.ccclient_controlled_shell_surface.ccdata_device.ccgamepad.ccgamepad_unittest.cckeyboard.cckeyboard_unittest.ccpermission_unittest.ccshell_surface.ccshell_surface_unittest.ccui_lock_controller.ccui_lock_controller_unittest.ccvsync_timing_manager.ccwm_helper_chromeos_unittest.cc
wayland
clients
fuzzer
server_unittest.ccwayland_display_output.ccwayland_keyboard_delegate_unittest.cczaura_shell_unittest.cczcr_remote_shell_impl.ccfavicon
feature_engagement
internal
federated_learning
features
feed
core
v2
api_test
feed_api_notice_card_unittest.ccfeed_api_reliability_logging_unittest.ccfeed_api_stream_unittest.ccfeed_api_subscriptions_unittest.ccfeed_api_test.cc
config.ccconfig.hfeed_network_impl.ccfeedstore_util.ccfeedstore_util_unittest.ccmetrics_reporter.ccmetrics_reporter_unittest.ccpersistent_key_value_store_impl_unittest.ccprotocol_translator.ccprotocol_translator_unittest.ccpublic
request_throttler_unittest.ccscheduling.ccscheduling.hscheduling_unittest.ccstream
tasks
test
types.cctypes_unittest.ccweb_feed_subscription_coordinator.ccfeedback
fullscreen_control
gcm_driver
fake_gcm_client.ccfeatures.ccgcm_account_mapper.ccgcm_account_mapper_unittest.ccgcm_account_tracker.ccgcm_account_tracker_unittest.ccgcm_client_impl.ccgcm_client_impl_unittest.cc
instance_id
registration_info.ccguest_os
gwp_asan
heap_profiling
in_process
multi_process
heavy_ad_intervention
history
core
browser
android
browsing_history_service.ccdomain_mixing_metrics.ccdomain_mixing_metrics_unittest.ccexpire_history_backend.ccexpire_history_backend_unittest.cchistory_backend.cchistory_backend_db_unittest.cchistory_backend_unittest.cchistory_constants.cchistory_database.cchistory_querying_unittest.cchistory_service_unittest.cchistory_types.cchistory_types.hhistory_types_unittest.ccsync
top_sites_impl.cctop_sites_impl_unittest.ccurl_database.ccvisit_annotations_database.ccvisit_annotations_test_utils.ccvisit_database_unittest.ccweb_history_service.cccommon
test
metrics
history_clusters
core
image_fetcher
invalidation
impl
javascript_dialogs
views
language
content
core
leveldb_proto
live_caption
views
media_message_center
media_controls_progress_view.ccmedia_controls_progress_view_unittest.ccmedia_notification_view_modern_impl_unittest.cc
media_router
browser
android
issue_manager.cclogger_impl_unittest.ccmedia_router_metrics.ccmedia_router_metrics_unittest.cccommon
memory_pressure
memory_pressure_level_reporter.ccmemory_pressure_level_reporter_unittest.ccsystem_memory_pressure_evaluator_fuchsia.ccsystem_memory_pressure_evaluator_linux.ccsystem_memory_pressure_evaluator_win.cc
metal_util
metrics
call_stack_profile_builder_unittest.ccchild_call_stack_profile_collector_unittest.ccdaily_event.ccdaily_event_unittest.ccdata_use_tracker.ccdate_changed_helper_unittest.cc
demographics
field_trials_provider_unittest.ccfile_metrics_provider_unittest.ccmetrics_reporting_service.ccmetrics_scheduler.ccmetrics_service.ccmetrics_service_client.ccmetrics_service_client_unittest.ccmetrics_service_unittest.ccmetrics_upload_scheduler.ccnet
persistent_histograms.ccstability_metrics_provider_unittest.ccstructured
external_metrics_unittest.cckey_data_unittest.ccneutrino_logging.ccpersistent_proto_unittest.ccstructured_metrics_provider.ccstructured_metrics_provider_unittest.cc
system_session_analyzer
test
mirroring
service
nacl
browser
loader
renderer
navigation_interception
net_log
network_hints
renderer
network_session_configurator
network_time
no_state_prefetch
browser
common
ntp_snippets
category_rankers
content_suggestions_metrics.cccontent_suggestions_metrics_unittest.ccreading_list
remote
remote_suggestions_fetcher_impl_unittest.ccremote_suggestions_provider_impl.ccremote_suggestions_provider_impl_unittest.ccremote_suggestions_scheduler_impl.ccremote_suggestions_scheduler_impl_unittest.cc
time_serialization.cctime_serialization_unittest.ccuser_classifier.ccuser_classifier_unittest.ccntp_tiles
offline_items_collection
core
offline_pages
core
background
cleanup_task_unittest.ccoffliner_client_unittest.ccoffliner_policy_utils.ccpick_request_task.ccpick_request_task_unittest.ccrequest_coordinator.ccrequest_coordinator_unittest.ccrequest_queue_store_unittest.ccrequest_queue_unittest.ccsave_page_request_unittest.cc
background_snapshot_controller.ccbackground_snapshot_controller_unittest.ccmodel
cleanup_visuals_task_unittest.ccclear_storage_task.ccclear_storage_task_unittest.ccdelete_page_task.ccdelete_page_task_unittest.ccget_pages_task_unittest.ccmark_page_accessed_task.ccoffline_page_model_taskified.hoffline_page_model_taskified_unittest.ccpersistent_page_consistency_check_task.ccpersistent_page_consistency_check_task_unittest.ccstore_visuals_task.ccstore_visuals_task_unittest.cc
offline_page_client_policy.ccoffline_store_utils.ccprefetch
prefetch_downloader.hprefetch_downloader_impl_unittest.ccprefetch_prefs.ccprefetch_prefs_unittest.cc
snapshot_controller.ccsnapshot_controller_unittest.ccstore
tasks
task
omnibox
browser
autocomplete_controller.ccautocomplete_provider_debouncer.ccautocomplete_provider_unittest.ccautocomplete_result.ccclipboard_provider_unittest.ccdocument_provider_unittest.cchistory_quick_provider_performance_unittest.cchistory_quick_provider_unittest.cchistory_test_util.ccin_memory_url_index_unittest.ccomnibox_edit_model.ccomnibox_field_trial.ccomnibox_field_trial_unittest.ccomnibox_metrics_provider.ccon_device_head_provider.ccscored_history_match_unittest.ccsearch_provider.ccshortcuts_database_unittest.ccshortcuts_provider.ccshortcuts_provider_test_util.ccshortcuts_provider_unittest.ccurl_index_private_data.cc
open_from_clipboard
clipboard_recent_content.ccclipboard_recent_content_generic_unittest.ccclipboard_recent_content_ios.mmclipboard_recent_content_ios_unittest.mm
openscreen_platform
optimization_guide
core
page_image_annotation
content
renderer
page_info
page_load_metrics
browser
layout_shift_normalization.cclayout_shift_normalization_unittest.ccmetrics_web_contents_observer_unittest.ccpage_load_metrics_memory_tracker.ccpage_load_metrics_update_dispatcher.ccpage_load_metrics_util.h
observers
ad_metrics
back_forward_cache_page_load_metrics_observer.ccback_forward_cache_page_load_metrics_observer_unittest.ccclick_input_tracker.ccclick_input_tracker_unittest.cccore
early_hints_page_load_metrics_observer.ccearly_hints_page_load_metrics_observer_unittest.ccprerender_page_load_metrics_observer.ccrenderer
paint_preview
password_manager
core
browser
android_affiliation
affiliated_match_helper.haffiliation_backend.ccaffiliation_backend_unittest.ccaffiliation_fetch_throttler.ccaffiliation_fetch_throttler_unittest.ccfacet_manager.ccfacet_manager_unittest.cc
field_info_table.ccform_fetcher_impl_unittest.ccgeneration
http_credentials_cleaner_unittest.ccinsecure_credentials_table.cclogin_database.cclogin_database_unittest.ccpassword_access_authenticator.hpassword_access_authenticator_unittest.ccpassword_form_metrics_recorder.ccpassword_form_metrics_recorder_unittest.ccpassword_generation_manager_unittest.ccpassword_manager_util_unittest.ccpassword_reuse_detection_manager_unittest.ccpassword_save_manager_impl_unittest.ccpassword_scripts_fetcher_impl.ccpassword_scripts_fetcher_impl.hpassword_store_impl.ccpassword_store_unittest.ccpossible_username_data.hsync
ui
insecure_credentials_manager_unittest.ccpost_save_compromised_helper.ccpost_save_compromised_helper_unittest.cc
well_known_change_password_state.hwell_known_change_password_state_unittest.ccios
payments
content
core
performance_manager
decorators
page_load_tracker_decorator.hprocess_metrics_decorator.ccsite_data_recorder.ccsite_data_recorder_unittest.cc
features.ccgraph
persistence
site_data
public
v8_memory
permissions
contexts
permission_auditing_database_unittest.ccpermission_auditing_service.ccpermission_auditing_service_unittest.ccpermission_decision_auto_blocker.ccpermission_decision_auto_blocker_unittest.ccpermission_request_manager.ccpermission_request_manager_unittest.ccpermission_uma_util.ccprediction_service
policy
core
browser
common
cloud
cloud_policy_client_unittest.cccloud_policy_refresh_scheduler.cccloud_policy_refresh_scheduler_unittest.cccloud_policy_validator_unittest.cccomponent_cloud_policy_store_unittest.cccomponent_cloud_policy_updater_unittest.ccdevice_management_service.ccexternal_policy_data_updater_unittest.cc
features.ccpolicy_statistics_collector.ccpolicy_statistics_collector_unittest.ccremote_commands
power_scheduler
power_mode_arbiter.hpower_mode_arbiter_unittest.ccpower_mode_voter.hpower_scheduler.ccpower_scheduler_unittest.cc
prefs
query_tiles
internal
cached_image_loader.ccproto_conversion.cctile_config.cctile_config_unittest.cctile_group_unittest.cctile_manager_unittest.cctile_service_scheduler_unittest.cctile_utils_unittest.cc
test
quirks
reading_list
core
remote_cocoa
reporting
encryption
storage
util
rlz
safe_browsing
content
browser
client_side_detection_service.ccclient_side_model_loader.cc
download
password_protection
safe_browsing_blocking_page.ccsafe_browsing_metrics_collector.ccsafe_browsing_metrics_collector_unittest.ccsafe_browsing_navigation_observer_manager.cctriggers
web_ui
renderer
core
browser
db
allowlist_checker_client.ccallowlist_checker_client_unittest.ccv4_get_hash_protocol_manager.ccv4_get_hash_protocol_manager_unittest.ccv4_local_database_manager.ccv4_protocol_manager_util.ccv4_test_util.ccv4_update_protocol_manager.cc
password_protection
realtime
safe_browsing_token_fetch_tracker.ccsafe_browsing_token_fetch_tracker_unittest.ccsafe_browsing_url_checker_impl.ccverdict_cache_manager.ccverdict_cache_manager_unittest.cccommon
safe_search_api
safety_check
scheduling_metrics
thread_metrics.ccthread_metrics_unittest.cctotal_duration_metric_reporter.cctotal_duration_metric_reporter_unittest.cc
schema_org
common
search
search_engines
android
keyword_table.cckeyword_web_data_service.cctemplate_url_fetcher.cctemplate_url_service.cctemplate_url_service_unittest.ccsearch_provider_logos
security_interstitials
content
security_state
content
segmentation_platform
internal
database
database_maintenance_impl.ccdatabase_maintenance_impl_unittest.ccmetadata_utils.ccmetadata_utils_unittest.ccsignal_database_impl.ccsignal_database_impl_unittest.ccsignal_key.ccsignal_key_unittest.ccsignal_storage_config.ccsignal_storage_config_unittest.cc
execution
scheduler
segmentation_platform_service_impl.ccsegmentation_platform_service_impl_unittest.ccselection
send_tab_to_self
fake_send_tab_to_self_model.ccsend_tab_to_self_bridge.ccsend_tab_to_self_bridge_unittest.ccsend_tab_to_self_entry.ccsend_tab_to_self_entry.hsend_tab_to_self_entry_unittest.cc
services
heap_profiling
storage
dom_storage
indexed_db
transactional_leveldb
service_worker
sessions
core
shared_highlighting
core
signin
core
internal
identity_manager
ios
public
site_engagement
site_isolation
soda
spellcheck
browser
ssl_errors
storage_monitor
subresource_filter
content
browser
ads_intervention_manager.ccads_intervention_manager_unittest.ccpage_load_statistics.ccsubframe_navigation_filtering_throttle.ccsubresource_filter_content_settings_manager.hsubresource_filter_content_settings_manager_unittest.ccsubresource_filter_safe_browsing_activation_throttle.ccsubresource_filter_safe_browsing_activation_throttle_unittest.ccsubresource_filter_safe_browsing_client_request.h
core
subresource_redirect
sync
base
driver
glue
startup_controller.ccsync_auth_manager_unittest.ccsync_driver_switches.ccsync_internals_util.ccsync_service_impl_unittest.ccsync_session_durations_metrics_recorder_unittest.ccsync_stopped_reporter.cctest_sync_service.ccengine
backoff_delay_provider.cccommit_contribution_impl_unittest.cc
cycle
events
get_updates_processor_unittest.ccnet
polling_constants.hsync_manager_impl_unittest.ccsync_scheduler_impl_unittest.ccsyncer_proto_util.ccsyncer_proto_util_unittest.ccsyncer_unittest.ccinvalidations
model
client_tag_based_model_type_processor.ccclient_tag_based_model_type_processor_unittest.ccclient_tag_based_remote_update_handler.ccprocessor_entity_unittest.cc
nigori
test
engine
fake_server
trusted_vault
sync_bookmarks
bookmark_model_merger_unittest.ccbookmark_remote_updates_handler_unittest.ccbookmark_specifics_conversions.ccbookmark_specifics_conversions_unittest.ccsynced_bookmark_tracker_unittest.cc
sync_device_info
device_info_prefs.ccdevice_info_prefs_unittest.ccdevice_info_sync_bridge.ccdevice_info_sync_bridge_unittest.ccdevice_info_util.cclocal_device_info_provider_impl_unittest.cc
sync_sessions
open_tabs_ui_delegate_impl_unittest.ccsession_sync_bridge.ccsession_sync_bridge_unittest.ccsynced_session_tracker.ccsynced_session_tracker_unittest.cc
system_media_controls
translate
content
core
browser
translate_metrics_logger_impl_unittest.cctranslate_prefs_unittest.cctranslate_script.cctranslate_script.h
common
ios
ui_devtools
ukm
update_client
user_manager
variations
service
safe_seed_manager_unittest.ccvariations_field_trial_creator.ccvariations_field_trial_creator_unittest.ccvariations_service.cc
study_filtering.ccstudy_filtering_unittest.ccsynthetic_trial_registry_unittest.ccvariations_request_scheduler.ccvariations_request_scheduler_mobile.ccvariations_request_scheduler_mobile_unittest.ccvariations_seed_processor_unittest.ccvariations_seed_simulator_unittest.ccvariations_seed_store_unittest.ccviz
common
frame_sinks
begin_frame_args.ccbegin_frame_args.hbegin_frame_args_unittest.ccbegin_frame_source_unittest.ccdelay_based_time_source_unittest.cc
gpu
context_cache_controller.cccontext_cache_controller_unittest.ccmetal_api_proxy.mmvulkan_in_process_context_provider.h
quads
yuv_readback_unittest.ccdemo
host
host
service
display
bsp_tree_perftest.ccdelegated_ink_point_pixel_test_helper.ccdelegated_ink_point_renderer_skia.ccdelegated_ink_trail_data.ccdirect_renderer.ccdisplay.ccdisplay.hdisplay_perftest.ccdisplay_scheduler.ccdisplay_scheduler_unittest.ccdisplay_unittest.ccframe_rate_decider.ccframe_rate_decider.hframe_rate_decider_unittest.ccgl_renderer.ccoverlay_unittest.ccrenderer_pixeltest.ccsurface_aggregator.hsurface_aggregator_perftest.ccsurface_aggregator_pixeltest.ccsurface_aggregator_unittest.ccviz_perftest.cc
display_embedder
gl_output_surface_offscreen.ccoutput_presenter_fuchsia.ccoutput_presenter_x11.ccskia_output_device_buffer_queue.ccskia_output_device_gl.ccskia_output_surface_dependency_impl.ccskia_output_surface_impl.ccvsync_parameter_listener.hvsync_parameter_listener_unittest.cc
frame_sinks
compositor_frame_sink_support.cccompositor_frame_sink_support_unittest.ccexternal_begin_frame_source_android.ccframe_sink_manager_unittest.ccgpu_vsync_begin_frame_source.ccroot_compositor_frame_sink_impl.ccsurface_references_unittest.cc
video_capture
frame_sink_video_capturer_impl.ccframe_sink_video_capturer_impl_unittest.ccinterprocess_frame_pool.h
video_detector.ccvideo_detector.hvideo_detector_unittest.ccsurfaces
transitions
test
web_cache
browser
web_resource
webapps
browser
webrtc_logging
wifi
content
app
browser
accessibility
browser_accessibility_mac.mmbrowser_accessibility_manager_mac.mmbrowser_accessibility_state_impl.ccbrowser_accessibility_state_impl_unittest.cccross_platform_accessibility_browsertest.ccsnapshot_ax_tree_browsertest.cc
aggregation_service
aggregatable_report_sender.ccaggregatable_report_sender_unittest.ccaggregation_service_key_fetcher_unittest.ccaggregation_service_network_fetcher_impl.ccaggregation_service_network_fetcher_impl_unittest.ccaggregation_service_storage_sql_unittest.cc
android
appcache
appcache_group.ccappcache_service_impl.ccappcache_storage_impl.ccappcache_test_helper.ccappcache_update_job.cc
attribution_reporting
conversion_host_utils.ccconversion_host_utils_unittest.ccconversion_internals_browsertest.ccconversion_manager_impl.ccconversion_manager_impl_unittest.ccconversion_network_sender_impl.ccconversion_network_sender_impl_unittest.ccconversion_policy.ccconversion_policy_unittest.ccconversion_reporter_impl_unittest.ccconversion_storage_delegate_impl.ccconversion_storage_delegate_impl_unittest.ccconversion_storage_sql_unittest.ccconversion_storage_unittest.ccconversion_test_utils.ccconversion_utils.ccconversions_browsertest.ccimpression_declaration_browsertest.ccrate_limit_table_unittest.cc
audio
back_forward_cache_browsertest.ccbackground_sync
background_sync_launcher_unittest.ccbackground_sync_manager_unittest.ccbackground_sync_metrics.ccbackground_sync_metrics_unittest.ccbackground_sync_scheduler_unittest.ccone_shot_background_sync_browsertest.ccperiodic_background_sync_browsertest.cc
blob_storage
bluetooth
browser_process_io_thread.ccbrowsing_data
cache_storage
child_process_launcher.ccchild_process_security_policy_impl.ccchild_process_security_policy_impl.hclient_hints
code_cache
compute_pressure
compute_pressure_host.hcompute_pressure_host_unittest.cccompute_pressure_manager.hcompute_pressure_manager_unittest.cccompute_pressure_sampler_unittest.cc
content_index
data_decoder_browsertest.ccdevice_sensors
devtools
devtools_background_services_context_impl.ccdevtools_background_services_context_impl_unittest.ccdevtools_manager_unittest.ccdevtools_video_consumer.cc
protocol
download
gpu
browser_gpu_channel_host_factory.ccgpu_data_manager_impl_private.ccgpu_data_manager_impl_private_unittest.cc
host_zoom_map_impl_unittest.ccidle
indexed_db
indexed_db_backing_store.ccindexed_db_backing_store.hindexed_db_backing_store_unittest.ccindexed_db_factory_unittest.ccindexed_db_leveldb_operations.ccindexed_db_pre_close_task_queue_unittest.ccindexed_db_storage_key_state.ccindexed_db_storage_key_state.hindexed_db_tombstone_sweeper_unittest.ccindexed_db_transaction.ccmock_browsertest_indexed_db_class_factory.cc
interest_group
ad_auction_service_impl.ccauction_runner_unittest.ccinterest_group_browsertest.ccinterest_group_storage.hinterest_group_storage_unittest.ccrestricted_interest_group_store_impl_unittest.cc
loader
media
audible_metrics_unittest.ccaudio_stream_monitor.ccaudio_stream_monitor_unittest.cc
capture
aura_window_video_capture_device_browsertest.cccontent_capture_device_browsertest_base.ccdesktop_capture_device.ccdesktop_capture_device_mac.ccdesktop_capture_device_unittest.ccdesktop_streams_registry_impl.ccframe_sink_video_capture_device.ccframe_sink_video_capture_device_unittest.ccmouse_cursor_overlay_controller.hslow_window_capturer_chromeos.hweb_contents_video_capture_device_browsertest.cc
flinging_renderer_unittest.ccmedia_interface_proxy.ccservice_factory.ccsession
audio_focus_delegate_android_browsertest.ccmedia_session_android.ccmedia_session_controller_unittest.ccmedia_session_controllers_manager_unittest.ccmedia_session_impl.hmedia_session_impl_browsertest.ccmedia_session_impl_service_routing_unittest.ccmedia_session_impl_unittest.ccmedia_session_impl_visibility_browsertest.ccmedia_session_uma_helper_unittest.cc
system_media_controls_notifier.ccwebaudio
memory
metrics
net
net_info_browsertest.ccnetwork_service_browsertest.ccnotifications
blink_notification_service_impl_unittest.ccnotification_database_conversions.ccnotification_database_conversions_unittest.ccplatform_notification_context_impl.ccplatform_notification_context_unittest.cc
portal
prerender
push_messaging
quota
renderer_host
back_forward_cache_impl.ccback_forward_cache_metrics.ccback_forward_cache_metrics_browsertest.ccback_forward_cache_metrics_unittest.ccclipboard_host_impl.ccclipboard_host_impl_unittest.cccompositor_dependencies_android.cccompositor_impl_android_browsertest.ccdebug_urls.ccdwrite_font_lookup_table_builder_win.ccdwrite_font_lookup_table_builder_win_unittest.cc
input
fling_browsertest.ccfling_controller.ccfling_controller_unittest.ccfling_scheduler_unittest.ccgesture_event_queue.hgesture_event_queue_unittest.ccinput_router_config_helper.ccinput_router_impl_unittest.ccmouse_wheel_phase_handler.hpassthrough_touch_event_queue.hpassthrough_touch_event_queue_unittest.ccrender_widget_host_latency_tracker_unittest.ccscroll_latency_browsertest.ccstylus_text_selector_unittest.ccsynthetic_gesture_controller.ccsynthetic_gesture_controller_unittest.ccsynthetic_gesture_target_base.ccsynthetic_pointer_action_unittest.ccsynthetic_smooth_move_gesture.ccsynthetic_tap_gesture.ccsynthetic_touchpad_pinch_gesture.ccsynthetic_touchscreen_pinch_gesture.cctap_suppression_controller.cctap_suppression_controller_unittest.cctouch_action_browsertest.cctouch_emulator.cctouch_emulator_unittest.cctouch_selection_controller_client_aura.ccweb_input_event_builders_android_unittest.ccweb_input_event_builders_mac.mmwheel_scroll_latching_browsertest.cc
media
audio_output_authorization_handler.ccmedia_stream_manager.ccmedia_stream_track_metrics_host.ccvideo_capture_manager.hvideo_capture_unittest.cc
navigation_controller_impl.ccnavigation_controller_impl_browsertest.ccnavigation_controller_impl_unittest.ccnavigation_request.ccoverscroll_configuration.ccoverscroll_controller.ccoverscroll_controller_unittest.ccpage_lifecycle_state_manager.ccplugin_registry_impl.ccrecently_destroyed_hosts.ccrecently_destroyed_hosts.hrecently_destroyed_hosts_unittest.ccrender_frame_host_impl.ccrender_frame_host_impl_browsertest.ccrender_frame_host_manager_browsertest.ccrender_process_host_browsertest.ccrender_process_host_impl.ccrender_view_host_impl.hrender_widget_host_browsertest.ccrender_widget_host_impl.ccrender_widget_host_unittest.ccrender_widget_host_view_android.ccrender_widget_host_view_aura.ccrender_widget_host_view_aura_browsertest.ccrender_widget_host_view_aura_unittest.ccrender_widget_host_view_browsertest.ccrender_widget_host_view_child_frame.ccrender_widget_host_view_mac_unittest.mmrender_widget_targeter.cctext_input_client_mac.htext_input_client_mac_unittest.mmscheduler
browser_task_executor_unittest.cc
service_process_host_browsertest.ccresponsiveness
service_worker
service_worker_browsertest.ccservice_worker_consts.hservice_worker_fetch_dispatcher_browsertest.ccservice_worker_job_unittest.ccservice_worker_main_resource_loader_unittest.ccservice_worker_metrics_unittest.ccservice_worker_object_host.ccservice_worker_object_host_unittest.ccservice_worker_ping_controller.ccservice_worker_registration.ccservice_worker_registration_object_host.ccservice_worker_registration_unittest.ccservice_worker_registry_unittest.ccservice_worker_single_script_update_checker_unittest.ccservice_worker_version.ccservice_worker_version.hservice_worker_version_browsertest.ccservice_worker_version_unittest.cc
site_per_process_browsertest.ccsite_per_process_scroll_browsertest.ccsite_per_process_unload_browsertest.ccstarscan_load_observer.ccstartup_task_runner_unittest.ccstorage_partition_impl.ccstorage_partition_impl_unittest.ccstorage_service_restart_browsertest.ccstorage_service_sandbox_browsertest.cctracing
background_tracing_active_scenario.ccbackground_tracing_manager_browsertest.ccbackground_tracing_rule.cc
video_capture_service.ccweb_contents
aura
web_contents_android.ccweb_contents_impl.ccweb_contents_impl.hweb_contents_view_aura_browsertest.ccweb_database
web_package
mock_signed_exchange_handler.ccprefetched_signed_exchange_cache.ccsigned_exchange_handler.ccsigned_exchange_handler_unittest.ccsigned_exchange_prefetch_metric_recorder.ccsigned_exchange_prefetch_metric_recorder_unittest.ccsigned_exchange_request_handler_browsertest.ccsigned_exchange_signature_verifier.ccsigned_exchange_signature_verifier_unittest.ccsigned_exchange_subresource_prefetch_browsertest.cc
webauth
webrtc
webrtc_audio_debug_recordings_browsertest.ccwebrtc_internals.ccwebrtc_video_capture_service_browsertest.cc
webui
xr
child
common
ppapi_plugin
public
browser
common
test
renderer
accessibility
browser_exposed_renderer_interfaces.cccategorized_worker_pool_unittest.ccmedia
batching_media_log.ccbatching_media_log_unittest.ccmedia_factory.ccrenderer_webaudiodevice_impl.ccrenderer_webmediaplayer_delegate.ccrenderer_webmediaplayer_delegate_browsertest.cc
pepper
event_conversion.ccpepper_graphics_2d_host.ccpepper_hung_plugin_filter.ccpepper_media_stream_audio_track_host.ccpepper_media_stream_video_track_host.ccpepper_platform_audio_output_dev.ccpepper_plugin_instance_impl.ccplugin_module.ccvideo_encoder_shim.cc
render_frame_impl.ccrender_thread_impl.ccrender_thread_impl_discardable_memory_browsertest.ccrender_view_browsertest.ccservices
auction_worklet
isolated_xr_device
shell
test
web_test
dbus
device
bluetooth
bluetooth_adapter.ccbluetooth_adapter_android.ccbluetooth_adapter_mac.mmbluetooth_device.ccbluetooth_low_energy_scan_filter.ccbluetooth_low_energy_scan_filter_unittest.ccbluetooth_task_manager_win.cc
bluez
chromeos
dbus
bluetooth_advertisement_monitor_application_service_provider_unittest.ccfake_bluetooth_adapter_client.ccfake_bluetooth_device_client.ccfake_bluetooth_gatt_characteristic_client.cc
test
fido
cable
fido_constants.ccfido_request_handler_base.hfido_request_handler_unittest.ccget_assertion_handler_unittest.cchid
mac
virtual_fido_device.ccgamepad
abstract_haptic_gamepad.ccabstract_haptic_gamepad_unittest.ccdualshock4_controller_unittest.ccgamepad_provider.ccgamepad_provider_unittest.cchid_haptic_gamepad_unittest.ccnintendo_controller.ccxbox_hid_controller_unittest.cc
vr
docs
extensions
browser
api
alarms
bluetooth
bluetooth_low_energy
declarative_net_request
feedback_private
access_rate_limiter_chromeos_unittest.ccfeedback_private_api.cclog_source_access_manager.cclog_source_access_manager_chromeos_unittest.cc
guest_view
web_view
idle
media_perception_private
metrics_private
printer_provider
runtime
serial
storage
web_request
app_window
extension_function.ccextension_protocols.ccguest_view
image_sanitizer_unittest.ccprocess_manager.ccquota_service.ccupdater
common
renderer
shell
fuchsia
base
engine
gin
gpu
command_buffer
client
service
dawn_platform.ccexternal_vk_image_factory_unittest.ccgr_cache_controller.ccgr_cache_controller_unittest.ccgr_shader_cache.ccscheduler.ccshared_context_state.ccshared_image_manager.cc
tests
ipc
perftests
vulkan
headless
ios
chrome
app
browser
app_launcher
autofill
browser_state
browsing_data
crash_report
external_files
infobars
install_time_util_unittest.mmios_chrome_main_parts.mmios_thread_profiler.cclink_to_text
metrics
chrome_browser_state_client_unittest.mmfirst_user_action_recorder_unittest.ccincognito_usage_app_state_agent.mmincognito_usage_app_state_agent_unittest.mmmobile_session_shutdown_metrics_provider.mmtab_usage_recorder_browser_agent.mmtab_usage_recorder_browser_agent_unittest.mmtab_usage_recorder_egtest.mmwindow_configuration_recorder.mm
notification_promo.ccnotification_promo_unittest.ccntp
omaha
optimization_guide
overscroll_actions
passwords
ios_chrome_password_check_manager.mmios_chrome_password_check_manager_unittest.mmios_chrome_password_store_factory.ccios_password_store_utils.mmpassword_controller.mm
policy
reporting
prerender
reading_list
safe_browsing
sessions
share_extension
snapshots
ssl
translate
ui
authentication
autofill
bookmarks
browser_view
content_suggestions
default_promo
gestures
history
image_util
integration_tests
link_to_text
ntp
popup_menu
reading_list
ios_add_to_reading_list_infobar_delegate.mmreading_list_egtest.mmreading_list_javascript_feature.mmreading_list_list_item_util.mmreading_list_mediator_unittest.mm
settings
clear_browsing_data
password
safety_check
search_engine_table_view_controller.mmsearch_engine_table_view_controller_unittest.mmtab_switcher
tab_grid
toolbar
webui
interstitials
web
test
net
cookies
public
provider
chrome
browser
testing
web
browsing_data
download
find_in_page
js_messaging
navigation
public
test
security
test
web_state
ipc
jingle
glue
notifier
media
audio
agc_audio_stream.halive_checker_unittest.cc
alsa
android
aaudio_output.ccaudio_android_unittest.ccaudio_manager_android.ccopensles_input.ccopensles_output.cc
audio_encoders_unittest.ccaudio_input_device.ccaudio_manager_base.ccaudio_output_device_thread_callback.ccaudio_output_device_unittest.ccaudio_output_proxy_unittest.ccaudio_thread_hang_monitor.ccaudio_thread_hang_monitor_unittest.ccfuchsia
mac
pulse
simple_sources.ccwav_audio_handler.ccwin
base
android
media_codec_bridge_impl.ccmedia_codec_bridge_impl_unittest.ccmedia_codec_loop.ccmedia_codec_loop_unittest.ccmedia_player_bridge.ccmedia_player_bridge_unittest.ccmedia_service_throttler.ccmedia_service_throttler_unittest.cc
audio_buffer.ccaudio_buffer_converter_unittest.ccaudio_buffer_unittest.ccaudio_discard_helper_unittest.ccaudio_latency_unittest.ccaudio_parameters.ccaudio_power_monitor_unittest.ccaudio_renderer_mixer.ccaudio_renderer_mixer_unittest.ccaudio_shifter.ccaudio_shifter_unittest.ccaudio_timestamp_helper.ccaudio_timestamp_helper_unittest.ccdata_buffer_unittest.ccdecoder_buffer_queue_unittest.ccfake_audio_worker_unittest.ccfake_demuxer_stream.ccfake_single_thread_task_runner.ccfeedback_signal_accumulator_unittest.ccframe_rate_estimator_unittest.ccmac
media_content_type.ccmoving_average.ccmoving_average_unittest.ccnull_video_sink_unittest.ccpipeline_impl_unittest.ccseekable_buffer.ccseekable_buffer_unittest.ccsilent_sink_suspender_unittest.ccsimple_watch_timer.ccstream_parser_buffer.htext_ranges_unittest.cctext_renderer_unittest.cctime_delta_interpolator.cctime_delta_interpolator_unittest.cctuneable.cctuneable_unittest.ccuser_input_monitor_mac.ccvideo_frame_pool.ccvideo_frame_pool_unittest.ccvideo_frame_unittest.ccvideo_util_unittest.ccwall_clock_time_source.ccwall_clock_time_source_unittest.cccapabilities
capture
content
android
animated_content_sampler.ccanimated_content_sampler_unittest.ccsmooth_event_sampler_unittest.ccvideo_capture_oracle.ccvideo_capture_oracle.hvideo_capture_oracle_unittest.ccvideo
cast
cast_config.cc
common
logging
encoding_event_subscriber_unittest.ccreceiver_time_offset_estimator_impl_unittest.ccsimple_event_subscriber_unittest.ccstats_event_subscriber_unittest.cc
net
cast_transport_impl_unittest.cc
pacing
rtcp
receiver_rtcp_event_subscriber_unittest.ccreceiver_rtcp_session.ccrtcp_builder_unittest.ccrtcp_unittest.ccrtcp_utility.ccrtcp_utility_unittest.ccsender_rtcp_session.cc
rtp
sender
audio_encoder.ccaudio_encoder_unittest.ccaudio_sender_unittest.ccav1_encoder.cccongestion_control.cccongestion_control_unittest.ccframe_sender.cch264_vt_encoder_unittest.ccperformance_metrics_overlay.ccvideo_encoder_unittest.ccvideo_sender.ccvideo_sender_unittest.ccvpx_encoder.ccvpx_quantizer_parser_unittest.cc
test
cast_benchmarks.ccend2end_unittest.ccfake_media_source.cc
receiver
audio_decoder_unittest.cccast_message_builder.cccast_message_builder_unittest.ccframe_receiver.ccframe_receiver_unittest.ccreceiver_stats_unittest.ccvideo_decoder_unittest.cc
sender.ccsimulator.ccskewed_single_thread_task_runner.ccskewed_tick_clock.ccutility
cdm
cbcs_decryptor_unittest.cccdm_adapter.cccenc_decryptor_unittest.ccsimple_cdm_allocator.cc
library_cdm
clear_key_cdm
ffmpeg
filters
audio_clock.ccaudio_clock.haudio_clock_unittest.ccaudio_decoder_stream_unittest.ccaudio_decoder_unittest.ccaudio_file_reader.ccaudio_file_reader_unittest.ccaudio_renderer_algorithm.ccaudio_renderer_algorithm_unittest.ccaudio_timestamp_validator_unittest.ccchunk_demuxer_unittest.ccdav1d_video_decoder.ccfake_video_decoder_unittest.ccffmpeg_demuxer.ccffmpeg_demuxer_unittest.ccffmpeg_video_decoder.ccframe_buffer_pool.ccframe_buffer_pool_unittest.ccframe_processor.ccframe_processor_unittest.ccgav1_video_decoder.ccmedia_file_checker.ccmedia_file_checker_unittest.ccpipeline_controller_unittest.ccsource_buffer_range.ccsource_buffer_stream.ccsource_buffer_stream_unittest.ccvideo_cadence_estimator.ccvideo_cadence_estimator_unittest.ccvideo_decoder_stream_unittest.ccvideo_renderer_algorithm.ccvideo_renderer_algorithm_unittest.cc
formats
mp2t
es_adapter_video.cces_adapter_video_unittest.cces_parser_adts_unittest.cces_parser_h264_unittest.cces_parser_mpeg1audio_unittest.ccmp2t_stream_parser_unittest.ccts_section_pes.cc
mp4
webm
fuchsia
audio
fake_audio_consumer.ccfuchsia_audio_capturer_source_test.ccfuchsia_audio_output_device.ccfuchsia_audio_output_device_test.ccfuchsia_audio_renderer.hfuchsia_audio_renderer_test.cc
cdm
common
gpu
android
android_video_encode_accelerator.ccandroid_video_surface_chooser_impl.ccandroid_video_surface_chooser_impl_unittest.cccodec_allocator.cccodec_allocator_unittest.cccodec_buffer_wait_coordinator.hmedia_codec_video_decoder.ccpromotion_hint_aggregator_impl.ccsurface_chooser_helper.ccsurface_chooser_helper_unittest.cc
chromeos
platform_video_frame_pool_unittest.ccplatform_video_frame_utils_unittest.ccvd_video_decode_accelerator.cc
test
v4l2
v4l2_framerate_control.ccv4l2_slice_video_decode_accelerator.ccv4l2_video_decode_accelerator.ccv4l2_video_encode_accelerator.cc
vaapi
video_decode_accelerator_perf_tests.ccvideo_encode_accelerator_perf_tests.ccvideo_encode_accelerator_tests.ccwindows
midi
mojo
clients
common
media_type_converters_unittest.ccmojo_decoder_buffer_converter_unittest.ccmojo_shared_buffer_video_frame_unittest.cc
mojom
speech_recognition_result_mojom_traits.ccspeech_recognition_result_mojom_traits_unittest.ccvideo_encode_accelerator_mojom_traits_unittest.ccvideo_frame_metadata_mojom_traits_unittest.ccvideo_frame_mojom_traits_unittest.cc
services
media_metrics_provider_unittest.ccmojo_cdm_allocator.ccmojo_renderer_service.ccplayback_events_recorder.ccplayback_events_recorder_test.cctest_mojo_media_client.ccwatch_time_recorder.ccwatch_time_recorder_unittest.cc
test
muxers
remoting
courier_renderer.cccourier_renderer_unittest.ccfake_media_resource.ccintegration_test.ccmetrics.ccproto_utils.ccproto_utils_unittest.ccreceiver.ccreceiver_unittest.ccrenderer_controller.ccrenderer_controller_unittest.cc
renderers
audio_renderer_impl_unittest.ccpaint_canvas_video_renderer.ccpaint_canvas_video_renderer_unittest.ccrenderer_impl.hrenderer_impl_unittest.ccshared_image_video_frame_test_utils.ccvideo_renderer_impl.ccvideo_renderer_impl_unittest.ccvideo_resource_updater_unittest.cc
win
test
video
gpu_memory_buffer_video_frame_pool.ccgpu_memory_buffer_video_frame_pool_unittest.ccsoftware_video_encoder_test.ccvideo_encode_accelerator_adapter_test.ccvideo_encoder_fallback_test.ccvpx_video_encoder.cc
webrtc
mojo
core
public
net
android
base
address_tracker_linux_unittest.ccbackoff_entry.ccbackoff_entry_serializer.ccbackoff_entry_serializer_fuzzer.ccbackoff_entry_serializer_unittest.ccelements_upload_data_stream_unittest.ccexpiring_cache.hexpiring_cache_unittest.ccfeatures.ccinterval_test.ccnetwork_change_notifier_linux.ccnetwork_change_notifier_mac.mmnetwork_change_notifier_posix.ccnetwork_change_notifier_win.ccnetwork_config_watcher_mac.ccupload_file_element_reader_unittest.cc
cert
caching_cert_verifier.cccert_verify_proc.cccert_verify_proc_builtin.cccert_verify_proc_builtin_unittest.cccert_verify_proc_unittest.cccoalescing_cert_verifier.ccct_log_response_parser_unittest.ccct_objects_extractor_unittest.ccct_serialization_unittest.cc
internal
crl_unittest.ccocsp_unittest.ccpath_builder_pkits_unittest.ccpath_builder_unittest.ccrevocation_checker.hrevocation_util_unittest.cc
multi_log_ct_verifier.cctrial_comparison_cert_verifier.ccx509_util_unittest.cccert_net
cookies
canonical_cookie_unittest.cccookie_constants.cccookie_monster.cccookie_monster_store_test.cccookie_monster_unittest.cccookie_store_test_helpers.cccookie_store_unittest.hcookie_util_unittest.cc
der
disk_cache
backend_unittest.cc
blockfile
disk_cache_fuzzer.ccdisk_cache_perftest.ccdisk_cache_test_base.ccentry_unittest.ccsimple
dns
context_host_resolver_unittest.ccdns_config.hdns_config_service.ccdns_config_service.hdns_config_service_android.hdns_config_service_linux.ccdns_config_service_posix.ccdns_config_service_posix_unittest.ccdns_config_service_unittest.ccdns_config_service_win.ccdns_response_result_extractor.ccdns_response_result_extractor_unittest.ccdns_test_util.ccdns_test_util.hdns_transaction_unittest.ccdns_udp_tracker.hdns_udp_tracker_unittest.ccdns_util.ccfuzzed_host_resolver_util.cchost_cache.cchost_cache.hhost_cache_unittest.cchost_resolver_manager.cchost_resolver_manager_unittest.cchost_resolver_proc.cchttpssvc_metrics_unittest.ccmdns_cache.ccmdns_cache_unittest.ccmdns_client.ccmdns_client_impl.ccmdns_client_unittest.ccmock_host_resolver.ccresolve_context.ccresolve_context_unittest.cc
extras
sqlite
http
alternative_service.ccbroken_alternative_services.ccbroken_alternative_services_unittest.cchttp_auth_cache_unittest.cchttp_cache_unittest.cchttp_network_transaction_unittest.cchttp_proxy_connect_job.cchttp_proxy_connect_job_unittest.cchttp_response_body_drainer.cchttp_response_info.cchttp_security_headers.cchttp_security_headers_unittest.cchttp_server_properties.cchttp_server_properties_manager.cchttp_server_properties_manager_unittest.cchttp_server_properties_unittest.cchttp_stream_factory_job.cchttp_stream_factory_job_controller.cchttp_stream_factory_job_controller_unittest.cchttp_stream_factory_unittest.cchttp_stream_parser_unittest.cchttp_util.cchttp_util_unittest.cctransport_security_persister_unittest.cctransport_security_state.cctransport_security_state_ct_policies.inctransport_security_state_unittest.cc
log
network_error_logging
nqe
connectivity_monitor.ccconnectivity_monitor_unittest.ccevent_creator_unittest.ccnetwork_quality.ccnetwork_quality_estimator.ccnetwork_quality_estimator_params.ccnetwork_quality_estimator_unittest.ccnetwork_quality_store_unittest.ccobservation_buffer_unittest.ccsocket_watcher.ccsocket_watcher_unittest.ccthroughput_analyzer.ccthroughput_analyzer_unittest.cc
proxy_resolution
configured_proxy_resolution_service_unittest.ccmulti_threaded_proxy_resolver_unittest.ccpac_file_decider.ccpac_file_decider_unittest.ccpac_file_fetcher_impl.ccpac_file_fetcher_impl_unittest.ccproxy_config_service_ios.ccproxy_config_service_linux.ccproxy_list_unittest.cc
win
quic
bidirectional_stream_quic_impl_unittest.cc
crypto
platform
quic_chromium_alarm_factory.ccquic_chromium_client_session.ccquic_chromium_client_session_test.ccquic_chromium_packet_writer.ccquic_client_session_cache_unittests.ccquic_clock_skew_detector.ccquic_clock_skew_detector_test.ccquic_connection_logger.ccquic_connectivity_probing_manager.ccquic_connectivity_probing_manager_test.ccquic_context.hquic_http_stream_test.ccquic_network_transaction_unittest.ccquic_proxy_client_socket_unittest.ccquic_stream_factory.ccquic_stream_factory_test.cctest_task_runner.ccreporting
mock_persistent_reporting_store_unittest.ccreporting_browsing_data_remover_unittest.ccreporting_cache_unittest.ccreporting_delivery_agent_unittest.ccreporting_endpoint_manager_unittest.ccreporting_header_parser.ccreporting_header_parser_fuzzer.ccreporting_header_parser_unittest.ccreporting_network_change_observer_unittest.ccreporting_policy.ccreporting_test_util.cc
socket
client_socket_pool.ccclient_socket_pool_base_unittest.ccclient_socket_pool_manager.ccconnect_job_unittest.ccsocket_test_util.ccsocks_connect_job.ccsocks_connect_job_unittest.ccssl_client_socket_unittest.ccssl_connect_job.ccssl_connect_job_unittest.ccssl_server_socket_unittest.cctcp_client_socket.cctcp_client_socket_unittest.cctcp_socket_posix.cctransport_client_socket_pool.htransport_client_socket_pool_test_util.cctransport_client_socket_pool_unittest.cctransport_connect_job.cctransport_connect_job_unittest.ccudp_socket_posix.ccudp_socket_posix.hwebsocket_endpoint_lock_manager.ccwebsocket_endpoint_lock_manager_unittest.ccwebsocket_transport_client_socket_pool_unittest.ccwebsocket_transport_connect_job.cc
spdy
bidirectional_stream_spdy_impl.ccspdy_http_stream.ccspdy_network_transaction_unittest.ccspdy_session.ccspdy_session_unittest.ccspdy_stream_unittest.cc
ssl
test
tools
stress_cache
url_request
url_fetcher_core.ccurl_fetcher_impl_unittest.ccurl_request_http_job_unittest.ccurl_request_quic_unittest.ccurl_request_throttler_entry.ccurl_request_throttler_simulation_unittest.ccurl_request_unittest.cc
websockets
pdf
ppapi
proxy
shared_impl
printing/backend
remoting
base
auto_thread_unittest.ccconstants.hleaky_bucket.ccleaky_bucket_unittest.ccoauth_token_getter_impl.ccprotobuf_http_client_unittest.ccprotobuf_http_request.hprotobuf_http_request_base.ccprotobuf_http_stream_request.hrate_counter_unittest.ccrsa_key_pair.cctelemetry_log_writer_unittest.cc
client
codec
host
audio_capturer_win.ccbackoff_timer_unittest.ccbasic_desktop_environment.cc
chromeos
clipboard_mac.mmclipboard_win.ccconfig_file_watcher.cccontinue_window.ccdaemon_process.ccdaemon_process_unittest.ccdesktop_session_agent.ccdesktop_session_agent_unittest.ccdesktop_session_win.ccdisconnect_window_win.ccftl_signaling_connector.ccheartbeat_sender.ccheartbeat_sender_unittest.ccinput_injector_mac.ccinput_injector_x11.ccit2me
it2me_confirmation_dialog_linux.ccit2me_confirmation_dialog_mac.mmit2me_confirmation_dialog_win.ccit2me_host.ccit2me_host_unittest.ccit2me_native_messaging_host_ash.ccit2me_native_messaging_host_unittest.cc
keyboard_layout_monitor_chromeos.cckeyboard_layout_monitor_win.cclinux
audio_pipe_reader.ccaudio_pipe_reader_unittest.cccertificate_watcher.cccertificate_watcher_unittest.ccx11_character_injector.ccx11_character_injector_unittest.ccx_server_clipboard.cc
mac
mojo_ipc
mouse_shape_pump.ccprocess_stats_sender_unittest.ccremote_open_url
remote_open_url_client.ccremote_open_url_client_unittest.ccurl_forwarder_configurator_main_win.ccurl_forwarder_configurator_win.cc
remoting_me2me_host.ccremoting_register_support_host_request.ccremoting_register_support_host_request_unittest.ccresizing_host_observer.ccresizing_host_observer_unittest.ccsecurity_key
security_key_auth_handler_posix.ccsecurity_key_auth_handler_win.ccsecurity_key_extension_session_unittest.ccsecurity_key_ipc_client_unittest.ccsecurity_key_ipc_server_unittest.cc
setup
token_validator_base_unittest.ccwin
xmpp_register_support_host_request.ccxmpp_register_support_host_request_unittest.cczombie_host_detector.hzombie_host_detector_unittest.ccios
app
audio
domain
protocol
capture_scheduler.cccapture_scheduler_unittest.ccchromium_socket_factory_unittest.ccconnection_unittest.ccframe_stats.ccframe_stats_unittest.ccice_config.ccice_config_unittest.ccice_connection_to_host.ccice_transport.ccice_transport_unittest.ccjingle_session.ccmonitored_video_stub_unittest.ccnetwork_settings.hperformance_tracker.ccpseudotcp_adapter.ccpseudotcp_adapter_unittest.cctransport_context.ccvideo_frame_pump.ccwebrtc_audio_module.ccwebrtc_audio_source_adapter.ccwebrtc_audio_source_adapter_unittest.ccwebrtc_dummy_video_encoder.ccwebrtc_frame_scheduler_simple.ccwebrtc_frame_scheduler_unittest.ccwebrtc_transport.ccwebrtc_transport_unittest.ccwebrtc_video_encoder_wrapper.ccwebrtc_video_encoder_wrapper_unittest.ccwebrtc_video_stream.cc
signaling
ftl_message_reception_channel.hftl_message_reception_channel_unittest.ccftl_messaging_client.ccftl_registration_manager.ccftl_registration_manager_unittest.ccftl_services_context.hiq_sender_unittest.ccmessage_tracker.cc
test
rlz/lib
sandbox
linux
seccomp-bpf-helpers
services
win
tests
common
services
audio
input_controller.ccinput_controller_unittest.ccinput_sync_writer.ccloopback_stream.ccloopback_stream_unittest.ccoutput_controller.ccoutput_stream.ccowning_audio_manager_accessor.ccservice_metrics.ccservice_metrics_unittest.ccsnooper_node.ccsnooper_node_unittest.ccsync_reader.cc
public
cpp
test
cert_verifier
data_decoder
public
device
battery
generic_sensor
platform_sensor_accelerometer_mac.ccplatform_sensor_chromeos.ccplatform_sensor_chromeos_unittest.ccplatform_sensor_provider_chromeos.ccplatform_sensor_reader_linux.ccplatform_sensor_reader_win.ccplatform_sensor_reader_winrt.ccplatform_sensor_reader_winrt_unittests.cc
geolocation
location_arbitrator.cclocation_arbitrator_unittest.ccnetwork_location_provider.ccnetwork_location_provider_unittest.ccposition_cache_impl.ccpublic_ip_address_location_notifier.ccpublic_ip_address_location_notifier_unittest.ccwifi_data_provider_chromeos.ccwifi_data_provider_common.ccwifi_data_provider_lacros.ccwifi_polling_policy.h
win
serial
test
time_zone_monitor
usb
image_annotation
media_session
network
cookie_manager_unittest.cccookie_settings_unittest.ccupload_progress_tracker.ccupload_progress_tracker_unittest.ccurl_loader_factory.ccurl_loader_unittest.ccwebsocket_throttler.ccwebsocket_throttler_unittest.cc
cors
host_resolver_unittest.cchttp_cache_data_counter_unittest.ccmdns_responder.ccmdns_responder.hmdns_responder_unittest.ccnet_log_proxy_sink_unittest.ccnetwork_context_unittest.ccnetwork_quality_estimator_manager_unittest.ccnetwork_service.ccnetwork_service_proxy_delegate_unittest.ccp2p
public
cpp
resource_scheduler
resource_scheduler.ccresource_scheduler_params_manager.ccresource_scheduler_params_manager_unittest.ccresource_scheduler_unittest.cc
sct_auditing
session_cleanup_cookie_store_unittest.ccthrottling
trust_tokens
test
trust_token_client_data_canonicalization_unittest.cctrust_token_cryptographers_test.cctrust_token_key_commitment_parser.cctrust_token_key_commitment_parser_unittest.cctrust_token_key_commitments_unittest.cctrust_token_key_filtering_unittest.cctrust_token_operation_metrics_recorder_unittest.cctrust_token_parameterization.htrust_token_store_unittest.cctypes_unittest.ccproxy_resolver
proxy_host_resolver_cache.hproxy_host_resolver_cache_unittest.ccproxy_resolver_v8_tracing_unittest.cc
resource_coordinator
memory_instrumentation
public
cpp
memory_instrumentation
service_manager
tests
service_manager
tracing
perfetto
public
cpp
background_tracing
perfetto
stack_sampling
video_capture
public
viz
public
cpp
sql
storage/browser
blob
database
file_system
copy_or_move_operation_delegate.ccfile_stream_reader_test.hfile_system_operation_impl_unittest.ccfile_system_usage_cache.cclocal_file_util_unittest.ccnative_file_util_unittest.ccobfuscated_file_util.ccobfuscated_file_util_memory_delegate_unittest.ccobfuscated_file_util_unittest.ccsandbox_directory_database.ccsandbox_file_system_backend_delegate.ccsandbox_origin_database.cc
quota
test
testing/perf
third_party
blink
common
chrome_debug_urls.ccfeatures.cc
frame
payment_request_token.cctransient_allow_fullscreen_unittest.ccuser_activation_state.ccuser_activation_state_unittest.cc
loader
media
page
privacy_budget
public
common
frame
loader
media
notifications
sms
platform
renderer
bindings
core
v8
modules
v8
serialization
controller
highest_pmf_reporter.cchighest_pmf_reporter_test.ccmemory_usage_monitor.ccmemory_usage_monitor_test.ccoom_intervention_impl.ccoom_intervention_impl_test.cc
performance_manager
user_level_memory_pressure_signal_generator.ccuser_level_memory_pressure_signal_generator_test.cccore
animation
animation.ccanimation_clock.ccanimation_test.cccompositor_animations.cccompositor_animations_test.cc
css
document_timeline.ccdocument_timeline_test.cceffect_stack_test.ccscroll_timeline.ccscroll_timeline_test.cccontent_capture
content_capture_manager.cccontent_capture_task.cccontent_capture_task_histogram_reporter.cccontent_capture_test.cc
css
document_transition
dom
document.ccidle_deadline_test.ccscripted_idle_task_controller.ccscripted_idle_task_controller_test.cc
editing
exported
fileapi
frame
dom_timer.ccframe_view.cclocal_frame.cclocal_frame_ukm_aggregator.cclocal_frame_ukm_aggregator_test.cclocal_frame_view.ccnavigation_rate_limiter.ccoverlay_interstitial_ad_detector.ccperformance_monitor_test.ccsticky_ad_detector.ccweb_frame_widget_test.ccwindow_or_worker_global_scope.cc
html
canvas
conversion_measurement_parsing.ccforms
media
autoplay_uma_helper.cchtml_media_element.cchtml_media_element_event_listeners_test.ccmedia_remoting_interstitial.ccpicture_in_picture_interstitial.cc
parser
track
input
inspector
inspector_emulation_agent.ccinspector_layer_tree_agent.ccinspector_log_agent.ccinspector_overlay_agent.ccinspector_performance_agent.ccthread_debugger.cc
intersection_observer
layout
loader
document_load_timing.ccdocument_load_timing_test.ccdocument_loader.ccfont_preload_manager.ccframe_fetch_context_test.cchttp_refresh_scheduler.ccidleness_detector.ccidleness_detector.hidleness_detector_test.ccinteractive_detector.ccinteractive_detector_test.cclong_task_detector.hlong_task_detector_test.cc
resource
mobile_metrics
origin_trials
page
autoscroll_controller.cc
scrolling
validation_message_client_impl.ccvalidation_message_overlay_delegate_test.ccpaint
first_meaningful_paint_detector_test.ccimage_paint_timing_detector_test.cclargest_contentful_paint_calculator_test.cclink_highlight_impl.cctext_paint_timing_detector_test.cc
scheduler_integration_tests
scroll
mac_scrollbar_animator_impl.mmscroll_animator_test.ccscrollable_area.ccscrollable_area_test.ccscrollbar_theme.ccscrollbar_theme_mac.mm
svg
animation
graphics
testing
timing
memory_info.ccmemory_info_test.ccperformance.ccperformance_mark.ccperformance_test.ccperformance_user_timing.ccprofiler_group.ccprofiler_group_test.cctime_clamper.cctime_clamper_test.ccwindow_performance.ccwindow_performance_test.cc
web_test
workers
xmlhttprequest
modules
ad_auction
animationworklet
animation_worklet_global_scope_test.ccanimation_worklet_proxy_client.ccworklet_animation.ccworklet_animation_effect.ccworklet_animation_test.cc
background_fetch
breakout_box
media_stream_audio_track_underlying_source_test.ccmedia_stream_track_processor_test.ccmedia_stream_video_track_underlying_source_test.ccpushable_media_stream_audio_source_test.cc
canvas
content_index
credentialmanager
device_orientation
document_metadata
eventsource
filesystem
gamepad
geolocation
handwriting
idle
media
media_controls
elements
media_controls_impl.ccmedia_controls_orientation_lock_delegate.hmedia_controls_orientation_lock_delegate_test.ccmediacapturefromelement
html_audio_element_capturer_source.cchtml_video_element_capturer_source.cctimed_canvas_draw_listener.cc
mediarecorder
mediasession
mediasource
mediastream
low_latency_video_renderer_algorithm.cclow_latency_video_renderer_algorithm.hlow_latency_video_renderer_algorithm_unittest.ccmedia_stream_audio_processor.ccmedia_stream_audio_processor_test.ccmedia_stream_constraints_util_audio.ccmedia_stream_video_track.ccmedia_stream_video_track_test.ccprocessed_local_audio_source_test.cctrack_audio_renderer.ccvideo_track_adapter.ccwebaudio_media_stream_audio_sink_test.ccwebmediaplayer_ms.ccwebmediaplayer_ms_compositor.ccwebmediaplayer_ms_test.cc
notifications
payments
peerconnection
media_stream_remote_video_source.ccmedia_stream_remote_video_source_test.ccpeer_connection_dependency_factory.ccrtc_dtmf_sender.ccthermal_resource.ccthermal_resource_test.ccthermal_uma_listener.ccthermal_uma_listener_test.cc
scheduler
sensor
service_worker
service_worker_event_queue.ccservice_worker_event_queue.hservice_worker_event_queue_test.ccservice_worker_global_scope.ccwait_until_observer.cc
speech
vibration
video_rvfc
webaudio
webcodecs
audio_data.ccaudio_data_test.ccencoded_audio_chunk.ccencoded_video_chunk.ccreclaimable_codec.ccvideo_decoder_broker_test.ccvideo_frame.ccvideo_frame_test.ccwebcodecs_logger.cc
webgl
webmidi
webrtc
websockets
webtransport
platform
animation
compositor_color_animation_curve.cccompositor_color_keyframe.cccompositor_filter_keyframe.cccompositor_float_animation_curve.cccompositor_float_keyframe.cccompositor_keyframe_model_test.cccompositor_scroll_offset_animation_curve.cccompositor_transform_keyframe.cc
audio
bindings
blob
fonts
graphics
animation_worklet_mutator_dispatcher_impl.ccanimation_worklet_mutator_dispatcher_impl_test.ccbitmap_image_test.cccanvas_2d_layer_bridge.ccdeferred_image_decoder.ccdeferred_image_decoder_test.cc
gpu
parkable_image.ccparkable_image_manager.ccparkable_image_manager.hparkable_image_test.ccvideo_frame_submitter.ccvideo_frame_submitter_test.ccimage-decoders
avif
gif
jxl
png
webp
instrumentation
loader
fetch
media
buffered_data_source_host_impl.ccbuffered_data_source_host_impl_unittest.cccache_util.ccmulti_buffer.ccmulti_buffer_data_source.ccmulti_buffer_unittest.ccpower_status_helper_unittest.ccresource_multi_buffer_data_provider.ccsmoothness_helper.ccsmoothness_helper_unittest.ccurl_index.ccurl_index_unittest.ccvideo_decode_stats_reporter.ccvideo_decode_stats_reporter_unittest.ccvideo_frame_compositor.ccvideo_frame_compositor_unittest.ccwatch_time_reporter_unittest.ccweb_media_player_impl.ccweb_source_buffer_impl.cc
mediastream
network
peerconnection
gpu_codec_support_waiter.ccrtc_rtp_source.ccrtc_rtp_source_test.ccrtc_video_decoder_adapter.ccrtc_video_decoder_adapter_test.ccrtc_video_decoder_stream_adapter.ccrtc_video_decoder_stream_adapter_test.ccrtc_video_encoder.ccrtc_video_encoder_test.ccwebrtc_audio_sink_test.cc
scheduler
common
cooperative_scheduling_manager.cccooperative_scheduling_manager_unittest.ccfeatures.ccidle_helper.ccidle_helper.hidle_helper_unittest.ccmetrics_helper.ccmetrics_helper_unittest.ccpost_cancellable_task_unittest.ccthread_cpu_throttler.ccthread_load_tracker_unittest.cc
throttling
main_thread
auto_advancing_virtual_time_domain_unittest.cccompositor_priority_experiments.ccdeadline_task_runner_unittest.ccfind_in_page_budget_pool_controller.ccframe_scheduler_impl.ccframe_scheduler_impl_unittest.ccidle_time_estimator_unittest.ccmain_thread_metrics_helper.ccmain_thread_scheduler_impl.ccmain_thread_scheduler_impl_unittest.ccmain_thread_unittest.ccmemory_purge_manager.ccmemory_purge_manager_unittest.ccpage_scheduler_impl.ccpage_scheduler_impl.hpage_scheduler_impl_unittest.ccuser_model.ccuser_model_unittest.ccweb_scoped_virtual_time_pauser.cc
public
test
worker
testing
shape_result_perf_test.ccshaping_line_breaker_perf_test.cctesting_platform_support_with_mock_scheduler.cc
timer_test.ccvideo_capture
widget
compositing
input
elastic_overscroll_controller_bezier.ccelastic_overscroll_controller_bezier_unittest.ccelastic_overscroll_controller_exponential_unittest.ccinput_event_prediction_unittest.ccinput_handler_proxy_unittest.ccmain_thread_event_queue.ccmain_thread_event_queue_unittest.ccmomentum_scroll_jank_tracker.hscroll_predictor_unittest.ccwidget_input_handler_manager.cc
wtf
leveldatabase
libaddressinput
webrtc_overrides
zlib
google
tools
android
io_benchmark
ipc_fuzzer
message_replay
mac
power
power_sampler
ui
accelerated_widget_mac
android
aura
gestures
native_window_occlusion_tracker_win.ccwindow_event_dispatcher_unittest.ccwindow_occlusion_tracker_unittest.ccwindow_unittest.ccbase
accelerators
class_property.hclipboard
cocoa
cursor
ime
ash
linux
win
l10n
prediction
input_filter_unittest_helpers.ccinput_predictor.hinput_predictor_unittest_helpers.hkalman_predictor.cckalman_predictor.hkalman_predictor_unittest.ccleast_squares_predictor_unittest.cclinear_predictor_unittest.cclinear_resampling.cclinear_resampling_unittest.ccprediction_metrics_handler_unittest.cc
scoped_visibility_tracker_unittest.ccuser_activity
x
compositor
animation_throughput_reporter_unittest.cccompositor.hcompositor_lock_unittest.cccompositor_unittest.cclayer_animation_element_unittest.cclayer_animation_sequence_unittest.cclayer_animator.cclayer_animator_unittest.cclayer_owner_unittest.cclayer_unittest.ccscoped_layer_animation_settings.cc
test
animation_throughput_reporter_test_base.ccin_process_context_factory.ccmulti_layer_animator_test_controller.ccthroughput_report_checker.cc
throughput_tracker_unittest.cctotal_animation_throughput_reporter_unittest.cctransform_animation_curve_adapter_unittest.cccompositor_extra
display
fake
mac
manager
content_protection_manager.ccdisplay_configurator.ccdisplay_configurator_unittest.ccdisplay_manager.cctouch_device_manager_unittest.cc
screen.ccevents
android
base_event_utils.ccblink
blink_event_util.ccfling_booster.ccfling_booster_unittest.ccweb_input_event_builders_win_unittest.cc
event_unittest.ccevent_utils.ccfraction_of_time_without_user_input_recorder.ccfraction_of_time_without_user_input_recorder_unittest.ccgesture_detection
filtered_gesture_provider_unittest.ccgesture_detector.ccgesture_provider_config_helper.ccmotion_event_buffer.ccmotion_event_buffer_unittest.ccmotion_event_generic_unittest.ccvelocity_tracker.ccvelocity_tracker_unittest.cc
gestures
blink
fling_curve_unittest.ccgesture_provider_aura_unittest.ccmotion_event_aura_unittest.ccphysics_based_fling_curve.ccphysics_based_fling_curve_unittest.ccmojom
ozone
evdev
event_converter_evdev.cc
libgestures_glue
touch_event_converter_evdev_unittest.cctouch_filter
false_touch_finder_unittest.ccheuristic_stylus_palm_detection_filter_unittest.ccneural_stylus_palm_detection_filter_unittest.ccneural_stylus_palm_detection_filter_util_unittest.ccneural_stylus_palm_report_filter_unittest.ccpalm_detection_filter_factory.ccpalm_detection_filter_factory_unittest.cc
palm_model
keyboard
test
win
x
gfx
android
animation
animation_container_unittest.ccanimation_runner_unittest.ccanimation_unittest.cc
delegated_ink_unittest.ccgpu_fence.cckeyframe
linear_animation.ccmulti_animation.hmulti_animation_unittest.ccslide_animation.hslide_animation_unittest.ccthrob_animation.htween_unittest.ccmojom
paint_throbber.ccwin
gl
angle_platform_impl.ccdelegated_ink_point_renderer_gpu_unittest.ccdual_gpu_state_mac.ccgl_context.ccgl_image_egl.ccgl_surface_egl.ccgl_surface_egl_surface_control.ccgl_surface_presentation_helper.ccgpu_timing.ccswap_chain_presenter.ccsync_control_vsync_provider.ccvsync_provider_win.ccvsync_thread_win.cc
gtk
latency
lottie
message_center
native_theme
ozone
demo
platform
cast
drm
gpu
scenic
wayland
host
org_gnome_mutter_idle_monitor.ccorg_kde_kwin_idle.ccwayland_buffer_manager_host.ccwayland_connection.ccwayland_cursor.ccwayland_event_source.ccwayland_keyboard.ccwayland_keyboard_unittest.ccwayland_pointer_unittest.ccwayland_screen.ccwayland_serial_tracker_unittest.ccwayland_touch.ccwayland_zwp_pointer_gestures.cc
x11
public
platform_window
x11
shell_dialogs
snapshot
touch_selection
longpress_drag_selector.cclongpress_drag_selector_unittest.cctouch_handle.cctouch_handle_unittest.cctouch_selection_controller.cctouch_selection_controller_unittest.cc
views
animation
animation_builder_unittest.ccbounds_animator.hbounds_animator_unittest.ccbubble_slide_animator.ccbubble_slide_animator_unittest.cccompositor_animation_runner_unittest.ccflood_fill_ink_drop_ripple.ccink_drop_highlight_unittest.ccink_drop_impl.ccscroll_animator.ccslide_out_controller.ccslide_out_controller_unittest.ccsquare_ink_drop_ripple.ccwidget_fade_animator.hwidget_fade_animator_unittest.cc
bubble
controls
button
menu
prefix_selector.ccprogress_bar.ccresize_area_unittest.ccscrollbar
slider.ccslider_unittest.cctabbed_pane
textfield
throbber.cccorewm
examples
input_event_activation_protector.cclayout
animating_layout_manager.hanimating_layout_manager_test_util.ccanimating_layout_manager_unittest.cccomposite_layout_tests.cc
mouse_constants.hmouse_watcher.ccrepeat_controller.hrepeat_controller_unittest.ccselection_controller.ccselection_controller_unittest.cctouchui
view_unittest.ccwidget
win
window
wm
weblayer
browser
ads_page_load_metrics_observer_browsertest.cc
android
metrics
background_fetch
background_sync
browser_controls_navigation_state_handler.ccclient_hints_browsertest.cccontent_browser_client_impl.cccookie_manager_impl.ccfavicon
profile_browsertest.ccsafe_browsing
site_isolation_browsertest.ccssl_browsertest.ccsubresource_filter_browsertest.ccrenderer
@ -1146,8 +1146,7 @@ void AwContents::OnComputeScroll(JNIEnv* env,
|
||||
jlong animation_time_millis) {
|
||||
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
||||
browser_view_renderer_.OnComputeScroll(
|
||||
base::TimeTicks() +
|
||||
base::TimeDelta::FromMilliseconds(animation_time_millis));
|
||||
base::TimeTicks() + base::Milliseconds(animation_time_millis));
|
||||
}
|
||||
|
||||
jlong AwContents::ReleasePopupAwContents(JNIEnv* env,
|
||||
@ -1263,9 +1262,8 @@ void AwContents::SmoothScroll(JNIEnv* env,
|
||||
scale *= browser_view_renderer_.dip_scale();
|
||||
|
||||
DCHECK_GE(duration_ms, 0);
|
||||
render_view_host_ext_->SmoothScroll(
|
||||
target_x / scale, target_y / scale,
|
||||
base::TimeDelta::FromMilliseconds(duration_ms));
|
||||
render_view_host_ext_->SmoothScroll(target_x / scale, target_y / scale,
|
||||
base::Milliseconds(duration_ms));
|
||||
}
|
||||
|
||||
void AwContents::OnWebLayoutPageScaleFactorChanged(float page_scale_factor) {
|
||||
|
@ -189,9 +189,8 @@ void AwAppsPackageNamesAllowlistComponentLoaderPolicy::ComponentLoaded(
|
||||
return;
|
||||
}
|
||||
|
||||
base::Time expiry_date =
|
||||
base::Time::UnixEpoch() +
|
||||
base::TimeDelta::FromMillisecondsD(expiry_date_ms.value_or(0.0));
|
||||
base::Time expiry_date = base::Time::UnixEpoch() +
|
||||
base::Milliseconds(expiry_date_ms.value_or(0.0));
|
||||
if (expiry_date <= base::Time::Now()) {
|
||||
RecordAndReportResult(std::move(lookup_callback_),
|
||||
{AllowlistPraseStatus::kExpiredAllowlist});
|
||||
|
@ -51,9 +51,9 @@ std::unique_ptr<base::Value> BuildTestManifest() {
|
||||
auto manifest = std::make_unique<base::Value>(base::Value::Type::DICTIONARY);
|
||||
manifest->SetKey(kBloomFilterNumHashKey, base::Value(kNumHash));
|
||||
manifest->SetKey(kBloomFilterNumBitsKey, base::Value(3 * kNumBitsPerEntry));
|
||||
manifest->SetKey(kExpiryDateKey,
|
||||
base::Value(MillisFromUnixEpoch(
|
||||
base::Time::Now() + base::TimeDelta::FromDays(1))));
|
||||
manifest->SetKey(
|
||||
kExpiryDateKey,
|
||||
base::Value(MillisFromUnixEpoch(base::Time::Now() + base::Days(1))));
|
||||
|
||||
return manifest;
|
||||
}
|
||||
@ -116,8 +116,7 @@ TEST_F(AwAppsPackageNamesAllowlistComponentLoaderPolicyTest,
|
||||
base::flat_map<std::string, base::ScopedFD> fd_map;
|
||||
fd_map[kAllowlistBloomFilterFileName] = OpenAndGetAllowlistFd();
|
||||
std::unique_ptr<base::Value> manifest = BuildTestManifest();
|
||||
base::Time one_day_from_now =
|
||||
base::Time::Now() + base::TimeDelta::FromDays(1);
|
||||
base::Time one_day_from_now = base::Time::Now() + base::Days(1);
|
||||
manifest->SetDoubleKey(kExpiryDateKey, MillisFromUnixEpoch(one_day_from_now));
|
||||
base::Version new_version(kTestAllowlistVersion);
|
||||
|
||||
@ -148,8 +147,7 @@ TEST_F(AwAppsPackageNamesAllowlistComponentLoaderPolicyTest,
|
||||
TestSameVersionAsCache) {
|
||||
base::flat_map<std::string, base::ScopedFD> fd_map;
|
||||
std::unique_ptr<base::Value> manifest = BuildTestManifest();
|
||||
base::Time one_day_from_now =
|
||||
base::Time::Now() + base::TimeDelta::FromDays(1);
|
||||
base::Time one_day_from_now = base::Time::Now() + base::Days(1);
|
||||
base::Version version(kTestAllowlistVersion);
|
||||
|
||||
AppPackageNameLoggingRule expected_record(version, one_day_from_now);
|
||||
@ -304,9 +302,9 @@ TEST_F(AwAppsPackageNamesAllowlistComponentLoaderPolicyTest,
|
||||
base::flat_map<std::string, base::ScopedFD> fd_map;
|
||||
fd_map[kAllowlistBloomFilterFileName] = OpenAndGetAllowlistFd();
|
||||
std::unique_ptr<base::Value> manifest = BuildTestManifest();
|
||||
manifest->SetKey(kExpiryDateKey,
|
||||
base::Value(MillisFromUnixEpoch(
|
||||
base::Time::Now() - base::TimeDelta::FromDays(1))));
|
||||
manifest->SetKey(
|
||||
kExpiryDateKey,
|
||||
base::Value(MillisFromUnixEpoch(base::Time::Now() - base::Days(1))));
|
||||
|
||||
auto policy =
|
||||
std::make_unique<AwAppsPackageNamesAllowlistComponentLoaderPolicy>(
|
||||
|
@ -71,7 +71,7 @@ class VizClient : public viz::mojom::CompositorFrameSinkClient {
|
||||
int max_pending_frames,
|
||||
int frame_rate)
|
||||
: max_pending_frames_(max_pending_frames),
|
||||
frame_interval_(base::TimeDelta::FromSeconds(1) / frame_rate) {
|
||||
frame_interval_(base::Seconds(1) / frame_rate) {
|
||||
support_ = std::make_unique<viz::CompositorFrameSinkSupport>(
|
||||
this,
|
||||
VizCompositorThreadRunnerWebView::GetInstance()->GetFrameSinkManager(),
|
||||
|
@ -242,7 +242,7 @@ void JNI_AwMetricsServiceClient_SetUploadIntervalForTesting(
|
||||
JNIEnv* env,
|
||||
jlong upload_interval_ms) {
|
||||
AwMetricsServiceClient::GetInstance()->SetUploadIntervalForTesting(
|
||||
base::TimeDelta::FromMilliseconds(upload_interval_ms));
|
||||
base::Milliseconds(upload_interval_ms));
|
||||
}
|
||||
|
||||
// static
|
||||
@ -263,8 +263,7 @@ void JNI_AwMetricsServiceClient_SetAppPackageNameLoggingRuleForTesting(
|
||||
AwMetricsServiceClient::GetInstance()->SetAppPackageNameLoggingRule(
|
||||
AppPackageNameLoggingRule(
|
||||
base::Version(base::android::ConvertJavaStringToUTF8(env, version)),
|
||||
base::Time::UnixEpoch() +
|
||||
base::TimeDelta::FromMilliseconds(expiry_date_ms)));
|
||||
base::Time::UnixEpoch() + base::Milliseconds(expiry_date_ms)));
|
||||
}
|
||||
|
||||
} // namespace android_webview
|
||||
|
@ -91,7 +91,7 @@ TEST_F(AwMetricsServiceClientTest, TestShouldRecordPackageName_WithCache) {
|
||||
AwMetricsServiceClient* client = GetClient();
|
||||
TestingPrefServiceSimple* prefs = GetPrefs();
|
||||
|
||||
auto one_day_from_now = base::Time::Now() + base::TimeDelta::FromDays(1);
|
||||
auto one_day_from_now = base::Time::Now() + base::Days(1);
|
||||
AppPackageNameLoggingRule expected_record(
|
||||
base::Version(kTestAllowlistVersion), one_day_from_now);
|
||||
prefs->Set(prefs::kMetricsAppPackageNameLoggingRule,
|
||||
@ -146,7 +146,7 @@ TEST_F(AwMetricsServiceClientTest,
|
||||
scoped_list.InitAndEnableFeature(
|
||||
android_webview::features::kWebViewAppsPackageNamesAllowlist);
|
||||
|
||||
auto one_day_from_now = base::Time::Now() + base::TimeDelta::FromDays(1);
|
||||
auto one_day_from_now = base::Time::Now() + base::Days(1);
|
||||
|
||||
AwMetricsServiceClient* client = GetClient();
|
||||
AppPackageNameLoggingRule expected_record(
|
||||
@ -175,7 +175,7 @@ TEST_F(AwMetricsServiceClientTest,
|
||||
scoped_list.InitAndEnableFeature(
|
||||
android_webview::features::kWebViewAppsPackageNamesAllowlist);
|
||||
|
||||
auto one_day_from_now = base::Time::Now() + base::TimeDelta::FromDays(1);
|
||||
auto one_day_from_now = base::Time::Now() + base::Days(1);
|
||||
|
||||
AwMetricsServiceClient* client = GetClient();
|
||||
AppPackageNameLoggingRule expected_record(
|
||||
@ -229,9 +229,8 @@ TEST_F(AwMetricsServiceClientTest, TestShouldRecordPackageName_SameAsCache) {
|
||||
AwMetricsServiceClient* client = GetClient();
|
||||
TestingPrefServiceSimple* prefs = GetPrefs();
|
||||
|
||||
AppPackageNameLoggingRule record(
|
||||
base::Version(kTestAllowlistVersion),
|
||||
base::Time::Now() + base::TimeDelta::FromDays(1));
|
||||
AppPackageNameLoggingRule record(base::Version(kTestAllowlistVersion),
|
||||
base::Time::Now() + base::Days(1));
|
||||
prefs->Set(prefs::kMetricsAppPackageNameLoggingRule, record.ToDictionary());
|
||||
client->SetAppPackageNameLoggingRule(record);
|
||||
|
||||
|
@ -222,20 +222,20 @@ void VisibilityMetricsLogger::RecordVisibilityMetrics() {
|
||||
any_webview_visible_seconds =
|
||||
visible_duration_tracker_.any_webview_tracked_duration_.InSeconds();
|
||||
visible_duration_tracker_.any_webview_tracked_duration_ -=
|
||||
base::TimeDelta::FromSeconds(any_webview_visible_seconds);
|
||||
base::Seconds(any_webview_visible_seconds);
|
||||
no_webview_visible_seconds =
|
||||
visible_duration_tracker_.no_webview_tracked_duration_.InSeconds();
|
||||
visible_duration_tracker_.no_webview_tracked_duration_ -=
|
||||
base::TimeDelta::FromSeconds(no_webview_visible_seconds);
|
||||
base::Seconds(no_webview_visible_seconds);
|
||||
|
||||
total_webview_visible_seconds =
|
||||
visible_duration_tracker_.per_webview_duration_.InSeconds();
|
||||
visible_duration_tracker_.per_webview_duration_ -=
|
||||
base::TimeDelta::FromSeconds(total_webview_visible_seconds);
|
||||
base::Seconds(total_webview_visible_seconds);
|
||||
total_no_webview_visible_seconds =
|
||||
visible_duration_tracker_.per_webview_untracked_duration_.InSeconds();
|
||||
visible_duration_tracker_.per_webview_untracked_duration_ -=
|
||||
base::TimeDelta::FromSeconds(total_no_webview_visible_seconds);
|
||||
base::Seconds(total_no_webview_visible_seconds);
|
||||
|
||||
if (any_webview_visible_seconds) {
|
||||
GetGlobalVisibilityHistogram()->AddCount(
|
||||
@ -266,20 +266,20 @@ void VisibilityMetricsLogger::RecordOpenWebDisplayMetrics() {
|
||||
any_webcontent_visible_seconds =
|
||||
webcontent_visible_tracker_.any_webview_tracked_duration_.InSeconds();
|
||||
webcontent_visible_tracker_.any_webview_tracked_duration_ -=
|
||||
base::TimeDelta::FromSeconds(any_webcontent_visible_seconds);
|
||||
base::Seconds(any_webcontent_visible_seconds);
|
||||
no_webcontent_visible_seconds =
|
||||
webcontent_visible_tracker_.no_webview_tracked_duration_.InSeconds();
|
||||
webcontent_visible_tracker_.no_webview_tracked_duration_ -=
|
||||
base::TimeDelta::FromSeconds(no_webcontent_visible_seconds);
|
||||
base::Seconds(no_webcontent_visible_seconds);
|
||||
|
||||
total_webcontent_isible_seconds =
|
||||
webcontent_visible_tracker_.per_webview_duration_.InSeconds();
|
||||
webcontent_visible_tracker_.per_webview_duration_ -=
|
||||
base::TimeDelta::FromSeconds(total_webcontent_isible_seconds);
|
||||
base::Seconds(total_webcontent_isible_seconds);
|
||||
total_not_webcontent_or_not_visible_seconds =
|
||||
webcontent_visible_tracker_.per_webview_untracked_duration_.InSeconds();
|
||||
webcontent_visible_tracker_.per_webview_untracked_duration_ -=
|
||||
base::TimeDelta::FromSeconds(total_not_webcontent_or_not_visible_seconds);
|
||||
base::Seconds(total_not_webcontent_or_not_visible_seconds);
|
||||
|
||||
if (any_webcontent_visible_seconds) {
|
||||
GetGlobalOpenWebVisibilityHistogram()->AddCount(
|
||||
@ -313,7 +313,7 @@ void VisibilityMetricsLogger::RecordScreenPortionMetrics() {
|
||||
continue;
|
||||
|
||||
open_web_screen_portion_tracked_duration_[i] -=
|
||||
base::TimeDelta::FromSeconds(elapsed_seconds);
|
||||
base::Seconds(elapsed_seconds);
|
||||
GetOpenWebVisibileScreenPortionHistogram()->AddCount(i, elapsed_seconds);
|
||||
}
|
||||
}
|
||||
|
@ -116,17 +116,14 @@ class VisibilityMetricsLogger {
|
||||
|
||||
struct WebViewDurationTracker {
|
||||
// Duration any WebView meets the tracking criteria
|
||||
base::TimeDelta any_webview_tracked_duration_ =
|
||||
base::TimeDelta::FromSeconds(0);
|
||||
base::TimeDelta any_webview_tracked_duration_ = base::Seconds(0);
|
||||
// Duration no WebViews meet the tracking criteria
|
||||
base::TimeDelta no_webview_tracked_duration_ =
|
||||
base::TimeDelta::FromSeconds(0);
|
||||
base::TimeDelta no_webview_tracked_duration_ = base::Seconds(0);
|
||||
// Total duration that WebViews meet the tracking criteria (i.e. if
|
||||
// 2x WebViews meet the criteria for 1 second then increment by 2 seconds)
|
||||
base::TimeDelta per_webview_duration_ = base::TimeDelta::FromSeconds(0);
|
||||
base::TimeDelta per_webview_duration_ = base::Seconds(0);
|
||||
// Total duration that WebViews exist but do not meet the tracking criteria
|
||||
base::TimeDelta per_webview_untracked_duration_ =
|
||||
base::TimeDelta::FromSeconds(0);
|
||||
base::TimeDelta per_webview_untracked_duration_ = base::Seconds(0);
|
||||
};
|
||||
|
||||
WebViewDurationTracker visible_duration_tracker_;
|
||||
|
@ -89,14 +89,14 @@ TEST_F(VisibilityMetricsLoggerTest, TestFractionalSecondAccumulation) {
|
||||
client->SetViewAttached(true);
|
||||
client->SetWindowVisible(true);
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromMilliseconds(500));
|
||||
task_environment().FastForwardBy(base::Milliseconds(500));
|
||||
|
||||
logger()->RecordMetrics();
|
||||
histogram_tester.ExpectBucketCount(
|
||||
"Android.WebView.Visibility.Global",
|
||||
VisibilityMetricsLogger::Visibility::kVisible, 0);
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromMilliseconds(500));
|
||||
task_environment().FastForwardBy(base::Milliseconds(500));
|
||||
|
||||
logger()->RecordMetrics();
|
||||
histogram_tester.ExpectBucketCount(
|
||||
@ -109,16 +109,16 @@ TEST_F(VisibilityMetricsLoggerTest, TestFractionalSecondAccumulation) {
|
||||
TEST_F(VisibilityMetricsLoggerTest, TestSingleVisibleClient) {
|
||||
base::HistogramTester histogram_tester;
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(10));
|
||||
task_environment().FastForwardBy(base::Seconds(10));
|
||||
std::unique_ptr<TestClient> client = std::make_unique<TestClient>(logger());
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(30));
|
||||
task_environment().FastForwardBy(base::Seconds(30));
|
||||
client->SetViewVisible(true);
|
||||
client->SetViewAttached(true);
|
||||
client->SetWindowVisible(true);
|
||||
client->SetSchemeHttpOrHttps(true);
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(10));
|
||||
task_environment().FastForwardBy(base::Seconds(10));
|
||||
client->SetWindowVisible(false);
|
||||
|
||||
logger()->RecordMetrics();
|
||||
@ -143,7 +143,7 @@ TEST_F(VisibilityMetricsLoggerTest, TestSingleVisibleClient) {
|
||||
client->SetViewAttached(true);
|
||||
client->SetWindowVisible(true);
|
||||
client->SetSchemeHttpOrHttps(false);
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(90));
|
||||
task_environment().FastForwardBy(base::Seconds(90));
|
||||
|
||||
logger()->RecordMetrics();
|
||||
histogram_tester.ExpectBucketCount(
|
||||
@ -170,20 +170,20 @@ TEST_F(VisibilityMetricsLoggerTest, TestLongDurationVisibleClient) {
|
||||
std::unique_ptr<TestClient> client1 = std::make_unique<TestClient>(logger());
|
||||
std::unique_ptr<TestClient> client2 = std::make_unique<TestClient>(logger());
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(300));
|
||||
task_environment().FastForwardBy(base::Seconds(300));
|
||||
client1->SetViewVisible(true);
|
||||
client1->SetViewAttached(true);
|
||||
client1->SetWindowVisible(true);
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(50));
|
||||
task_environment().FastForwardBy(base::Seconds(50));
|
||||
client2->SetViewVisible(true);
|
||||
client2->SetViewAttached(true);
|
||||
client2->SetWindowVisible(true);
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(50));
|
||||
task_environment().FastForwardBy(base::Seconds(50));
|
||||
client2.reset();
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(50));
|
||||
task_environment().FastForwardBy(base::Seconds(50));
|
||||
client1.reset();
|
||||
|
||||
logger()->RecordMetrics();
|
||||
@ -217,32 +217,32 @@ TEST_F(VisibilityMetricsLoggerTest, TestTwoVisibleClients) {
|
||||
base::HistogramTester histogram_tester;
|
||||
std::unique_ptr<TestClient> client1 = std::make_unique<TestClient>(logger());
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(10));
|
||||
task_environment().FastForwardBy(base::Seconds(10));
|
||||
std::unique_ptr<TestClient> client2 = std::make_unique<TestClient>(logger());
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(30));
|
||||
task_environment().FastForwardBy(base::Seconds(30));
|
||||
// This queues delayed recording after 60 seconds (test-defined)
|
||||
client1->SetViewVisible(true);
|
||||
client1->SetViewAttached(true);
|
||||
client1->SetWindowVisible(true);
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(10));
|
||||
task_environment().FastForwardBy(base::Seconds(10));
|
||||
// No additional task is queued
|
||||
client2->SetViewVisible(true);
|
||||
client2->SetViewAttached(true);
|
||||
client2->SetWindowVisible(true);
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(10));
|
||||
task_environment().FastForwardBy(base::Seconds(10));
|
||||
// This does not cause metrics to be recorded because one client remains
|
||||
// visible.
|
||||
client1->SetWindowVisible(false);
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(10));
|
||||
task_environment().FastForwardBy(base::Seconds(10));
|
||||
// The last client becoming invisible triggers immediate recording and the
|
||||
// cancellation of the queued task.
|
||||
client2->SetWindowVisible(false);
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(30));
|
||||
task_environment().FastForwardBy(base::Seconds(30));
|
||||
client1.reset();
|
||||
client2.reset();
|
||||
|
||||
@ -284,36 +284,36 @@ TEST_F(VisibilityMetricsLoggerTest, TestTwoVisibleWebContentClients) {
|
||||
base::HistogramTester histogram_tester;
|
||||
std::unique_ptr<TestClient> client1 = std::make_unique<TestClient>(logger());
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(10));
|
||||
task_environment().FastForwardBy(base::Seconds(10));
|
||||
std::unique_ptr<TestClient> client2 = std::make_unique<TestClient>(logger());
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(30));
|
||||
task_environment().FastForwardBy(base::Seconds(30));
|
||||
// This queues delayed recording after 60 seconds (test-defined)
|
||||
client1->SetViewVisible(true);
|
||||
client1->SetViewAttached(true);
|
||||
client1->SetWindowVisible(true);
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(10));
|
||||
task_environment().FastForwardBy(base::Seconds(10));
|
||||
// No additional task is queued
|
||||
client1->SetSchemeHttpOrHttps(true);
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(10));
|
||||
task_environment().FastForwardBy(base::Seconds(10));
|
||||
// No additional task is queued
|
||||
client2->SetViewVisible(true);
|
||||
client2->SetViewAttached(true);
|
||||
client2->SetWindowVisible(true);
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(10));
|
||||
task_environment().FastForwardBy(base::Seconds(10));
|
||||
// This does not cause metrics to be recorded because one client remains
|
||||
// visible.
|
||||
client1->SetWindowVisible(false);
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(10));
|
||||
task_environment().FastForwardBy(base::Seconds(10));
|
||||
// The last client becoming invisible triggers immediate recording and the
|
||||
// cancellation of the queued task.
|
||||
client2->SetWindowVisible(false);
|
||||
|
||||
task_environment().FastForwardBy(base::TimeDelta::FromSeconds(20));
|
||||
task_environment().FastForwardBy(base::Seconds(20));
|
||||
client1.reset();
|
||||
client2.reset();
|
||||
|
||||
|
@ -72,10 +72,10 @@ net::NetworkChangeNotifier::NetworkChangeCalculatorParams
|
||||
AwNetworkChangeNotifier::DefaultNetworkChangeCalculatorParams() {
|
||||
net::NetworkChangeNotifier::NetworkChangeCalculatorParams params;
|
||||
// Use defaults as in network_change_notifier_android.cc
|
||||
params.ip_address_offline_delay_ = base::TimeDelta::FromSeconds(1);
|
||||
params.ip_address_online_delay_ = base::TimeDelta::FromSeconds(1);
|
||||
params.connection_type_offline_delay_ = base::TimeDelta::FromSeconds(0);
|
||||
params.connection_type_online_delay_ = base::TimeDelta::FromSeconds(0);
|
||||
params.ip_address_offline_delay_ = base::Seconds(1);
|
||||
params.ip_address_online_delay_ = base::Seconds(1);
|
||||
params.connection_type_offline_delay_ = base::Seconds(0);
|
||||
params.connection_type_online_delay_ = base::Seconds(0);
|
||||
return params;
|
||||
}
|
||||
|
||||
|
@ -246,9 +246,9 @@ TEST_F(AndroidWebViewStateSerializerTest,
|
||||
EXPECT_EQ(base_url_for_data_url, copy->GetBaseURLForDataURL());
|
||||
EXPECT_FALSE(copy->GetDataURLAsString());
|
||||
EXPECT_EQ(is_overriding_user_agent, copy->GetIsOverridingUserAgent());
|
||||
EXPECT_EQ(base::Time::FromDeltaSinceWindowsEpoch(
|
||||
base::TimeDelta::FromMicroseconds(timestamp)),
|
||||
copy->GetTimestamp());
|
||||
EXPECT_EQ(
|
||||
base::Time::FromDeltaSinceWindowsEpoch(base::Microseconds(timestamp)),
|
||||
copy->GetTimestamp());
|
||||
EXPECT_EQ(http_status_code, copy->GetHttpStatusCode());
|
||||
}
|
||||
|
||||
|
@ -29,8 +29,7 @@ class AppPackageNameLoggingRuleTest : public testing::Test {
|
||||
|
||||
TEST_F(AppPackageNameLoggingRuleTest, TestFromDictionary) {
|
||||
base::Version version(kTestAllowlistVersion);
|
||||
base::Time one_day_from_now =
|
||||
base::Time::Now() + base::TimeDelta::FromDays(1);
|
||||
base::Time one_day_from_now = base::Time::Now() + base::Days(1);
|
||||
{
|
||||
AppPackageNameLoggingRule expected_record(version, one_day_from_now);
|
||||
absl::optional<AppPackageNameLoggingRule> record =
|
||||
|
@ -55,7 +55,7 @@ void AwRenderThreadObserver::EnableIdleThrottling(int32_t policy,
|
||||
float min_cputime_ratio) {
|
||||
power_scheduler::SchedulingPolicyParams params{
|
||||
(power_scheduler::SchedulingPolicy)policy,
|
||||
base::TimeDelta::FromMilliseconds(min_time_ms), min_cputime_ratio};
|
||||
base::Milliseconds(min_time_ms), min_cputime_ratio};
|
||||
power_scheduler::PowerScheduler::GetInstance()->SetPolicy(params);
|
||||
}
|
||||
|
||||
|
@ -141,8 +141,7 @@ constexpr char kSideVolumeButtonLocationFilePath[] =
|
||||
"/usr/share/chromeos-assets/side_volume_button/location.json";
|
||||
|
||||
// The interval between two volume control actions within one volume adjust.
|
||||
constexpr base::TimeDelta kVolumeAdjustTimeout =
|
||||
base::TimeDelta::FromSeconds(2);
|
||||
constexpr base::TimeDelta kVolumeAdjustTimeout = base::Seconds(2);
|
||||
|
||||
// These values are written to logs. New enum values can be added, but existing
|
||||
// enums must never be renumbered or deleted and reused.
|
||||
|
@ -127,8 +127,7 @@ void ExitWarningHandler::TimerAction() {
|
||||
void ExitWarningHandler::StartTimer() {
|
||||
if (stub_timer_for_test_)
|
||||
return;
|
||||
timer_.Start(FROM_HERE,
|
||||
base::TimeDelta::FromMilliseconds(kTimeOutMilliseconds), this,
|
||||
timer_.Start(FROM_HERE, base::Milliseconds(kTimeOutMilliseconds), this,
|
||||
&ExitWarningHandler::TimerAction);
|
||||
}
|
||||
|
||||
|
@ -95,16 +95,14 @@ constexpr size_t kDataSize = 2;
|
||||
constexpr int kSizeOfReading = kDataSize * kNumberOfAxes;
|
||||
|
||||
// The time to wait between reading the accelerometer.
|
||||
constexpr base::TimeDelta kDelayBetweenReads =
|
||||
base::TimeDelta::FromMilliseconds(100);
|
||||
constexpr base::TimeDelta kDelayBetweenReads = base::Milliseconds(100);
|
||||
|
||||
// The TimeDelta before giving up on initialization. This is needed because the
|
||||
// sensor hub might not be online when the Initialize function is called.
|
||||
constexpr base::TimeDelta kInitializeTimeout = base::TimeDelta::FromSeconds(5);
|
||||
constexpr base::TimeDelta kInitializeTimeout = base::Seconds(5);
|
||||
|
||||
// The time between initialization checks.
|
||||
constexpr base::TimeDelta kDelayBetweenInitChecks =
|
||||
base::TimeDelta::FromMilliseconds(500);
|
||||
constexpr base::TimeDelta kDelayBetweenInitChecks = base::Milliseconds(500);
|
||||
|
||||
// Reads |path| to the unsigned int pointed to by |value|. Returns true on
|
||||
// success or false on failure.
|
||||
|
@ -22,12 +22,10 @@ namespace ash {
|
||||
namespace {
|
||||
|
||||
// Delay of the reconnection to Sensor Hal Dispatcher.
|
||||
constexpr base::TimeDelta kDelayReconnect =
|
||||
base::TimeDelta::FromMilliseconds(1000);
|
||||
constexpr base::TimeDelta kDelayReconnect = base::Milliseconds(1000);
|
||||
|
||||
// Timeout for the late-present devices: 10 seconds.
|
||||
constexpr base::TimeDelta kNewDevicesTimeout =
|
||||
base::TimeDelta::FromMilliseconds(10000);
|
||||
constexpr base::TimeDelta kNewDevicesTimeout = base::Milliseconds(10000);
|
||||
|
||||
} // namespace
|
||||
|
||||
|
@ -1610,7 +1610,7 @@ void AccessibilityControllerImpl::ObservePrefs(PrefService* prefs) {
|
||||
|
||||
void AccessibilityControllerImpl::UpdateAutoclickDelayFromPref() {
|
||||
DCHECK(active_user_prefs_);
|
||||
base::TimeDelta autoclick_delay = base::TimeDelta::FromMilliseconds(int64_t{
|
||||
base::TimeDelta autoclick_delay = base::Milliseconds(int64_t{
|
||||
active_user_prefs_->GetInteger(prefs::kAccessibilityAutoclickDelayMs)});
|
||||
|
||||
if (autoclick_delay_ == autoclick_delay)
|
||||
|
@ -69,7 +69,7 @@ views::Widget::InitParams CreateAutoclickOverlayWidgetParams(
|
||||
|
||||
// static.
|
||||
base::TimeDelta AutoclickController::GetDefaultAutoclickDelay() {
|
||||
return base::TimeDelta::FromMilliseconds(int64_t{kDefaultAutoclickDelayMs});
|
||||
return base::Milliseconds(int64_t{kDefaultAutoclickDelayMs});
|
||||
}
|
||||
|
||||
AutoclickController::AutoclickController()
|
||||
|
@ -43,8 +43,8 @@ class AutoclickScrollPositionHandler : public gfx::AnimationDelegate {
|
||||
void SetScrollPointCenterInScreen(const gfx::Point& scroll_point_center);
|
||||
|
||||
private:
|
||||
static constexpr auto kOpaqueTime = base::TimeDelta::FromMilliseconds(500);
|
||||
static constexpr auto kFadeTime = base::TimeDelta::FromMilliseconds(500);
|
||||
static constexpr auto kOpaqueTime = base::Milliseconds(500);
|
||||
static constexpr auto kFadeTime = base::Milliseconds(500);
|
||||
|
||||
// gfx::AnimationDelegate:
|
||||
void AnimationProgressed(const gfx::Animation* animation) override;
|
||||
|
@ -145,8 +145,7 @@ class AutoclickTest : public AshTestBase {
|
||||
}
|
||||
|
||||
void FastForwardBy(int milliseconds) {
|
||||
task_environment()->FastForwardBy(
|
||||
base::TimeDelta::FromMilliseconds(milliseconds));
|
||||
task_environment()->FastForwardBy(base::Milliseconds(milliseconds));
|
||||
}
|
||||
|
||||
AutoclickController* GetAutoclickController() {
|
||||
@ -159,8 +158,7 @@ class AutoclickTest : public AshTestBase {
|
||||
float ratio =
|
||||
GetAutoclickController()->GetStartGestureDelayRatioForTesting();
|
||||
int full_delay = ceil(1.0 / ratio) * animation_delay;
|
||||
GetAutoclickController()->SetAutoclickDelay(
|
||||
base::TimeDelta::FromMilliseconds(full_delay));
|
||||
GetAutoclickController()->SetAutoclickDelay(base::Milliseconds(full_delay));
|
||||
return full_delay;
|
||||
}
|
||||
|
||||
@ -486,16 +484,14 @@ TEST_F(AutoclickTest, UserInputCancelsAutoclick) {
|
||||
// Test another gesture.
|
||||
GetEventGenerator()->MoveMouseTo(100, 100);
|
||||
GetEventGenerator()->GestureScrollSequence(
|
||||
gfx::Point(100, 100), gfx::Point(200, 200),
|
||||
base::TimeDelta::FromMilliseconds(200), 3);
|
||||
gfx::Point(100, 100), gfx::Point(200, 200), base::Milliseconds(200), 3);
|
||||
events = WaitForMouseEvents();
|
||||
EXPECT_EQ(0u, events.size());
|
||||
|
||||
// Test scroll events.
|
||||
GetEventGenerator()->MoveMouseTo(200, 200);
|
||||
GetEventGenerator()->ScrollSequence(gfx::Point(100, 100),
|
||||
base::TimeDelta::FromMilliseconds(200), 0,
|
||||
100, 3, 2);
|
||||
base::Milliseconds(200), 0, 100, 3, 2);
|
||||
events = WaitForMouseEvents();
|
||||
EXPECT_EQ(0u, events.size());
|
||||
|
||||
|
@ -43,7 +43,7 @@ class KeyAccessibilityEnablerTest : public AshTestBase,
|
||||
|
||||
void WaitForAccessibilityStatusChanged() {
|
||||
run_loop_ = std::make_unique<base::RunLoop>();
|
||||
clock_.Advance(base::TimeDelta::FromMilliseconds(5000));
|
||||
clock_.Advance(base::Milliseconds(5000));
|
||||
run_loop_->Run();
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@ namespace ash {
|
||||
namespace {
|
||||
|
||||
// Delay between timer callbacks. Each one plays a tick sound.
|
||||
constexpr base::TimeDelta kTimerDelay = base::TimeDelta::FromMilliseconds(500);
|
||||
constexpr base::TimeDelta kTimerDelay = base::Milliseconds(500);
|
||||
|
||||
// The number of ticks of the timer before the first sound is generated.
|
||||
constexpr int kTimerTicksOfFirstSoundFeedback = 6;
|
||||
|
@ -25,7 +25,7 @@ namespace ash {
|
||||
namespace {
|
||||
|
||||
// Delay between timer callbacks. Each one plays a tick sound.
|
||||
constexpr auto kTimerDelay = base::TimeDelta::FromMilliseconds(500);
|
||||
constexpr auto kTimerDelay = base::Milliseconds(500);
|
||||
|
||||
// The number of ticks of the timer before the first sound is generated.
|
||||
constexpr int kTimerTicksOfFirstSoundFeedback = 6;
|
||||
|
@ -75,7 +75,7 @@ class TouchAccessibilityEnablerTest : public aura::test::AuraTestBase {
|
||||
generator_ = std::make_unique<ui::test::EventGenerator>(root_window());
|
||||
|
||||
// Tests fail if time is ever 0.
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(10));
|
||||
simulated_clock_.Advance(base::Milliseconds(10));
|
||||
ui::SetEventTickClockForTesting(&simulated_clock_);
|
||||
|
||||
enabler_ =
|
||||
@ -119,7 +119,7 @@ TEST_F(TouchAccessibilityEnablerTest, InteractsWithTouchExplorationController) {
|
||||
generator_->set_current_screen_location(gfx::Point(11, 12));
|
||||
generator_->PressTouchId(1);
|
||||
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(500));
|
||||
simulated_clock_.Advance(base::Milliseconds(500));
|
||||
|
||||
generator_->set_current_screen_location(gfx::Point(22, 34));
|
||||
generator_->PressTouchId(2);
|
||||
@ -168,7 +168,7 @@ TEST_F(TouchAccessibilityEnablerTest, PlaysProgressSound) {
|
||||
enabler_->TriggerOnTimerForTesting();
|
||||
EXPECT_EQ(0U, delegate_.feedback_progress_sound_count());
|
||||
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(3000));
|
||||
simulated_clock_.Advance(base::Milliseconds(3000));
|
||||
enabler_->TriggerOnTimerForTesting();
|
||||
EXPECT_EQ(1U, delegate_.feedback_progress_sound_count());
|
||||
}
|
||||
@ -189,7 +189,7 @@ TEST_F(TouchAccessibilityEnablerTest, TogglesSpokenFeedback) {
|
||||
enabler_->TriggerOnTimerForTesting();
|
||||
EXPECT_FALSE(delegate_.toggle_spoken_feedback());
|
||||
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(5000));
|
||||
simulated_clock_.Advance(base::Milliseconds(5000));
|
||||
enabler_->TriggerOnTimerForTesting();
|
||||
EXPECT_TRUE(delegate_.toggle_spoken_feedback());
|
||||
EXPECT_TRUE(delegate_.started());
|
||||
|
@ -46,7 +46,7 @@ const int kSoundDelayInMS = 150;
|
||||
|
||||
// How long the user must stay in the same anchor point in touch exploration
|
||||
// before a right-click is triggered.
|
||||
const base::TimeDelta kLongPressTimerDelay = base::TimeDelta::FromSeconds(5);
|
||||
const base::TimeDelta kLongPressTimerDelay = base::Seconds(5);
|
||||
|
||||
void SetTouchAccessibilityFlag(ui::Event* event) {
|
||||
// This flag is used to identify mouse move events that were generated from
|
||||
@ -711,8 +711,7 @@ ui::EventDispatchDetails TouchExplorationController::InSlideGesture(
|
||||
// This can occur if the user leaves the screen edge and then returns to it to
|
||||
// continue adjusting the sound.
|
||||
if (!sound_timer_.IsRunning()) {
|
||||
sound_timer_.Start(FROM_HERE,
|
||||
base::TimeDelta::FromMilliseconds(kSoundDelayInMS), this,
|
||||
sound_timer_.Start(FROM_HERE, base::Milliseconds(kSoundDelayInMS), this,
|
||||
&TouchExplorationController::PlaySoundForTimer);
|
||||
delegate_->PlayVolumeAdjustEarcon();
|
||||
}
|
||||
|
@ -183,7 +183,7 @@ class TouchExplorationTest : public aura::test::AuraTestBase {
|
||||
generator_ = std::make_unique<ui::test::EventGenerator>(root_window());
|
||||
|
||||
// Tests fail if time is ever 0.
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(10));
|
||||
simulated_clock_.Advance(base::Milliseconds(10));
|
||||
// ui takes ownership of the tick clock.
|
||||
ui::SetEventTickClockForTesting(&simulated_clock_);
|
||||
|
||||
@ -250,17 +250,17 @@ class TouchExplorationTest : public aura::test::AuraTestBase {
|
||||
|
||||
void AdvanceSimulatedTimePastTapDelay() {
|
||||
simulated_clock_.Advance(gesture_detector_config_.double_tap_timeout);
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(1));
|
||||
simulated_clock_.Advance(base::Milliseconds(1));
|
||||
touch_exploration_controller_->CallTapTimerNowForTesting();
|
||||
}
|
||||
|
||||
void AdvanceSimulatedTimePastPotentialTapDelay() {
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(1000));
|
||||
simulated_clock_.Advance(base::Milliseconds(1000));
|
||||
touch_exploration_controller_->CallTapTimerNowIfRunningForTesting();
|
||||
}
|
||||
|
||||
void AdvanceSimulatedTimePastLongPressDelay() {
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(5000));
|
||||
simulated_clock_.Advance(base::Milliseconds(5000));
|
||||
touch_exploration_controller_->CallLongPressTimerNowIfRunningForTesting();
|
||||
}
|
||||
|
||||
@ -570,7 +570,7 @@ TEST_F(TouchExplorationTest, TimerFiresLateDuringTouchExploration) {
|
||||
|
||||
// Send a press, then add another finger after the double-tap timeout.
|
||||
generator_->PressTouchId(1);
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(1000));
|
||||
simulated_clock_.Advance(base::Milliseconds(1000));
|
||||
generator_->PressTouchId(2);
|
||||
std::vector<ui::LocatedEvent*> events =
|
||||
GetCapturedLocatedEventsOfType(ui::ET_MOUSE_MOVED);
|
||||
@ -600,7 +600,7 @@ TEST_F(TouchExplorationTest, TimerFiresLateAfterTap) {
|
||||
// timer fires.
|
||||
gfx::Point location1(33, 34);
|
||||
generator_->set_current_screen_location(location1);
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(301));
|
||||
simulated_clock_.Advance(base::Milliseconds(301));
|
||||
generator_->PressTouch();
|
||||
generator_->ReleaseTouch();
|
||||
AdvanceSimulatedTimePastTapDelay();
|
||||
@ -649,9 +649,9 @@ TEST_F(TouchExplorationTest, DoubleTapTiming) {
|
||||
generator_->PressTouch();
|
||||
generator_->ReleaseTouch();
|
||||
simulated_clock_.Advance(gesture_detector_config_.double_tap_timeout -
|
||||
base::TimeDelta::FromMilliseconds(25));
|
||||
base::Milliseconds(25));
|
||||
generator_->PressTouch();
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(50));
|
||||
simulated_clock_.Advance(base::Milliseconds(50));
|
||||
generator_->ReleaseTouch();
|
||||
|
||||
std::vector<ui::LocatedEvent*> captured_events = GetCapturedLocatedEvents();
|
||||
@ -823,7 +823,7 @@ TEST_F(TouchExplorationTest, SingleTap) {
|
||||
// tapping again.
|
||||
gfx::Point final_location(33, 34);
|
||||
generator_->set_current_screen_location(final_location);
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(250));
|
||||
simulated_clock_.Advance(base::Milliseconds(250));
|
||||
generator_->PressTouch();
|
||||
generator_->ReleaseTouch();
|
||||
|
||||
@ -1093,13 +1093,13 @@ TEST_F(TouchExplorationTest, EnterGestureInProgressState) {
|
||||
gfx::Point touch_exploration_location(20, 21);
|
||||
|
||||
generator_->Dispatch(&first_press);
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(10));
|
||||
simulated_clock_.Advance(base::Milliseconds(10));
|
||||
// Since we are not out of the touch slop yet, we should not be in gesture in
|
||||
// progress.
|
||||
generator_->MoveTouch(second_location);
|
||||
EXPECT_FALSE(IsInTouchToMouseMode());
|
||||
EXPECT_FALSE(IsInGestureInProgressState());
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(10));
|
||||
simulated_clock_.Advance(base::Milliseconds(10));
|
||||
|
||||
// Once we are out of slop, we should be in GestureInProgress.
|
||||
generator_->MoveTouch(third_location);
|
||||
@ -1377,7 +1377,7 @@ TEST_F(TouchExplorationTest, GestureAddedFinger) {
|
||||
ui::ET_TOUCH_PRESSED, gfx::Point(100, 200), Now(),
|
||||
ui::PointerDetails(ui::EventPointerType::kTouch, 0));
|
||||
generator_->Dispatch(&first_press);
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(10));
|
||||
simulated_clock_.Advance(base::Milliseconds(10));
|
||||
gfx::Point second_location(100 + distance, 200);
|
||||
generator_->MoveTouch(second_location);
|
||||
EXPECT_TRUE(IsInGestureInProgressState());
|
||||
@ -1412,14 +1412,14 @@ TEST_F(TouchExplorationTest, EnterSlideGestureState) {
|
||||
gfx::Point fourth_location(window_right, 35);
|
||||
|
||||
generator_->Dispatch(&first_press);
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(10));
|
||||
simulated_clock_.Advance(base::Milliseconds(10));
|
||||
|
||||
// Since we haven't moved past slop yet, we should not be in slide gesture.
|
||||
generator_->MoveTouch(second_location);
|
||||
EXPECT_FALSE(IsInTouchToMouseMode());
|
||||
EXPECT_FALSE(IsInGestureInProgressState());
|
||||
EXPECT_FALSE(IsInSlideGestureState());
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(10));
|
||||
simulated_clock_.Advance(base::Milliseconds(10));
|
||||
|
||||
// Once we are out of slop, we should be in slide gesture since we are along
|
||||
// the edge of the screen.
|
||||
@ -1472,13 +1472,13 @@ TEST_F(TouchExplorationTest, AvoidEnteringSlideGesture) {
|
||||
gfx::Point into_boundaries(window.right() - GetMaxDistanceFromEdge() / 2, 1);
|
||||
|
||||
generator_->Dispatch(&first_press);
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(10));
|
||||
simulated_clock_.Advance(base::Milliseconds(10));
|
||||
|
||||
generator_->MoveTouch(out_of_slop);
|
||||
EXPECT_FALSE(IsInTouchToMouseMode());
|
||||
EXPECT_TRUE(IsInGestureInProgressState());
|
||||
EXPECT_FALSE(IsInSlideGestureState());
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(10));
|
||||
simulated_clock_.Advance(base::Milliseconds(10));
|
||||
|
||||
// Since we did not start moving while in the boundaries, we should not be in
|
||||
// slide gestures.
|
||||
@ -1509,7 +1509,7 @@ TEST_F(TouchExplorationTest, TestingBoundaries) {
|
||||
ui::ET_TOUCH_PRESSED, initial_press, Now(),
|
||||
ui::PointerDetails(ui::EventPointerType::kTouch, 0));
|
||||
generator_->Dispatch(&first_press);
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(10));
|
||||
simulated_clock_.Advance(base::Milliseconds(10));
|
||||
EXPECT_FALSE(IsInGestureInProgressState());
|
||||
EXPECT_FALSE(IsInSlideGestureState());
|
||||
EXPECT_FALSE(IsInTouchToMouseMode());
|
||||
@ -1523,7 +1523,7 @@ TEST_F(TouchExplorationTest, TestingBoundaries) {
|
||||
EXPECT_FALSE(IsInGestureInProgressState());
|
||||
EXPECT_TRUE(IsInSlideGestureState());
|
||||
EXPECT_FALSE(IsInTouchToMouseMode());
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(10));
|
||||
simulated_clock_.Advance(base::Milliseconds(10));
|
||||
|
||||
// Move the touch into slop boundaries. It should still be in slide gestures
|
||||
// and adjust the volume.
|
||||
@ -1535,7 +1535,7 @@ TEST_F(TouchExplorationTest, TestingBoundaries) {
|
||||
EXPECT_FALSE(IsInTouchToMouseMode());
|
||||
|
||||
// The sound is rate limiting so it only activates every 150ms.
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(200));
|
||||
simulated_clock_.Advance(base::Milliseconds(200));
|
||||
|
||||
size_t num_adjust_sounds = delegate_.NumAdjustSounds();
|
||||
ASSERT_EQ(1U, num_adjust_sounds);
|
||||
@ -1548,7 +1548,7 @@ TEST_F(TouchExplorationTest, TestingBoundaries) {
|
||||
EXPECT_TRUE(IsInSlideGestureState());
|
||||
EXPECT_FALSE(IsInTouchToMouseMode());
|
||||
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(200));
|
||||
simulated_clock_.Advance(base::Milliseconds(200));
|
||||
num_adjust_sounds = delegate_.NumAdjustSounds();
|
||||
ASSERT_EQ(1U, num_adjust_sounds);
|
||||
ASSERT_EQ(1U, delegate_.VolumeChanges().size());
|
||||
@ -1563,7 +1563,7 @@ TEST_F(TouchExplorationTest, TestingBoundaries) {
|
||||
generator_->MoveTouch(
|
||||
gfx::Point(into_slop_boundaries.x() + gesture_detector_config_.touch_slop,
|
||||
into_slop_boundaries.y()));
|
||||
simulated_clock_.Advance(base::TimeDelta::FromMilliseconds(200));
|
||||
simulated_clock_.Advance(base::Milliseconds(200));
|
||||
|
||||
num_adjust_sounds = delegate_.NumAdjustSounds();
|
||||
ASSERT_EQ(2U, num_adjust_sounds);
|
||||
|
@ -224,7 +224,7 @@ void DockedMagnifierController::CenterOnPoint(
|
||||
// point of interest due to input caret bounds changes ... etc.).
|
||||
ui::ScopedLayerAnimationSettings settings(
|
||||
viewport_magnifier_layer_->GetAnimator());
|
||||
settings.SetTransitionDuration(base::TimeDelta::FromMilliseconds(0));
|
||||
settings.SetTransitionDuration(base::Milliseconds(0));
|
||||
settings.SetTweenType(gfx::Tween::ZERO);
|
||||
settings.SetPreemptionStrategy(ui::LayerAnimator::IMMEDIATELY_SET_NEW_TARGET);
|
||||
viewport_magnifier_layer_->SetTransform(transform);
|
||||
|
@ -529,8 +529,7 @@ bool FullscreenMagnifierController::RedrawDIP(
|
||||
|
||||
const ui::LayerAnimator::PreemptionStrategy strategy =
|
||||
ui::LayerAnimator::IMMEDIATELY_ANIMATE_TO_NEW_TARGET;
|
||||
const base::TimeDelta duration =
|
||||
base::TimeDelta::FromMilliseconds(duration_in_ms);
|
||||
const base::TimeDelta duration = base::Milliseconds(duration_in_ms);
|
||||
|
||||
ui::ScopedLayerAnimationSettings root_layer_settings(
|
||||
root_window_->layer()->GetAnimator());
|
||||
|
@ -35,8 +35,7 @@ constexpr int kLeftEdgeContextPadding = 32;
|
||||
// (~16ms assuming 60hz screen updates), however most importantly keep it short,
|
||||
// so e.g. when user focuses an element, and then starts typing, the viewport
|
||||
// quickly moves to the caret position.
|
||||
constexpr base::TimeDelta kPauseCaretUpdateDuration =
|
||||
base::TimeDelta::FromMilliseconds(15);
|
||||
constexpr base::TimeDelta kPauseCaretUpdateDuration = base::Milliseconds(15);
|
||||
|
||||
// Calculates the new scale if it were to be adjusted exponentially by the
|
||||
// given |linear_offset|. This allows linear changes in scroll offset
|
||||
|
@ -252,8 +252,7 @@ void StickyKeysOverlay::Show(bool visible) {
|
||||
settings.SetPreemptionStrategy(
|
||||
ui::LayerAnimator::IMMEDIATELY_ANIMATE_TO_NEW_TARGET);
|
||||
settings.SetTweenType(visible ? gfx::Tween::EASE_OUT : gfx::Tween::EASE_IN);
|
||||
settings.SetTransitionDuration(
|
||||
base::TimeDelta::FromMilliseconds(kSlideAnimationDurationMs));
|
||||
settings.SetTransitionDuration(base::Milliseconds(kSlideAnimationDurationMs));
|
||||
|
||||
overlay_widget_->GetLayer()->SetTransform(gfx::Transform());
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "ash/accessibility/switch_access/point_scan_layer_animation_info.h"
|
||||
|
||||
namespace {
|
||||
constexpr base::TimeDelta kLingerDelay = base::TimeDelta::FromMilliseconds(250);
|
||||
constexpr base::TimeDelta kLingerDelay = base::Milliseconds(250);
|
||||
}
|
||||
|
||||
namespace ash {
|
||||
|
@ -29,7 +29,7 @@ class TestAccessibilityControllerClient : public AccessibilityControllerClient {
|
||||
~TestAccessibilityControllerClient();
|
||||
|
||||
static constexpr base::TimeDelta kShutdownSoundDuration =
|
||||
base::TimeDelta::FromMilliseconds(1000);
|
||||
base::Milliseconds(1000);
|
||||
|
||||
// AccessibilityControllerClient:
|
||||
void TriggerAccessibilityAlert(AccessibilityAlert alert) override;
|
||||
|
@ -45,13 +45,13 @@ constexpr float kHighlightOpacity = 0.3f;
|
||||
|
||||
AccessibilityFocusRingControllerImpl::AccessibilityFocusRingControllerImpl() {
|
||||
cursor_animation_info_.fade_in_time =
|
||||
base::TimeDelta::FromMilliseconds(kCursorFadeInTimeMilliseconds);
|
||||
base::Milliseconds(kCursorFadeInTimeMilliseconds);
|
||||
cursor_animation_info_.fade_out_time =
|
||||
base::TimeDelta::FromMilliseconds(kCursorFadeOutTimeMilliseconds);
|
||||
base::Milliseconds(kCursorFadeOutTimeMilliseconds);
|
||||
caret_animation_info_.fade_in_time =
|
||||
base::TimeDelta::FromMilliseconds(kCaretFadeInTimeMilliseconds);
|
||||
base::Milliseconds(kCaretFadeInTimeMilliseconds);
|
||||
caret_animation_info_.fade_out_time =
|
||||
base::TimeDelta::FromMilliseconds(kCaretFadeOutTimeMilliseconds);
|
||||
base::Milliseconds(kCaretFadeOutTimeMilliseconds);
|
||||
}
|
||||
|
||||
AccessibilityFocusRingControllerImpl::~AccessibilityFocusRingControllerImpl() =
|
||||
@ -156,13 +156,12 @@ void AccessibilityFocusRingControllerImpl::SetNoFadeForTesting() {
|
||||
++iter) {
|
||||
iter->second->set_no_fade_for_testing();
|
||||
iter->second->focus_animation_info()->fade_in_time = base::TimeDelta();
|
||||
iter->second->focus_animation_info()->fade_out_time =
|
||||
base::TimeDelta::FromHours(1);
|
||||
iter->second->focus_animation_info()->fade_out_time = base::Hours(1);
|
||||
}
|
||||
cursor_animation_info_.fade_in_time = base::TimeDelta();
|
||||
cursor_animation_info_.fade_out_time = base::TimeDelta::FromHours(1);
|
||||
cursor_animation_info_.fade_out_time = base::Hours(1);
|
||||
caret_animation_info_.fade_in_time = base::TimeDelta();
|
||||
caret_animation_info_.fade_out_time = base::TimeDelta::FromHours(1);
|
||||
caret_animation_info_.fade_out_time = base::Hours(1);
|
||||
}
|
||||
|
||||
const AccessibilityFocusRingGroup*
|
||||
|
@ -47,9 +47,9 @@ struct Region {
|
||||
|
||||
AccessibilityFocusRingGroup::AccessibilityFocusRingGroup() {
|
||||
focus_animation_info_.fade_in_time =
|
||||
base::TimeDelta::FromMilliseconds(kFocusFadeInTimeMilliseconds);
|
||||
base::Milliseconds(kFocusFadeInTimeMilliseconds);
|
||||
focus_animation_info_.fade_out_time =
|
||||
base::TimeDelta::FromMilliseconds(kFocusFadeOutTimeMilliseconds);
|
||||
base::Milliseconds(kFocusFadeOutTimeMilliseconds);
|
||||
}
|
||||
|
||||
AccessibilityFocusRingGroup::~AccessibilityFocusRingGroup() {}
|
||||
@ -113,7 +113,7 @@ bool AccessibilityFocusRingGroup::AnimateFocusRings(base::TimeTicks timestamp) {
|
||||
if (focus_ring_info_->behavior == FocusRingBehavior::PERSIST) {
|
||||
base::TimeDelta delta = timestamp - focus_animation_info_.change_time;
|
||||
base::TimeDelta transition_time =
|
||||
base::TimeDelta::FromMilliseconds(kTransitionTimeMilliseconds);
|
||||
base::Milliseconds(kTransitionTimeMilliseconds);
|
||||
if (delta >= transition_time) {
|
||||
focus_layers_[0]->Set(focus_rings_[0]);
|
||||
return true;
|
||||
|
@ -11,22 +11,18 @@ namespace ash {
|
||||
|
||||
// Duration of the slide show animation. Also used as |delay| in posted task to
|
||||
// download images.
|
||||
constexpr base::TimeDelta kAnimationDuration =
|
||||
base::TimeDelta::FromMilliseconds(500);
|
||||
constexpr base::TimeDelta kAnimationDuration = base::Milliseconds(500);
|
||||
|
||||
// Topic related numbers.
|
||||
|
||||
// The default interval to fetch Topics.
|
||||
constexpr base::TimeDelta kTopicFetchInterval =
|
||||
base::TimeDelta::FromSeconds(30);
|
||||
constexpr base::TimeDelta kTopicFetchInterval = base::Seconds(30);
|
||||
|
||||
// The default interval to fetch backup cache photos.
|
||||
constexpr base::TimeDelta kBackupPhotoRefreshDelay =
|
||||
base::TimeDelta::FromMinutes(5);
|
||||
constexpr base::TimeDelta kBackupPhotoRefreshDelay = base::Minutes(5);
|
||||
|
||||
// The default interval to refresh weather.
|
||||
constexpr base::TimeDelta kWeatherRefreshInterval =
|
||||
base::TimeDelta::FromMinutes(5);
|
||||
constexpr base::TimeDelta kWeatherRefreshInterval = base::Minutes(5);
|
||||
|
||||
// The batch size of topics to fetch in one request.
|
||||
constexpr int kTopicsBatchSize = 100;
|
||||
@ -52,8 +48,7 @@ constexpr char kAmbientModeCacheDirectoryName[] = "cache";
|
||||
constexpr char kAmbientModeBackupCacheDirectoryName[] = "backup";
|
||||
|
||||
// The buffer time to use the access token.
|
||||
constexpr base::TimeDelta kTokenUsageTimeBuffer =
|
||||
base::TimeDelta::FromMinutes(10);
|
||||
constexpr base::TimeDelta kTokenUsageTimeBuffer = base::Minutes(10);
|
||||
|
||||
// PhotoView related constants.
|
||||
// Spacing between two portrait images.
|
||||
|
@ -611,7 +611,7 @@ void AmbientController::OnLockScreenInactivityTimeoutPrefChanged() {
|
||||
return;
|
||||
|
||||
ambient_ui_model_.SetLockScreenInactivityTimeout(
|
||||
base::TimeDelta::FromSeconds(pref_service->GetInteger(
|
||||
base::Seconds(pref_service->GetInteger(
|
||||
ambient::prefs::kAmbientModeLockScreenInactivityTimeoutSeconds)));
|
||||
}
|
||||
|
||||
@ -621,7 +621,7 @@ void AmbientController::OnLockScreenBackgroundTimeoutPrefChanged() {
|
||||
return;
|
||||
|
||||
ambient_ui_model_.SetBackgroundLockScreenTimeout(
|
||||
base::TimeDelta::FromSeconds(pref_service->GetInteger(
|
||||
base::Seconds(pref_service->GetInteger(
|
||||
ambient::prefs::kAmbientModeLockScreenBackgroundTimeoutSeconds)));
|
||||
}
|
||||
|
||||
@ -631,7 +631,7 @@ void AmbientController::OnPhotoRefreshIntervalPrefChanged() {
|
||||
return;
|
||||
|
||||
ambient_ui_model_.SetPhotoRefreshInterval(
|
||||
base::TimeDelta::FromSeconds(pref_service->GetInteger(
|
||||
base::Seconds(pref_service->GetInteger(
|
||||
ambient::prefs::kAmbientModePhotoRefreshIntervalSeconds)));
|
||||
}
|
||||
|
||||
|
@ -318,8 +318,7 @@ TEST_F(AmbientControllerTest, ShouldReturnEmptyAccessToken) {
|
||||
|
||||
base::RunLoop run_loop_2;
|
||||
// When token expired, another token request will get empty token.
|
||||
constexpr base::TimeDelta kTokenRefreshDelay =
|
||||
base::TimeDelta::FromSeconds(60);
|
||||
constexpr base::TimeDelta kTokenRefreshDelay = base::Seconds(60);
|
||||
task_environment()->FastForwardBy(kTokenRefreshDelay);
|
||||
|
||||
closure = base::MakeExpectedRunClosure(FROM_HERE);
|
||||
|
@ -30,7 +30,7 @@ TEST_F(AutotestAmbientApiTest,
|
||||
base::RunLoop run_loop;
|
||||
AutotestAmbientApi test_api;
|
||||
test_api.WaitForPhotoTransitionAnimationCompleted(
|
||||
/*num_completions=*/10, /*timeout=*/base::TimeDelta::FromSeconds(30),
|
||||
/*num_completions=*/10, /*timeout=*/base::Seconds(30),
|
||||
/*on_complete=*/run_loop.QuitClosure(),
|
||||
/*on_timeout=*/base::BindOnce([]() { NOTREACHED(); }));
|
||||
run_loop.Run();
|
||||
@ -47,7 +47,7 @@ TEST_F(AutotestAmbientApiTest,
|
||||
base::RunLoop run_loop;
|
||||
AutotestAmbientApi test_api;
|
||||
test_api.WaitForPhotoTransitionAnimationCompleted(
|
||||
/*num_completions=*/10, /*timeout=*/base::TimeDelta::FromSeconds(5),
|
||||
/*num_completions=*/10, /*timeout=*/base::Seconds(5),
|
||||
/*on_complete=*/base::BindOnce([]() { NOTREACHED(); }),
|
||||
/*on_timeout=*/run_loop.QuitClosure());
|
||||
run_loop.Run();
|
||||
|
@ -167,7 +167,7 @@ TEST_F(AmbientBackendModelTest, ShouldReturnExpectedPhotoRefreshInterval) {
|
||||
EXPECT_EQ(GetPhotoRefreshInterval(), kPhotoRefreshInterval);
|
||||
|
||||
// Change the photo refresh interval.
|
||||
const base::TimeDelta interval = base::TimeDelta::FromMinutes(1);
|
||||
const base::TimeDelta interval = base::Minutes(1);
|
||||
SetPhotoRefreshInterval(interval);
|
||||
// The refresh interval will be the set value.
|
||||
EXPECT_EQ(GetPhotoRefreshInterval(), interval);
|
||||
|
@ -66,7 +66,7 @@ class TestAmbientPhotoCacheImpl : public AmbientPhotoCache {
|
||||
// Pretend to respond asynchronously.
|
||||
base::SequencedTaskRunnerHandle::Get()->PostDelayedTask(
|
||||
FROM_HERE, base::BindOnce(std::move(callback), std::move(data)),
|
||||
base::TimeDelta::FromMilliseconds(1));
|
||||
base::Milliseconds(1));
|
||||
}
|
||||
|
||||
void DownloadPhotoToFile(const std::string& url,
|
||||
@ -174,8 +174,7 @@ void AmbientAshTestBase::SetUp() {
|
||||
ambient_controller()->set_backend_controller_for_testing(nullptr);
|
||||
ambient_controller()->set_backend_controller_for_testing(
|
||||
std::make_unique<FakeAmbientBackendControllerImpl>());
|
||||
token_controller()->SetTokenUsageBufferForTesting(
|
||||
base::TimeDelta::FromSeconds(30));
|
||||
token_controller()->SetTokenUsageBufferForTesting(base::Seconds(30));
|
||||
SetAmbientModeEnabled(true);
|
||||
base::RunLoop().RunUntilIdle();
|
||||
}
|
||||
@ -352,7 +351,7 @@ void AmbientAshTestBase::FastForwardToNextImage() {
|
||||
void AmbientAshTestBase::FastForwardTiny() {
|
||||
// `TestAmbientURLLoaderImpl` has a small delay (1ms) to fake download delay,
|
||||
// here we fake plenty of time to download the image.
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromMilliseconds(10));
|
||||
task_environment()->FastForwardBy(base::Milliseconds(10));
|
||||
}
|
||||
|
||||
void AmbientAshTestBase::FastForwardToBackgroundLockScreenTimeout() {
|
||||
|
@ -18,8 +18,7 @@ namespace {
|
||||
|
||||
const char* kTestGaiaId = "0123456789";
|
||||
|
||||
constexpr base::TimeDelta kDefaultTokenExpirationDelay =
|
||||
base::TimeDelta::FromSeconds(60);
|
||||
constexpr base::TimeDelta kDefaultTokenExpirationDelay = base::Seconds(60);
|
||||
|
||||
// A simple SharedURLLoaderFactory implementation for tests.
|
||||
class FakeSharedURLLoaderFactory : public network::SharedURLLoaderFactory {
|
||||
|
@ -331,8 +331,7 @@ void MediaStringView::StartScrolling(bool is_initial) {
|
||||
const int end_x = -(text_width + shadow_width) / 2;
|
||||
const int transform_distance = start_x - end_x;
|
||||
const base::TimeDelta kScrollingDuration =
|
||||
base::TimeDelta::FromSeconds(10) * transform_distance /
|
||||
kMediaStringMaxWidthDip;
|
||||
base::Seconds(10) * transform_distance / kMediaStringMaxWidthDip;
|
||||
|
||||
ui::ScopedLayerAnimationSettings animation(text_layer->GetAnimator());
|
||||
animation.SetTransitionDuration(kScrollingDuration);
|
||||
|
@ -106,7 +106,7 @@ TEST_F(MediaStringViewTest, HasNoAnimationWithShortText) {
|
||||
|
||||
EXPECT_FALSE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromMilliseconds(100));
|
||||
task_environment()->FastForwardBy(base::Milliseconds(100));
|
||||
EXPECT_FALSE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
}
|
||||
@ -131,7 +131,7 @@ TEST_F(MediaStringViewTest, HasAnimationWithLongText) {
|
||||
|
||||
EXPECT_FALSE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromMilliseconds(100));
|
||||
task_environment()->FastForwardBy(base::Milliseconds(100));
|
||||
EXPECT_TRUE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
}
|
||||
@ -156,7 +156,7 @@ TEST_F(MediaStringViewTest, ShouldStopAndStartAnimationWhenTextChanges) {
|
||||
|
||||
EXPECT_FALSE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromMilliseconds(100));
|
||||
task_environment()->FastForwardBy(base::Milliseconds(100));
|
||||
EXPECT_TRUE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
|
||||
@ -170,7 +170,7 @@ TEST_F(MediaStringViewTest, ShouldStopAndStartAnimationWhenTextChanges) {
|
||||
|
||||
EXPECT_FALSE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromMilliseconds(100));
|
||||
task_environment()->FastForwardBy(base::Milliseconds(100));
|
||||
EXPECT_TRUE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
}
|
||||
@ -195,7 +195,7 @@ TEST_F(MediaStringViewTest, ShouldStartAndStopAnimationWhenTextChanges) {
|
||||
|
||||
EXPECT_FALSE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromMilliseconds(100));
|
||||
task_environment()->FastForwardBy(base::Milliseconds(100));
|
||||
EXPECT_FALSE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
|
||||
@ -209,7 +209,7 @@ TEST_F(MediaStringViewTest, ShouldStartAndStopAnimationWhenTextChanges) {
|
||||
|
||||
EXPECT_FALSE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromMilliseconds(100));
|
||||
task_environment()->FastForwardBy(base::Milliseconds(100));
|
||||
EXPECT_TRUE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
|
||||
@ -223,7 +223,7 @@ TEST_F(MediaStringViewTest, ShouldStartAndStopAnimationWhenTextChanges) {
|
||||
|
||||
EXPECT_FALSE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromMilliseconds(100));
|
||||
task_environment()->FastForwardBy(base::Milliseconds(100));
|
||||
EXPECT_FALSE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
}
|
||||
@ -248,7 +248,7 @@ TEST_F(MediaStringViewTest, PauseMediaWillNotStopAnimationWithLongText) {
|
||||
|
||||
EXPECT_FALSE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromMilliseconds(100));
|
||||
task_environment()->FastForwardBy(base::Milliseconds(100));
|
||||
EXPECT_TRUE(
|
||||
GetMediaStringViewTextLabel()->layer()->GetAnimator()->is_animating());
|
||||
|
||||
|
@ -96,7 +96,7 @@ constexpr float kOverviewFadeAnimationScale = 0.92f;
|
||||
// The home launcher animation duration for transitions that accompany overview
|
||||
// fading transitions.
|
||||
constexpr base::TimeDelta kOverviewFadeAnimationDuration =
|
||||
base::TimeDelta::FromMilliseconds(350);
|
||||
base::Milliseconds(350);
|
||||
|
||||
// Update layer animation settings for launcher scale and opacity animation that
|
||||
// runs on overview mode change.
|
||||
|
@ -539,8 +539,8 @@ TEST_F(AppListControllerImplTest, MAYBE_CloseNotificationWithAppListShown) {
|
||||
|
||||
// Swipe away notification by gesture. Verifies that AppListView still shows.
|
||||
ui::test::EventGenerator* event_generator = GetEventGenerator();
|
||||
event_generator->GestureScrollSequence(
|
||||
drag_start, drag_end, base::TimeDelta::FromMicroseconds(500), 10);
|
||||
event_generator->GestureScrollSequence(drag_start, drag_end,
|
||||
base::Microseconds(500), 10);
|
||||
base::RunLoop().RunUntilIdle();
|
||||
EXPECT_TRUE(GetAppListView());
|
||||
EXPECT_EQ(
|
||||
@ -599,7 +599,7 @@ TEST_F(AppListControllerImplTest,
|
||||
// launcher to finish. Note that the launcher does not exist before toggling
|
||||
// the home button.
|
||||
PressHomeButton();
|
||||
const base::TimeDelta delta = base::TimeDelta::FromMilliseconds(200);
|
||||
const base::TimeDelta delta = base::Milliseconds(200);
|
||||
do {
|
||||
base::RunLoop run_loop;
|
||||
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
||||
@ -1261,7 +1261,7 @@ TEST_F(AppListControllerImplMetricsTest,
|
||||
display::Screen::GetScreen()->GetPrimaryDisplay().bounds().CenterPoint();
|
||||
ui::test::EventGenerator* generator = GetEventGenerator();
|
||||
generator->GestureScrollSequence(shelf_center, target_point,
|
||||
base::TimeDelta::FromMicroseconds(500), 1);
|
||||
base::Microseconds(500), 1);
|
||||
EXPECT_EQ(AppListViewState::kFullscreenAllApps,
|
||||
GetAppListView()->app_list_state());
|
||||
histogram_tester_.ExpectTotalCount(
|
||||
|
@ -136,7 +136,7 @@ void FlingUpOrDown(ui::test::EventGenerator* generator,
|
||||
target_point.Offset(0, offset);
|
||||
|
||||
generator->GestureScrollSequence(start_point, target_point,
|
||||
base::TimeDelta::FromMilliseconds(10), 2);
|
||||
base::Milliseconds(10), 2);
|
||||
}
|
||||
|
||||
std::unique_ptr<TestSearchResult> CreateOmniboxSuggestionResult(
|
||||
@ -2001,8 +2001,8 @@ TEST_P(AppListPresenterTest, SideShelfAlignmentDragDisabled) {
|
||||
// result in no state change.
|
||||
ui::test::EventGenerator* generator = GetEventGenerator();
|
||||
generator->GestureScrollSequence(GetPointOutsideSearchbox(),
|
||||
gfx::Point(10, 900),
|
||||
base::TimeDelta::FromMilliseconds(100), 10);
|
||||
gfx::Point(10, 900), base::Milliseconds(100),
|
||||
10);
|
||||
GetAppListTestHelper()->WaitUntilIdle();
|
||||
GetAppListTestHelper()->CheckState(AppListViewState::kFullscreenAllApps);
|
||||
|
||||
@ -2136,13 +2136,13 @@ TEST_P(AppListPresenterTest, AppListViewDragHandler) {
|
||||
GetAppListView()->GetWidget()->GetWindowBoundsInScreen().y();
|
||||
generator->GestureScrollSequence(gfx::Point(0, top_of_app_list + 20),
|
||||
gfx::Point(0, top_of_app_list - 20),
|
||||
base::TimeDelta::FromMilliseconds(500), 50);
|
||||
base::Milliseconds(500), 50);
|
||||
GetAppListTestHelper()->CheckState(AppListViewState::kPeeking);
|
||||
|
||||
// Execute a long upwards drag, this should transition the app list.
|
||||
generator->GestureScrollSequence(gfx::Point(10, top_of_app_list + 20),
|
||||
gfx::Point(10, 10),
|
||||
base::TimeDelta::FromMilliseconds(100), 10);
|
||||
gfx::Point(10, 10), base::Milliseconds(100),
|
||||
10);
|
||||
GetAppListTestHelper()->CheckState(AppListViewState::kFullscreenAllApps);
|
||||
|
||||
// Execute a short downward drag, this should fail to transition the app list.
|
||||
@ -2165,8 +2165,8 @@ TEST_P(AppListPresenterTest, AppListViewDragHandler) {
|
||||
|
||||
// Transition to fullscreen.
|
||||
generator->GestureScrollSequence(gfx::Point(10, top_of_app_list + 20),
|
||||
gfx::Point(10, 10),
|
||||
base::TimeDelta::FromMilliseconds(100), 10);
|
||||
gfx::Point(10, 10), base::Milliseconds(100),
|
||||
10);
|
||||
GetAppListTestHelper()->CheckState(AppListViewState::kFullscreenAllApps);
|
||||
|
||||
// Enter text to transition to |FULLSCREEN_SEARCH|.
|
||||
@ -2184,7 +2184,7 @@ TEST_P(AppListPresenterTest, AppListViewDragHandler) {
|
||||
|
||||
// Execute a long downward drag, this should close the app list.
|
||||
generator->GestureScrollSequence(gfx::Point(10, 10), gfx::Point(10, 900),
|
||||
base::TimeDelta::FromMilliseconds(100), 10);
|
||||
base::Milliseconds(100), 10);
|
||||
GetAppListTestHelper()->WaitUntilIdle();
|
||||
GetAppListTestHelper()->CheckState(AppListViewState::kClosed);
|
||||
GetAppListTestHelper()->CheckVisibility(false);
|
||||
@ -2500,8 +2500,8 @@ TEST_P(AppListPresenterTest,
|
||||
const int top_of_app_list =
|
||||
app_list_view->GetWidget()->GetWindowBoundsInScreen().y();
|
||||
generator->GestureScrollSequence(gfx::Point(10, top_of_app_list + 20),
|
||||
gfx::Point(10, 10),
|
||||
base::TimeDelta::FromMilliseconds(100), 10);
|
||||
gfx::Point(10, 10), base::Milliseconds(100),
|
||||
10);
|
||||
GetAppListTestHelper()->WaitUntilIdle();
|
||||
GetAppListTestHelper()->CheckState(AppListViewState::kFullscreenAllApps);
|
||||
|
||||
@ -2846,8 +2846,8 @@ TEST_P(AppListPresenterTest, DragToBezelClosesAppListFromFullscreenAndPeeking) {
|
||||
.bottom();
|
||||
generator->GestureScrollSequence(
|
||||
gfx::Point(0, bezel_y - (kAppListBezelMargin + 100)),
|
||||
gfx::Point(0, bezel_y - (kAppListBezelMargin)),
|
||||
base::TimeDelta::FromMilliseconds(1500), 100);
|
||||
gfx::Point(0, bezel_y - (kAppListBezelMargin)), base::Milliseconds(1500),
|
||||
100);
|
||||
|
||||
GetAppListTestHelper()->WaitUntilIdle();
|
||||
GetAppListTestHelper()->CheckState(AppListViewState::kClosed);
|
||||
@ -2886,7 +2886,7 @@ TEST_P(AppListPresenterTest,
|
||||
GetEventGenerator()->GestureScrollSequence(
|
||||
gfx::Point(drag_x, bezel_y - (kAppListBezelMargin + 100)),
|
||||
gfx::Point(drag_x, bezel_y - (kAppListBezelMargin)),
|
||||
base::TimeDelta::FromMilliseconds(1500), 100);
|
||||
base::Milliseconds(1500), 100);
|
||||
|
||||
GetAppListTestHelper()->WaitUntilIdle();
|
||||
SCOPED_TRACE("Closed");
|
||||
|
@ -232,8 +232,7 @@ TEST_F(AppDragIconProxyTest,
|
||||
{
|
||||
ui::ScopedLayerAnimationSettings animation_settings(
|
||||
drag_icon_proxy->GetImageLayerForTesting()->GetAnimator());
|
||||
animation_settings.SetTransitionDuration(
|
||||
base::TimeDelta::FromMilliseconds(300));
|
||||
animation_settings.SetTransitionDuration(base::Milliseconds(300));
|
||||
gfx::Transform transform;
|
||||
transform.Translate(100, 100);
|
||||
drag_icon_proxy->GetImageLayerForTesting()->SetTransform(transform);
|
||||
|
@ -78,8 +78,7 @@ constexpr gfx::Insets kVerticalScrollInsets(kTileSpacingInFolder, 0, 1, 1);
|
||||
// Duration for fading in the target page when opening
|
||||
// or closing a folder, and the duration for the top folder icon animation
|
||||
// for flying in or out the folder.
|
||||
constexpr base::TimeDelta kFolderTransitionDuration =
|
||||
base::TimeDelta::FromMilliseconds(250);
|
||||
constexpr base::TimeDelta kFolderTransitionDuration = base::Milliseconds(250);
|
||||
|
||||
// Transit from the background of the folder item's icon to the opened
|
||||
// folder's background when opening the folder. Transit the other way when
|
||||
|
@ -210,7 +210,7 @@ class AppListItemView::IconImageView : public views::ImageView {
|
||||
if (animate) {
|
||||
settings.emplace(layer()->GetAnimator());
|
||||
settings->SetTweenType(gfx::Tween::EASE_IN);
|
||||
settings->SetTransitionDuration(base::TimeDelta::FromMilliseconds(125));
|
||||
settings->SetTransitionDuration(base::Milliseconds(125));
|
||||
}
|
||||
|
||||
extended_ = extended;
|
||||
@ -431,7 +431,7 @@ void AppListItemView::ScaleAppIcon(bool scale_up) {
|
||||
|
||||
ui::ScopedLayerAnimationSettings settings(layer()->GetAnimator());
|
||||
settings.SetTransitionDuration(
|
||||
base::TimeDelta::FromMilliseconds((kDragDropAppIconScaleTransitionInMs)));
|
||||
base::Milliseconds((kDragDropAppIconScaleTransitionInMs)));
|
||||
settings.SetTweenType(gfx::Tween::EASE_OUT_2);
|
||||
if (scale_up) {
|
||||
if (is_folder_) {
|
||||
@ -736,9 +736,8 @@ bool AppListItemView::OnMousePressed(const ui::MouseEvent& event) {
|
||||
if (!InitiateDrag(event.location(), event.root_location()))
|
||||
return true;
|
||||
|
||||
mouse_drag_timer_.Start(
|
||||
FROM_HERE, base::TimeDelta::FromMilliseconds(kMouseDragUIDelayInMs), this,
|
||||
&AppListItemView::OnMouseDragTimer);
|
||||
mouse_drag_timer_.Start(FROM_HERE, base::Milliseconds(kMouseDragUIDelayInMs),
|
||||
this, &AppListItemView::OnMouseDragTimer);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -860,8 +859,7 @@ void AppListItemView::OnGestureEvent(ui::GestureEvent* event) {
|
||||
if (GetState() != STATE_DISABLED) {
|
||||
SetState(STATE_PRESSED);
|
||||
touch_drag_timer_.Start(
|
||||
FROM_HERE,
|
||||
base::TimeDelta::FromMilliseconds(kTouchLongpressDelayInMs),
|
||||
FROM_HERE, base::Milliseconds(kTouchLongpressDelayInMs),
|
||||
base::BindOnce(&AppListItemView::OnTouchDragTimer,
|
||||
base::Unretained(this), event->location(),
|
||||
event->root_location()));
|
||||
@ -1128,8 +1126,7 @@ void AppListItemView::CreateDraggedViewHoverAnimation() {
|
||||
|
||||
dragged_view_hover_animation_ = std::make_unique<gfx::SlideAnimation>(this);
|
||||
dragged_view_hover_animation_->SetTweenType(gfx::Tween::EASE_IN);
|
||||
dragged_view_hover_animation_->SetSlideDuration(
|
||||
base::TimeDelta::FromMilliseconds(250));
|
||||
dragged_view_hover_animation_->SetSlideDuration(base::Milliseconds(250));
|
||||
}
|
||||
|
||||
void AppListItemView::AdaptBoundsForSelectionHighlight(gfx::Rect* bounds) {
|
||||
|
@ -978,10 +978,9 @@ void AppListView::UpdatePageResetTimer(bool app_list_visibility) {
|
||||
page_reset_timer_.Stop();
|
||||
return;
|
||||
}
|
||||
page_reset_timer_.Start(
|
||||
FROM_HERE,
|
||||
base::TimeDelta::FromMinutes(kAppListPageResetTimeLimitMinutes), this,
|
||||
&AppListView::SelectInitialAppsPage);
|
||||
page_reset_timer_.Start(FROM_HERE,
|
||||
base::Minutes(kAppListPageResetTimeLimitMinutes),
|
||||
this, &AppListView::SelectInitialAppsPage);
|
||||
|
||||
if (skip_page_reset_timer_for_testing)
|
||||
page_reset_timer_.FireNow();
|
||||
@ -1833,19 +1832,17 @@ base::TimeDelta AppListView::GetStateTransitionAnimationDuration(
|
||||
if (ShortAnimationsForTesting() || is_side_shelf_ ||
|
||||
(target_state == AppListViewState::kClosed &&
|
||||
delegate_->ShouldDismissImmediately())) {
|
||||
return base::TimeDelta::FromMilliseconds(
|
||||
kAppListAnimationDurationImmediateMs);
|
||||
return base::Milliseconds(kAppListAnimationDurationImmediateMs);
|
||||
}
|
||||
|
||||
if (is_fullscreen() || target_state == AppListViewState::kFullscreenAllApps ||
|
||||
target_state == AppListViewState::kFullscreenSearch) {
|
||||
// Animate over more time to or from a fullscreen state, to maintain a
|
||||
// similar speed.
|
||||
return base::TimeDelta::FromMilliseconds(
|
||||
kAppListAnimationDurationFromFullscreenMs);
|
||||
return base::Milliseconds(kAppListAnimationDurationFromFullscreenMs);
|
||||
}
|
||||
|
||||
return base::TimeDelta::FromMilliseconds(kAppListAnimationDurationMs);
|
||||
return base::Milliseconds(kAppListAnimationDurationMs);
|
||||
}
|
||||
|
||||
void AppListView::StartAnimationForState(AppListViewState target_state) {
|
||||
|
@ -2194,7 +2194,7 @@ TEST_F(AppListViewTest, SearchBoxCornerRadiusDuringDragging) {
|
||||
"Apps.StateTransition.Drag.PresentationTime.ClamshellMode", 0);
|
||||
|
||||
// Drag down the launcher.
|
||||
timestamp += base::TimeDelta::FromMilliseconds(25);
|
||||
timestamp += base::Milliseconds(25);
|
||||
delta_y += 10;
|
||||
start.Offset(0, 1);
|
||||
ui::GestureEvent update_event = ui::GestureEvent(
|
||||
@ -2221,7 +2221,7 @@ TEST_F(AppListViewTest, SearchBoxCornerRadiusDuringDragging) {
|
||||
|
||||
// Ends to drag the launcher.
|
||||
EXPECT_TRUE(SetAppListState(ash::AppListState::kStateApps));
|
||||
timestamp += base::TimeDelta::FromMilliseconds(25);
|
||||
timestamp += base::Milliseconds(25);
|
||||
start.Offset(0, 1);
|
||||
ui::GestureEvent end_event =
|
||||
ui::GestureEvent(start.x(), start.y() + delta_y, ui::EF_NONE, timestamp,
|
||||
|
@ -82,8 +82,7 @@ constexpr int kDragBufferPx = 20;
|
||||
|
||||
// Time delay before shelf starts to handle icon drag operation,
|
||||
// such as shelf icons re-layout.
|
||||
constexpr base::TimeDelta kShelfHandleIconDragDelay =
|
||||
base::TimeDelta::FromMilliseconds(500);
|
||||
constexpr base::TimeDelta kShelfHandleIconDragDelay = base::Milliseconds(500);
|
||||
|
||||
// The drag and drop proxy should get scaled by this factor.
|
||||
constexpr float kDragAndDropProxyScale = 1.2f;
|
||||
@ -573,15 +572,13 @@ void AppsGridView::UpdateDrag(Pointer pointer, const gfx::Point& point) {
|
||||
// the item
|
||||
if (last_drop_target_region == BETWEEN_ITEMS)
|
||||
reorder_timer_.Stop();
|
||||
reorder_timer_.Start(FROM_HERE,
|
||||
base::TimeDelta::FromMilliseconds(kReorderDelay * 5),
|
||||
reorder_timer_.Start(FROM_HERE, base::Milliseconds(kReorderDelay * 5),
|
||||
this, &AppsGridView::OnReorderTimer);
|
||||
} else if (drop_target_region_ != NO_TARGET) {
|
||||
// If none of the above cases evaluated true, then all of the possible
|
||||
// drop regions should result in a fast reorder.
|
||||
reorder_timer_.Start(FROM_HERE,
|
||||
base::TimeDelta::FromMilliseconds(kReorderDelay),
|
||||
this, &AppsGridView::OnReorderTimer);
|
||||
reorder_timer_.Start(FROM_HERE, base::Milliseconds(kReorderDelay), this,
|
||||
&AppsGridView::OnReorderTimer);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1385,8 +1382,7 @@ void AppsGridView::UpdateDragStateInsideFolder(Pointer pointer,
|
||||
if (is_item_dragged_out_of_folder) {
|
||||
if (!drag_out_of_folder_container_) {
|
||||
folder_item_reparent_timer_.Start(
|
||||
FROM_HERE,
|
||||
base::TimeDelta::FromMilliseconds(kFolderItemReparentDelay), this,
|
||||
FROM_HERE, base::Milliseconds(kFolderItemReparentDelay), this,
|
||||
&AppsGridView::OnFolderItemReparentTimer);
|
||||
drag_out_of_folder_container_ = true;
|
||||
}
|
||||
|
@ -323,11 +323,9 @@ class AppsGridViewTest : public AshTestBase {
|
||||
}
|
||||
|
||||
void SetPageFlipDurationForTest(PagedAppsGridView* apps_grid_view) {
|
||||
apps_grid_view->set_page_flip_delay_for_testing(
|
||||
base::TimeDelta::FromMilliseconds(3));
|
||||
apps_grid_view->set_page_flip_delay_for_testing(base::Milliseconds(3));
|
||||
apps_grid_view->pagination_model()->SetTransitionDurations(
|
||||
base::TimeDelta::FromMilliseconds(2),
|
||||
base::TimeDelta::FromMilliseconds(1));
|
||||
base::Milliseconds(2), base::Milliseconds(1));
|
||||
}
|
||||
|
||||
bool HasPendingPageFlip(PagedAppsGridView* apps_grid_view) {
|
||||
|
@ -51,14 +51,11 @@ constexpr int kPaddingHorizontalDip = 16;
|
||||
constexpr int kPaddingTopDip = 12;
|
||||
|
||||
// Animation.
|
||||
constexpr base::TimeDelta kAnimationFadeInDelay =
|
||||
base::TimeDelta::FromMilliseconds(83);
|
||||
constexpr base::TimeDelta kAnimationFadeInDuration =
|
||||
base::TimeDelta::FromMilliseconds(100);
|
||||
constexpr base::TimeDelta kAnimationFadeOutDuration =
|
||||
base::TimeDelta::FromMilliseconds(83);
|
||||
constexpr base::TimeDelta kAnimationFadeInDelay = base::Milliseconds(83);
|
||||
constexpr base::TimeDelta kAnimationFadeInDuration = base::Milliseconds(100);
|
||||
constexpr base::TimeDelta kAnimationFadeOutDuration = base::Milliseconds(83);
|
||||
constexpr base::TimeDelta kAnimationTransformInDuration =
|
||||
base::TimeDelta::FromMilliseconds(333);
|
||||
base::Milliseconds(333);
|
||||
constexpr int kAnimationTranslationDip = 30;
|
||||
|
||||
using keyboard::KeyboardUIController;
|
||||
|
@ -54,28 +54,28 @@ constexpr int kSeparatorWidthDip = 64;
|
||||
|
||||
// Footer entry animation.
|
||||
constexpr base::TimeDelta kFooterEntryAnimationFadeInDelay =
|
||||
base::TimeDelta::FromMilliseconds(283);
|
||||
base::Milliseconds(283);
|
||||
constexpr base::TimeDelta kFooterEntryAnimationFadeInDuration =
|
||||
base::TimeDelta::FromMilliseconds(167);
|
||||
base::Milliseconds(167);
|
||||
|
||||
// Divider animation.
|
||||
constexpr base::TimeDelta kDividerAnimationFadeInDelay =
|
||||
base::TimeDelta::FromMilliseconds(233);
|
||||
base::Milliseconds(233);
|
||||
constexpr base::TimeDelta kDividerAnimationFadeInDuration =
|
||||
base::TimeDelta::FromMilliseconds(167);
|
||||
base::Milliseconds(167);
|
||||
constexpr base::TimeDelta kDividerAnimationFadeOutDuration =
|
||||
base::TimeDelta::FromMilliseconds(83);
|
||||
base::Milliseconds(83);
|
||||
|
||||
// Zero state animation.
|
||||
constexpr base::TimeDelta kZeroStateAnimationFadeOutDuration =
|
||||
base::TimeDelta::FromMilliseconds(83);
|
||||
base::Milliseconds(83);
|
||||
constexpr int kZeroStateAnimationTranslationDip = 115;
|
||||
constexpr base::TimeDelta kZeroStateAnimationFadeInDelay =
|
||||
base::TimeDelta::FromMilliseconds(33);
|
||||
base::Milliseconds(33);
|
||||
constexpr base::TimeDelta kZeroStateAnimationFadeInDuration =
|
||||
base::TimeDelta::FromMilliseconds(167);
|
||||
base::Milliseconds(167);
|
||||
constexpr base::TimeDelta kZeroStateAnimationTranslateUpDuration =
|
||||
base::TimeDelta::FromMilliseconds(250);
|
||||
base::Milliseconds(250);
|
||||
|
||||
// Helpers ---------------------------------------------------------------------
|
||||
|
||||
@ -377,7 +377,7 @@ void AppListAssistantMainStage::OnPendingQueryChanged(
|
||||
// Animate the opacity to 100% with delay equal to |zero_state_view_| fade out
|
||||
// animation duration to avoid the two views displaying at the same time.
|
||||
constexpr base::TimeDelta kQueryAnimationFadeInDuration =
|
||||
base::TimeDelta::FromMilliseconds(433);
|
||||
base::Milliseconds(433);
|
||||
query_view_->layer()->SetOpacity(0.f);
|
||||
query_view_->layer()->GetAnimator()->StartAnimation(
|
||||
CreateLayerAnimationSequence(
|
||||
|
@ -28,9 +28,9 @@ namespace {
|
||||
|
||||
// Dialog plate animation.
|
||||
constexpr base::TimeDelta kDialogPlateAnimationFadeInDelay =
|
||||
base::TimeDelta::FromMilliseconds(283);
|
||||
base::Milliseconds(283);
|
||||
constexpr base::TimeDelta kDialogPlateAnimationFadeInDuration =
|
||||
base::TimeDelta::FromMilliseconds(167);
|
||||
base::Milliseconds(167);
|
||||
|
||||
} // namespace
|
||||
|
||||
|
@ -570,10 +570,9 @@ TEST_P(AssistantPageClamshellTest,
|
||||
TEST_P(AssistantPageClamshellTest, ShouldShowOnboardingForNewUsers) {
|
||||
// A user is considered new if they haven't had an Assistant interaction in
|
||||
// the past 28 days.
|
||||
const base::Time new_user_cutoff =
|
||||
base::Time::Now() - base::TimeDelta::FromDays(28);
|
||||
const base::Time new_user_cutoff = base::Time::Now() - base::Days(28);
|
||||
|
||||
SetTimeOfLastInteraction(new_user_cutoff + base::TimeDelta::FromMinutes(1));
|
||||
SetTimeOfLastInteraction(new_user_cutoff + base::Minutes(1));
|
||||
ShowAssistantUi();
|
||||
|
||||
// This user *has* interacted with Assistant more recently than 28 days ago so
|
||||
@ -591,7 +590,7 @@ TEST_P(AssistantPageClamshellTest, ShouldShowOnboardingForNewUsers) {
|
||||
}
|
||||
|
||||
TEST_P(AssistantPageClamshellTest, ShouldShowOnboardingUntilInteractionOccurs) {
|
||||
SetTimeOfLastInteraction(base::Time::Now() - base::TimeDelta::FromDays(28));
|
||||
SetTimeOfLastInteraction(base::Time::Now() - base::Days(28));
|
||||
ShowAssistantUi();
|
||||
|
||||
// This user has *not* interacted with Assistant more recently than 28 days
|
||||
|
@ -77,12 +77,11 @@ constexpr float kSearchBoxOpacityStartProgress = 0.11f;
|
||||
constexpr float kSearchBoxOpacityEndProgress = 1.0f;
|
||||
|
||||
// Duration for page transition.
|
||||
constexpr base::TimeDelta kPageTransitionDuration =
|
||||
base::TimeDelta::FromMilliseconds(250);
|
||||
constexpr base::TimeDelta kPageTransitionDuration = base::Milliseconds(250);
|
||||
|
||||
// Duration for overscroll page transition.
|
||||
constexpr base::TimeDelta kOverscrollPageTransitionDuration =
|
||||
base::TimeDelta::FromMilliseconds(50);
|
||||
base::Milliseconds(50);
|
||||
|
||||
// Calculates opacity value for the current app list progress.
|
||||
// |progress| - The target app list view progress - a value in [0.0, 2.0]
|
||||
|
@ -74,8 +74,8 @@ constexpr float kPulseMinOpacity = 0.f;
|
||||
constexpr float kPulseMaxOpacity = 0.3f;
|
||||
constexpr int kAnimationInitialWaitTimeInSec = 3;
|
||||
constexpr int kAnimationIntervalInSec = 10;
|
||||
constexpr auto kCycleDuration = base::TimeDelta::FromMilliseconds(1000);
|
||||
constexpr auto kCycleInterval = base::TimeDelta::FromMilliseconds(500);
|
||||
constexpr auto kCycleDuration = base::Milliseconds(1000);
|
||||
constexpr auto kCycleInterval = base::Milliseconds(500);
|
||||
|
||||
constexpr int kFocusRingWidth = 2;
|
||||
|
||||
@ -302,14 +302,10 @@ void ExpandArrowView::AnimationProgressed(const gfx::Animation* animation) {
|
||||
}
|
||||
|
||||
// Update pulse opacity.
|
||||
constexpr auto kPulseOpacityShowBeginTime =
|
||||
base::TimeDelta::FromMilliseconds(100);
|
||||
constexpr auto kPulseOpacityShowEndTime =
|
||||
base::TimeDelta::FromMilliseconds(200);
|
||||
constexpr auto kPulseOpacityHideBeginTime =
|
||||
base::TimeDelta::FromMilliseconds(800);
|
||||
constexpr auto kPulseOpacityHideEndTime =
|
||||
base::TimeDelta::FromMilliseconds(1000);
|
||||
constexpr auto kPulseOpacityShowBeginTime = base::Milliseconds(100);
|
||||
constexpr auto kPulseOpacityShowEndTime = base::Milliseconds(200);
|
||||
constexpr auto kPulseOpacityHideBeginTime = base::Milliseconds(800);
|
||||
constexpr auto kPulseOpacityHideEndTime = base::Milliseconds(1000);
|
||||
if (time > kPulseOpacityShowBeginTime && time <= kPulseOpacityShowEndTime) {
|
||||
pulse_opacity_ =
|
||||
kPulseMinOpacity +
|
||||
@ -332,11 +328,10 @@ void ExpandArrowView::AnimationProgressed(const gfx::Animation* animation) {
|
||||
time / kCycleDuration));
|
||||
|
||||
// Update y position offset of the arrow.
|
||||
constexpr auto kArrowMoveOutBeginTime =
|
||||
base::TimeDelta::FromMilliseconds(100);
|
||||
constexpr auto kArrowMoveOutEndTime = base::TimeDelta::FromMilliseconds(500);
|
||||
constexpr auto kArrowMoveInBeginTime = base::TimeDelta::FromMilliseconds(500);
|
||||
constexpr auto kArrowMoveInEndTime = base::TimeDelta::FromMilliseconds(900);
|
||||
constexpr auto kArrowMoveOutBeginTime = base::Milliseconds(100);
|
||||
constexpr auto kArrowMoveOutEndTime = base::Milliseconds(500);
|
||||
constexpr auto kArrowMoveInBeginTime = base::Milliseconds(500);
|
||||
constexpr auto kArrowMoveInEndTime = base::Milliseconds(900);
|
||||
if (time > kArrowMoveOutBeginTime && time <= kArrowMoveOutEndTime) {
|
||||
const double progress = (time - kArrowMoveOutBeginTime) /
|
||||
(kArrowMoveOutEndTime - kArrowMoveOutBeginTime);
|
||||
@ -408,9 +403,8 @@ void ExpandArrowView::ScheduleHintingAnimation(bool is_first_time) {
|
||||
int delay_in_sec = kAnimationIntervalInSec;
|
||||
if (is_first_time)
|
||||
delay_in_sec = kAnimationInitialWaitTimeInSec;
|
||||
hinting_animation_timer_.Start(FROM_HERE,
|
||||
base::TimeDelta::FromSeconds(delay_in_sec),
|
||||
this, &ExpandArrowView::StartHintingAnimation);
|
||||
hinting_animation_timer_.Start(FROM_HERE, base::Seconds(delay_in_sec), this,
|
||||
&ExpandArrowView::StartHintingAnimation);
|
||||
}
|
||||
|
||||
void ExpandArrowView::StartHintingAnimation() {
|
||||
|
@ -25,8 +25,7 @@ constexpr int kGhostCircleStrokeWidth = 2;
|
||||
constexpr int kGhostColorOpacity = 0x4D; // 30% opacity.
|
||||
constexpr int kRootGridGhostColor = gfx::kGoogleGrey200;
|
||||
constexpr int kInFolderGhostColor = gfx::kGoogleGrey700;
|
||||
constexpr base::TimeDelta kGhostFadeInOutLength =
|
||||
base::TimeDelta::FromMilliseconds(180);
|
||||
constexpr base::TimeDelta kGhostFadeInOutLength = base::Milliseconds(180);
|
||||
constexpr gfx::Tween::Type kGhostTween = gfx::Tween::FAST_OUT_SLOW_IN;
|
||||
|
||||
} // namespace
|
||||
|
@ -66,12 +66,10 @@ constexpr char kPageDragScrollInTabletMaxLatencyHistogram[] =
|
||||
"TabletMode";
|
||||
|
||||
// Delay in milliseconds to do the page flip in fullscreen app list.
|
||||
constexpr base::TimeDelta kPageFlipDelay =
|
||||
base::TimeDelta::FromMilliseconds(500);
|
||||
constexpr base::TimeDelta kPageFlipDelay = base::Milliseconds(500);
|
||||
|
||||
// Duration for page transition.
|
||||
constexpr base::TimeDelta kPageTransitionDuration =
|
||||
base::TimeDelta::FromMilliseconds(250);
|
||||
constexpr base::TimeDelta kPageTransitionDuration = base::Milliseconds(250);
|
||||
|
||||
// The size of the zone within which app list item drag events will trigger a
|
||||
// page flip.
|
||||
@ -82,7 +80,7 @@ constexpr int kDefaultFadeoutMaskHeight = 16;
|
||||
|
||||
// Duration for overscroll page transition.
|
||||
constexpr base::TimeDelta kOverscrollPageTransitionDuration =
|
||||
base::TimeDelta::FromMilliseconds(50);
|
||||
base::Milliseconds(50);
|
||||
|
||||
// Vertical padding between the apps grid pages.
|
||||
constexpr int kPaddingBetweenPages = 48;
|
||||
@ -1170,7 +1168,7 @@ void PagedAppsGridView::AnimateCardifiedState() {
|
||||
animator.SetTweenType(kCardifiedStateTweenType);
|
||||
if (!cardified_state_) {
|
||||
animator.SetTransitionDuration(
|
||||
base::TimeDelta::FromMilliseconds(kDefaultAnimationDuration));
|
||||
base::Milliseconds(kDefaultAnimationDuration));
|
||||
}
|
||||
// When the animations are done, discard the layer and reset view to
|
||||
// proper scale.
|
||||
@ -1191,7 +1189,7 @@ void PagedAppsGridView::AnimateCardifiedState() {
|
||||
ui::LayerAnimator::IMMEDIATELY_ANIMATE_TO_NEW_TARGET);
|
||||
if (!cardified_state_) {
|
||||
animator.SetTransitionDuration(
|
||||
base::TimeDelta::FromMilliseconds(kDefaultAnimationDuration));
|
||||
base::Milliseconds(kDefaultAnimationDuration));
|
||||
}
|
||||
animator.AddObserver(this);
|
||||
ui::AnimationThroughputReporter reporter(
|
||||
|
@ -166,7 +166,7 @@ TEST_F(PagedAppsGridViewTest, DragItemToNextPage) {
|
||||
// Drag the item at page 1 slot 0 to the next page and hold it there.
|
||||
StartDragOnItemViewAtVisualIndex(1, 0);
|
||||
GetEventGenerator()->MoveMouseTo(next_page_point);
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromSeconds(2));
|
||||
task_environment()->FastForwardBy(base::Seconds(2));
|
||||
GetEventGenerator()->ReleaseLeftButton();
|
||||
|
||||
// With the drag complete, check that page 1 is still selected, because a new
|
||||
|
@ -40,16 +40,14 @@ void SchedulePulsingAnimation(ui::Layer* layer) {
|
||||
views::AnimationBuilder builder;
|
||||
views::AnimationSequenceBlock block = builder.Repeatedly();
|
||||
for (size_t i = 0; i < base::size(kAnimationOpacity); ++i) {
|
||||
block = block
|
||||
.SetDuration(
|
||||
base::TimeDelta::FromMilliseconds(kAnimationDurationInMs))
|
||||
block = block.SetDuration(base::Milliseconds(kAnimationDurationInMs))
|
||||
.SetOpacity(layer, kAnimationOpacity[i])
|
||||
.SetTransform(layer,
|
||||
gfx::GetScaleTransform(local_bounds.CenterPoint(),
|
||||
kAnimationScale[i]))
|
||||
.Then();
|
||||
}
|
||||
block.SetDuration(base::TimeDelta::FromMilliseconds(kAnimationDurationInMs));
|
||||
block.SetDuration(base::Milliseconds(kAnimationDurationInMs));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
@ -62,8 +60,8 @@ PulsingBlockView::PulsingBlockView(const gfx::Size& size, bool start_delay) {
|
||||
|
||||
const int max_delay = kAnimationDurationInMs * base::size(kAnimationOpacity);
|
||||
const int delay = start_delay ? base::RandInt(0, max_delay) : 0;
|
||||
start_delay_timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(delay),
|
||||
this, &PulsingBlockView::OnStartDelayTimer);
|
||||
start_delay_timer_.Start(FROM_HERE, base::Milliseconds(delay), this,
|
||||
&PulsingBlockView::OnStartDelayTimer);
|
||||
}
|
||||
|
||||
PulsingBlockView::~PulsingBlockView() {}
|
||||
|
@ -34,7 +34,7 @@ const int kVerticalTilePadding = 8;
|
||||
constexpr int kAutoScrollMargin = 32;
|
||||
|
||||
// How often to auto-scroll when the mouse is held in the auto-scroll margin.
|
||||
constexpr base::TimeDelta kAutoScrollInterval = base::TimeDelta::FromHz(60.0);
|
||||
constexpr base::TimeDelta kAutoScrollInterval = base::Hertz(60.0);
|
||||
|
||||
// How much to auto-scroll the view per second. Empirically chosen.
|
||||
const int kAutoScrollDipsPerSecond = 400;
|
||||
|
@ -305,7 +305,7 @@ TEST_F(ScrollableAppsGridViewTest, AutoScrollDown) {
|
||||
EXPECT_FALSE(apps_grid_view_->reorder_timer_for_test()->IsRunning());
|
||||
|
||||
// Holding the mouse in place for a while scrolls down more.
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromMilliseconds(100));
|
||||
task_environment()->FastForwardBy(base::Milliseconds(100));
|
||||
const int scroll_offset2 = scroll_view_->GetVisibleRect().y();
|
||||
EXPECT_GT(scroll_offset2, scroll_offset1);
|
||||
|
||||
@ -330,7 +330,7 @@ TEST_F(ScrollableAppsGridViewTest, DoesNotAutoScrollUpWhenAtTop) {
|
||||
StartDragOnItemViewAt(0);
|
||||
GetEventGenerator()->MoveMouseTo(
|
||||
scroll_view_->GetBoundsInScreen().top_center());
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromMilliseconds(500));
|
||||
task_environment()->FastForwardBy(base::Milliseconds(500));
|
||||
|
||||
// View did not scroll.
|
||||
int scroll_offset = scroll_view_->GetVisibleRect().y();
|
||||
@ -351,7 +351,7 @@ TEST_F(ScrollableAppsGridViewTest, DoesNotAutoScrollDownWhenAtBottom) {
|
||||
StartDragOnItemViewAt(29);
|
||||
GetEventGenerator()->MoveMouseTo(
|
||||
scroll_view_->GetBoundsInScreen().bottom_center());
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromMilliseconds(500));
|
||||
task_environment()->FastForwardBy(base::Milliseconds(500));
|
||||
|
||||
// View did not scroll.
|
||||
int scroll_offset = scroll_view_->GetVisibleRect().y();
|
||||
@ -369,7 +369,7 @@ TEST_F(ScrollableAppsGridViewTest, DoesNotAutoScrollWhenDraggedToTheRight) {
|
||||
gfx::Point point = scroll_view_->GetBoundsInScreen().bottom_right();
|
||||
point.Offset(10, 10);
|
||||
GetEventGenerator()->MoveMouseTo(point);
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromMilliseconds(500));
|
||||
task_environment()->FastForwardBy(base::Milliseconds(500));
|
||||
|
||||
// View did not scroll.
|
||||
int scroll_offset = scroll_view_->GetVisibleRect().y();
|
||||
|
@ -48,8 +48,7 @@ constexpr int kPreferredTitleHorizontalMargins = 16;
|
||||
constexpr int kPreferredTitleTopMargins = 12;
|
||||
constexpr int kPreferredTitleBottomMargins = 4;
|
||||
|
||||
constexpr base::TimeDelta kImpressionThreshold =
|
||||
base::TimeDelta::FromSeconds(3);
|
||||
constexpr base::TimeDelta kImpressionThreshold = base::Seconds(3);
|
||||
|
||||
// TODO(crbug.com/1199206): Move this into SharedAppListConfig once the UI for
|
||||
// categories is more developed.
|
||||
|
@ -75,8 +75,7 @@ constexpr int kSearchBoxSearchResultShadowElevation = 12;
|
||||
|
||||
// The amount of time by which notifications to accessibility framework about
|
||||
// result page changes are delayed.
|
||||
constexpr base::TimeDelta kNotifyA11yDelay =
|
||||
base::TimeDelta::FromMilliseconds(1500);
|
||||
constexpr base::TimeDelta kNotifyA11yDelay = base::Milliseconds(1500);
|
||||
|
||||
// A container view that ensures the card background and the shadow are painted
|
||||
// in the correct order.
|
||||
|
@ -199,8 +199,7 @@ int SearchResultTileItemListView::DoUpdate() {
|
||||
recent_playstore_query_ = user_typed_query;
|
||||
playstore_impression_timer_.Stop();
|
||||
playstore_impression_timer_.Start(
|
||||
FROM_HERE,
|
||||
base::TimeDelta::FromMilliseconds(kPlayStoreImpressionDelayInMs), this,
|
||||
FROM_HERE, base::Milliseconds(kPlayStoreImpressionDelayInMs), this,
|
||||
&SearchResultTileItemListView::OnPlayStoreImpressionTimer);
|
||||
// Set the starting time in result view for play store results.
|
||||
base::TimeTicks result_display_start = base::TimeTicks::Now();
|
||||
|
@ -192,13 +192,13 @@ std::vector<AssistantNotificationButton> CreateTimerNotificationButtons(
|
||||
/*remove_notification_on_click=*/true});
|
||||
|
||||
// "ADD 1 MIN" button.
|
||||
buttons.push_back({l10n_util::GetStringUTF8(
|
||||
IDS_ASSISTANT_TIMER_NOTIFICATION_ADD_1_MIN_BUTTON),
|
||||
assistant::util::CreateAlarmTimerDeepLink(
|
||||
AlarmTimerAction::kAddTimeToTimer, timer.id,
|
||||
base::TimeDelta::FromMinutes(1))
|
||||
.value(),
|
||||
/*remove_notification_on_click=*/false});
|
||||
buttons.push_back(
|
||||
{l10n_util::GetStringUTF8(
|
||||
IDS_ASSISTANT_TIMER_NOTIFICATION_ADD_1_MIN_BUTTON),
|
||||
assistant::util::CreateAlarmTimerDeepLink(
|
||||
AlarmTimerAction::kAddTimeToTimer, timer.id, base::Minutes(1))
|
||||
.value(),
|
||||
/*remove_notification_on_click=*/false});
|
||||
} else {
|
||||
// "CANCEL" button.
|
||||
buttons.push_back({l10n_util::GetStringUTF8(
|
||||
@ -222,7 +222,7 @@ AssistantNotificationPriority CreateTimerNotificationPriority(
|
||||
|
||||
// If the notification has lived for at least |kPopupThreshold|, drop the
|
||||
// priority to |kLow| so that the notification will not pop up to the user.
|
||||
constexpr base::TimeDelta kPopupThreshold = base::TimeDelta::FromSeconds(6);
|
||||
constexpr base::TimeDelta kPopupThreshold = base::Seconds(6);
|
||||
const base::TimeDelta lifetime =
|
||||
base::Time::Now() - timer.creation_time.value_or(base::Time::Now());
|
||||
if (lifetime >= kPopupThreshold)
|
||||
@ -463,8 +463,7 @@ void AssistantAlarmTimerControllerImpl::ScheduleNextTick(
|
||||
// when Tick() is called due to the possibility of the |model_| being updated
|
||||
// via a call to OnTimerStateChanged(), such as might happen if a timer is
|
||||
// created, paused, resumed, or removed by LibAssistant.
|
||||
ticker.Start(FROM_HERE,
|
||||
base::TimeDelta::FromMilliseconds(millis_to_next_full_sec),
|
||||
ticker.Start(FROM_HERE, base::Milliseconds(millis_to_next_full_sec),
|
||||
base::BindOnce(&AssistantAlarmTimerControllerImpl::Tick,
|
||||
base::Unretained(this), timer.id));
|
||||
}
|
||||
|
@ -399,7 +399,7 @@ TEST_F(AssistantAlarmTimerControllerTest, AddedTimersShouldHaveCreationTime) {
|
||||
testing::Mock::VerifyAndClearExpectations(&mock);
|
||||
|
||||
// If specified, |creation_time| should be respected.
|
||||
creation_time -= base::TimeDelta::FromMinutes(1);
|
||||
creation_time -= base::Minutes(1);
|
||||
EXPECT_CALL(mock, OnTimerAdded)
|
||||
.WillOnce(testing::Invoke([&](const AssistantTimer& timer) {
|
||||
EXPECT_EQ(creation_time, timer.creation_time.value());
|
||||
@ -423,12 +423,12 @@ TEST_F(AssistantAlarmTimerControllerTest, TimerNotificationHasExpectedTitle) {
|
||||
/*ticks=*/
|
||||
{
|
||||
{base::TimeDelta(), "1:01:01"},
|
||||
{base::TimeDelta::FromHours(1), "1:01"},
|
||||
{base::TimeDelta::FromMinutes(1), "0:01"},
|
||||
{base::TimeDelta::FromSeconds(1), "0:00"},
|
||||
{base::TimeDelta::FromSeconds(1), "-0:01"},
|
||||
{base::TimeDelta::FromMinutes(1), "-1:01"},
|
||||
{base::TimeDelta::FromHours(1), "-1:01:01"},
|
||||
{base::Hours(1), "1:01"},
|
||||
{base::Minutes(1), "0:01"},
|
||||
{base::Seconds(1), "0:00"},
|
||||
{base::Seconds(1), "-0:01"},
|
||||
{base::Minutes(1), "-1:01"},
|
||||
{base::Hours(1), "-1:01:01"},
|
||||
},
|
||||
});
|
||||
|
||||
@ -438,12 +438,12 @@ TEST_F(AssistantAlarmTimerControllerTest, TimerNotificationHasExpectedTitle) {
|
||||
/*ticks=*/
|
||||
{
|
||||
{base::TimeDelta(), "1.01.01"},
|
||||
{base::TimeDelta::FromHours(1), "1.01"},
|
||||
{base::TimeDelta::FromMinutes(1), "0.01"},
|
||||
{base::TimeDelta::FromSeconds(1), "0.00"},
|
||||
{base::TimeDelta::FromSeconds(1), "-0.01"},
|
||||
{base::TimeDelta::FromMinutes(1), "-1.01"},
|
||||
{base::TimeDelta::FromHours(1), "-1.01.01"},
|
||||
{base::Hours(1), "1.01"},
|
||||
{base::Minutes(1), "0.01"},
|
||||
{base::Seconds(1), "0.00"},
|
||||
{base::Seconds(1), "-0.01"},
|
||||
{base::Minutes(1), "-1.01"},
|
||||
{base::Hours(1), "-1.01.01"},
|
||||
},
|
||||
});
|
||||
|
||||
@ -455,9 +455,8 @@ TEST_F(AssistantAlarmTimerControllerTest, TimerNotificationHasExpectedTitle) {
|
||||
ScopedNotificationModelObserver observer;
|
||||
|
||||
// Schedule a timer.
|
||||
ScheduleTimer(kTimerId).WithRemainingTime(base::TimeDelta::FromHours(1) +
|
||||
base::TimeDelta::FromMinutes(1) +
|
||||
base::TimeDelta::FromSeconds(1));
|
||||
ScheduleTimer(kTimerId).WithRemainingTime(
|
||||
base::Hours(1) + base::Minutes(1) + base::Seconds(1));
|
||||
|
||||
// Run each tick of the clock in the test.
|
||||
for (auto& tick : i18n_test_case.ticks) {
|
||||
@ -476,9 +475,9 @@ TEST_F(AssistantAlarmTimerControllerTest, TimerNotificationHasExpectedTitle) {
|
||||
// Tests that a notification is added for a timer and has the expected message.
|
||||
TEST_F(AssistantAlarmTimerControllerTest, TimerNotificationHasExpectedMessage) {
|
||||
constexpr char kEmptyLabel[] = "";
|
||||
constexpr base::TimeDelta kOneSec = base::TimeDelta::FromSeconds(1);
|
||||
constexpr base::TimeDelta kOneMin = base::TimeDelta::FromMinutes(1);
|
||||
constexpr base::TimeDelta kOneHour = base::TimeDelta::FromHours(1);
|
||||
constexpr base::TimeDelta kOneSec = base::Seconds(1);
|
||||
constexpr base::TimeDelta kOneMin = base::Minutes(1);
|
||||
constexpr base::TimeDelta kOneHour = base::Hours(1);
|
||||
|
||||
// We'll verify the message of our notification with various timers.
|
||||
typedef struct {
|
||||
@ -564,7 +563,7 @@ TEST_F(AssistantAlarmTimerControllerTest, TimerNotificationHasExpectedButtons) {
|
||||
// Observe notifications.
|
||||
ScopedNotificationModelObserver observer;
|
||||
|
||||
constexpr base::TimeDelta kTimeRemaining = base::TimeDelta::FromMinutes(1);
|
||||
constexpr base::TimeDelta kTimeRemaining = base::Minutes(1);
|
||||
|
||||
// Schedule a timer.
|
||||
ScheduleTimer(kTimerId).WithRemainingTime(kTimeRemaining);
|
||||
@ -645,7 +644,7 @@ TEST_F(AssistantAlarmTimerControllerTest, TimerNotificationHasExpectedButtons) {
|
||||
.WithLabel(IDS_ASSISTANT_TIMER_NOTIFICATION_ADD_1_MIN_BUTTON)
|
||||
.WithActionUrl(assistant::util::CreateAlarmTimerDeepLink(
|
||||
assistant::util::AlarmTimerAction::kAddTimeToTimer,
|
||||
kTimerId, base::TimeDelta::FromMinutes(1))
|
||||
kTimerId, base::Minutes(1))
|
||||
.value())
|
||||
.WithRemoveNotificationOnClick(false),
|
||||
observer.last_notification().buttons.at(1));
|
||||
@ -697,7 +696,7 @@ TEST_F(AssistantAlarmTimerControllerTest,
|
||||
ScopedNotificationModelObserver notification_model_observer;
|
||||
|
||||
// Schedule a timer.
|
||||
ScheduleTimer(kTimerId).WithRemainingTime(base::TimeDelta::FromSeconds(10));
|
||||
ScheduleTimer(kTimerId).WithRemainingTime(base::Seconds(10));
|
||||
|
||||
// Make assertions about the notification.
|
||||
EXPECT_EQ(ExpectedNotification().WithClientId(kClientId).WithPriority(
|
||||
@ -706,7 +705,7 @@ TEST_F(AssistantAlarmTimerControllerTest,
|
||||
|
||||
// Advance the clock.
|
||||
// NOTE: Six seconds is the threshold for popping up our notification.
|
||||
AdvanceClockAndWaitForTimerUpdate(base::TimeDelta::FromSeconds(6));
|
||||
AdvanceClockAndWaitForTimerUpdate(base::Seconds(6));
|
||||
|
||||
// Make assertions about the notification.
|
||||
EXPECT_EQ(ExpectedNotification().WithClientId(kClientId).WithPriority(
|
||||
|
@ -120,7 +120,7 @@ class AssistantNotificationBuilder {
|
||||
}
|
||||
|
||||
AssistantNotificationBuilder& WithTimeoutMs(int timeout_ms) {
|
||||
return WithTimeout(base::TimeDelta::FromMilliseconds(timeout_ms));
|
||||
return WithTimeout(base::Milliseconds(timeout_ms));
|
||||
}
|
||||
|
||||
private:
|
||||
@ -237,8 +237,7 @@ class AssistantNotificationControllerTest : public AshTestBase {
|
||||
}
|
||||
|
||||
void ForwardTimeInMs(int time_in_ms) {
|
||||
task_environment()->FastForwardBy(
|
||||
base::TimeDelta::FromMilliseconds(time_in_ms));
|
||||
task_environment()->FastForwardBy(base::Milliseconds(time_in_ms));
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -147,7 +147,7 @@ bool AssistantViewDelegateImpl::ShouldShowOnboarding() const {
|
||||
// The feature will start to show only for new users which we define as users
|
||||
// who haven't had an interaction with Assistant in the last 28 days.
|
||||
return interaction_controller->GetTimeDeltaSinceLastInteraction() >=
|
||||
base::TimeDelta::FromDays(28);
|
||||
base::Days(28);
|
||||
}
|
||||
|
||||
} // namespace ash
|
||||
|
@ -28,12 +28,9 @@ namespace {
|
||||
constexpr int kPreferredHeightDip = 48;
|
||||
|
||||
// Animation.
|
||||
constexpr base::TimeDelta kAnimationFadeInDelay =
|
||||
base::TimeDelta::FromMilliseconds(167);
|
||||
constexpr base::TimeDelta kAnimationFadeInDuration =
|
||||
base::TimeDelta::FromMilliseconds(167);
|
||||
constexpr base::TimeDelta kAnimationFadeOutDuration =
|
||||
base::TimeDelta::FromMilliseconds(167);
|
||||
constexpr base::TimeDelta kAnimationFadeInDelay = base::Milliseconds(167);
|
||||
constexpr base::TimeDelta kAnimationFadeInDuration = base::Milliseconds(167);
|
||||
constexpr base::TimeDelta kAnimationFadeOutDuration = base::Milliseconds(167);
|
||||
|
||||
} // namespace
|
||||
|
||||
|
@ -207,13 +207,12 @@ TEST_F(AssistantOnboardingViewTest, ShouldHaveExpectedGreeting) {
|
||||
CreateAndSwitchActiveUser(test_case.display_email, test_case.given_name);
|
||||
|
||||
// Advance clock to midnight tomorrow.
|
||||
AdvanceClock(base::Time::Now().LocalMidnight() +
|
||||
base::TimeDelta::FromHours(24) - base::Time::Now());
|
||||
AdvanceClock(base::Time::Now().LocalMidnight() + base::Hours(24) -
|
||||
base::Time::Now());
|
||||
|
||||
{
|
||||
// Verify 4:59 AM.
|
||||
AdvanceClock(base::TimeDelta::FromHours(4) +
|
||||
base::TimeDelta::FromMinutes(59));
|
||||
AdvanceClock(base::Hours(4) + base::Minutes(59));
|
||||
ScopedShowUi scoped_show_ui;
|
||||
EXPECT_EQ(greeting_label()->GetText(),
|
||||
test_case.expected_greeting.for_night);
|
||||
@ -221,7 +220,7 @@ TEST_F(AssistantOnboardingViewTest, ShouldHaveExpectedGreeting) {
|
||||
|
||||
{
|
||||
// Verify 5:00 AM.
|
||||
AdvanceClock(base::TimeDelta::FromMinutes(1));
|
||||
AdvanceClock(base::Minutes(1));
|
||||
ScopedShowUi scoped_show_ui;
|
||||
EXPECT_EQ(greeting_label()->GetText(),
|
||||
test_case.expected_greeting.for_morning);
|
||||
@ -229,8 +228,7 @@ TEST_F(AssistantOnboardingViewTest, ShouldHaveExpectedGreeting) {
|
||||
|
||||
{
|
||||
// Verify 11:59 AM.
|
||||
AdvanceClock(base::TimeDelta::FromHours(6) +
|
||||
base::TimeDelta::FromMinutes(59));
|
||||
AdvanceClock(base::Hours(6) + base::Minutes(59));
|
||||
ScopedShowUi scoped_show_ui;
|
||||
EXPECT_EQ(greeting_label()->GetText(),
|
||||
test_case.expected_greeting.for_morning);
|
||||
@ -238,7 +236,7 @@ TEST_F(AssistantOnboardingViewTest, ShouldHaveExpectedGreeting) {
|
||||
|
||||
{
|
||||
// Verify 12:00 PM.
|
||||
AdvanceClock(base::TimeDelta::FromMinutes(1));
|
||||
AdvanceClock(base::Minutes(1));
|
||||
ScopedShowUi scoped_show_ui;
|
||||
EXPECT_EQ(greeting_label()->GetText(),
|
||||
test_case.expected_greeting.for_afternoon);
|
||||
@ -246,8 +244,7 @@ TEST_F(AssistantOnboardingViewTest, ShouldHaveExpectedGreeting) {
|
||||
|
||||
{
|
||||
// Verify 4:59 PM.
|
||||
AdvanceClock(base::TimeDelta::FromHours(4) +
|
||||
base::TimeDelta::FromMinutes(59));
|
||||
AdvanceClock(base::Hours(4) + base::Minutes(59));
|
||||
ScopedShowUi scoped_show_ui;
|
||||
EXPECT_EQ(greeting_label()->GetText(),
|
||||
test_case.expected_greeting.for_afternoon);
|
||||
@ -255,7 +252,7 @@ TEST_F(AssistantOnboardingViewTest, ShouldHaveExpectedGreeting) {
|
||||
|
||||
{
|
||||
// Verify 5:00 PM.
|
||||
AdvanceClock(base::TimeDelta::FromMinutes(1));
|
||||
AdvanceClock(base::Minutes(1));
|
||||
ScopedShowUi scoped_show_ui;
|
||||
EXPECT_EQ(greeting_label()->GetText(),
|
||||
test_case.expected_greeting.for_evening);
|
||||
@ -263,8 +260,7 @@ TEST_F(AssistantOnboardingViewTest, ShouldHaveExpectedGreeting) {
|
||||
|
||||
{
|
||||
// Verify 10:59 PM.
|
||||
AdvanceClock(base::TimeDelta::FromHours(5) +
|
||||
base::TimeDelta::FromMinutes(59));
|
||||
AdvanceClock(base::Hours(5) + base::Minutes(59));
|
||||
ScopedShowUi scoped_show_ui;
|
||||
EXPECT_EQ(greeting_label()->GetText(),
|
||||
test_case.expected_greeting.for_evening);
|
||||
@ -272,7 +268,7 @@ TEST_F(AssistantOnboardingViewTest, ShouldHaveExpectedGreeting) {
|
||||
|
||||
{
|
||||
// Verify 11:00 PM.
|
||||
AdvanceClock(base::TimeDelta::FromMinutes(1));
|
||||
AdvanceClock(base::Minutes(1));
|
||||
ScopedShowUi scoped_show_ui;
|
||||
EXPECT_EQ(greeting_label()->GetText(),
|
||||
test_case.expected_greeting.for_night);
|
||||
|
@ -146,21 +146,19 @@ void AssistantProgressIndicator::VisibilityChanged(views::View* starting_from,
|
||||
start_offset,
|
||||
ui::LayerAnimationElement::AnimatableProperty::TRANSFORM);
|
||||
}
|
||||
start_offset += base::TimeDelta::FromMilliseconds(216);
|
||||
start_offset += base::Milliseconds(216);
|
||||
|
||||
// Schedule transformation animation.
|
||||
child->layer()->GetAnimator()->ScheduleAnimation(
|
||||
CreateLayerAnimationSequence(
|
||||
// Animate scale up.
|
||||
CreateTransformElement(transform,
|
||||
base::TimeDelta::FromMilliseconds(266)),
|
||||
CreateTransformElement(transform, base::Milliseconds(266)),
|
||||
// Animate scale down.
|
||||
CreateTransformElement(gfx::Transform(),
|
||||
base::TimeDelta::FromMilliseconds(450)),
|
||||
CreateTransformElement(gfx::Transform(), base::Milliseconds(450)),
|
||||
// Pause before next iteration.
|
||||
ui::LayerAnimationElement::CreatePauseElement(
|
||||
ui::LayerAnimationElement::AnimatableProperty::TRANSFORM,
|
||||
base::TimeDelta::FromMilliseconds(500)),
|
||||
base::Milliseconds(500)),
|
||||
// Animation parameters.
|
||||
{/*is_cyclic=*/true}));
|
||||
}
|
||||
|
@ -22,10 +22,8 @@ using assistant::util::CreateOpacityElement;
|
||||
using assistant::util::StartLayerAnimationSequence;
|
||||
|
||||
// Animation.
|
||||
constexpr base::TimeDelta kAnimateInDuration =
|
||||
base::TimeDelta::FromMilliseconds(250);
|
||||
constexpr base::TimeDelta kAnimateOutDuration =
|
||||
base::TimeDelta::FromMilliseconds(200);
|
||||
constexpr base::TimeDelta kAnimateInDuration = base::Milliseconds(250);
|
||||
constexpr base::TimeDelta kAnimateOutDuration = base::Milliseconds(200);
|
||||
|
||||
} // namespace
|
||||
|
||||
|
@ -23,8 +23,7 @@ namespace ash {
|
||||
class ElementAnimator {
|
||||
public:
|
||||
// Fade out duration used in the default implementation of |FadeOut|.
|
||||
constexpr static base::TimeDelta kFadeOutDuration =
|
||||
base::TimeDelta::FromMilliseconds(150);
|
||||
constexpr static base::TimeDelta kFadeOutDuration = base::Milliseconds(150);
|
||||
// Fade out opacity used in the default implementation of |FadeOut|.
|
||||
constexpr static float kFadeOutOpacity = 0.26f;
|
||||
// Minimum allowed opacity as a target when fading out.
|
||||
|
@ -38,10 +38,8 @@ using assistant::util::CreateOpacityElement;
|
||||
using assistant::util::StartLayerAnimationSequence;
|
||||
|
||||
// Animation.
|
||||
constexpr base::TimeDelta kChipFadeInDuration =
|
||||
base::TimeDelta::FromMilliseconds(250);
|
||||
constexpr base::TimeDelta kChipFadeOutDuration =
|
||||
base::TimeDelta::FromMilliseconds(200);
|
||||
constexpr base::TimeDelta kChipFadeInDuration = base::Milliseconds(250);
|
||||
constexpr base::TimeDelta kChipFadeOutDuration = base::Milliseconds(200);
|
||||
|
||||
// Appearance.
|
||||
constexpr int kPreferredHeightDip = 48;
|
||||
|
@ -349,7 +349,7 @@ absl::optional<base::TimeDelta> GetDeepLinkParamAsTimeDelta(
|
||||
if (!duration_ms.has_value())
|
||||
return absl::nullopt;
|
||||
|
||||
return base::TimeDelta::FromMilliseconds(duration_ms.value());
|
||||
return base::Milliseconds(duration_ms.value());
|
||||
}
|
||||
|
||||
DeepLinkType GetDeepLinkType(const GURL& url) {
|
||||
|
@ -73,7 +73,7 @@ TEST_F(DeepLinkUtilTest, CreateAlarmTimerDeeplink) {
|
||||
"googleassistant://"
|
||||
"alarm-timer?action=addTimeToTimer&id=1&durationMs=60000",
|
||||
CreateAlarmTimerDeepLink(AlarmTimerAction::kAddTimeToTimer, "1",
|
||||
base::TimeDelta::FromMinutes(1))
|
||||
base::Minutes(1))
|
||||
.value());
|
||||
ASSERT_EQ("googleassistant://alarm-timer?action=pauseTimer&id=1",
|
||||
CreateAlarmTimerDeepLink(AlarmTimerAction::kPauseTimer, "1",
|
||||
@ -98,9 +98,9 @@ TEST_F(DeepLinkUtilTest, CreateAlarmTimerDeeplink) {
|
||||
ASSERT_EQ(absl::nullopt,
|
||||
CreateAlarmTimerDeepLink(AlarmTimerAction::kAddTimeToTimer, "1",
|
||||
absl::nullopt));
|
||||
ASSERT_EQ(absl::nullopt, CreateAlarmTimerDeepLink(
|
||||
AlarmTimerAction::kAddTimeToTimer, absl::nullopt,
|
||||
base::TimeDelta::FromMinutes(1)));
|
||||
ASSERT_EQ(absl::nullopt,
|
||||
CreateAlarmTimerDeepLink(AlarmTimerAction::kAddTimeToTimer,
|
||||
absl::nullopt, base::Minutes(1)));
|
||||
ASSERT_EQ(absl::nullopt,
|
||||
CreateAlarmTimerDeepLink(AlarmTimerAction::kAddTimeToTimer,
|
||||
absl::nullopt, absl::nullopt));
|
||||
@ -108,32 +108,32 @@ TEST_F(DeepLinkUtilTest, CreateAlarmTimerDeeplink) {
|
||||
ASSERT_EQ(absl::nullopt,
|
||||
CreateAlarmTimerDeepLink(AlarmTimerAction::kPauseTimer,
|
||||
absl::nullopt, absl::nullopt));
|
||||
ASSERT_EQ(absl::nullopt, CreateAlarmTimerDeepLink(
|
||||
AlarmTimerAction::kPauseTimer, absl::nullopt,
|
||||
base::TimeDelta::FromMinutes(1)));
|
||||
ASSERT_EQ(absl::nullopt,
|
||||
CreateAlarmTimerDeepLink(AlarmTimerAction::kPauseTimer,
|
||||
absl::nullopt, base::Minutes(1)));
|
||||
ASSERT_EQ(absl::nullopt,
|
||||
CreateAlarmTimerDeepLink(AlarmTimerAction::kPauseTimer, "1",
|
||||
base::TimeDelta::FromMinutes(1)));
|
||||
base::Minutes(1)));
|
||||
|
||||
ASSERT_EQ(absl::nullopt,
|
||||
CreateAlarmTimerDeepLink(AlarmTimerAction::kRemoveAlarmOrTimer,
|
||||
absl::nullopt, absl::nullopt));
|
||||
ASSERT_EQ(absl::nullopt, CreateAlarmTimerDeepLink(
|
||||
AlarmTimerAction::kRemoveAlarmOrTimer,
|
||||
absl::nullopt, base::TimeDelta::FromMinutes(1)));
|
||||
ASSERT_EQ(absl::nullopt,
|
||||
CreateAlarmTimerDeepLink(AlarmTimerAction::kRemoveAlarmOrTimer,
|
||||
absl::nullopt, base::Minutes(1)));
|
||||
ASSERT_EQ(absl::nullopt,
|
||||
CreateAlarmTimerDeepLink(AlarmTimerAction::kRemoveAlarmOrTimer, "1",
|
||||
base::TimeDelta::FromMinutes(1)));
|
||||
base::Minutes(1)));
|
||||
|
||||
ASSERT_EQ(absl::nullopt,
|
||||
CreateAlarmTimerDeepLink(AlarmTimerAction::kResumeTimer,
|
||||
absl::nullopt, absl::nullopt));
|
||||
ASSERT_EQ(absl::nullopt, CreateAlarmTimerDeepLink(
|
||||
AlarmTimerAction::kResumeTimer, absl::nullopt,
|
||||
base::TimeDelta::FromMinutes(1)));
|
||||
ASSERT_EQ(absl::nullopt,
|
||||
CreateAlarmTimerDeepLink(AlarmTimerAction::kResumeTimer,
|
||||
absl::nullopt, base::Minutes(1)));
|
||||
ASSERT_EQ(absl::nullopt,
|
||||
CreateAlarmTimerDeepLink(AlarmTimerAction::kResumeTimer, "1",
|
||||
base::TimeDelta::FromMinutes(1)));
|
||||
base::Minutes(1)));
|
||||
}
|
||||
|
||||
TEST_F(DeepLinkUtilTest, CreateAssistantQueryDeepLink) {
|
||||
@ -438,11 +438,9 @@ TEST_F(DeepLinkUtilTest, GetDeepLinkParamAsTimeDelta) {
|
||||
|
||||
// Case: Deep link parameter present, well formed "60000".
|
||||
params["durationMs"] = "60000";
|
||||
AssertDeepLinkParamEq(base::TimeDelta::FromMinutes(1),
|
||||
DeepLinkParam::kDurationMs);
|
||||
AssertDeepLinkParamEq(base::Minutes(1), DeepLinkParam::kDurationMs);
|
||||
params["durationMs"] = "00";
|
||||
AssertDeepLinkParamEq(base::TimeDelta::FromMilliseconds(0),
|
||||
DeepLinkParam::kDurationMs);
|
||||
AssertDeepLinkParamEq(base::Milliseconds(0), DeepLinkParam::kDurationMs);
|
||||
|
||||
// Case: Deep link parameter present, non-int value.
|
||||
params["durationMs"] = "true";
|
||||
|
@ -44,25 +44,20 @@ constexpr int kCountDownStartSeconds = 3;
|
||||
constexpr int kCountDownEndSeconds = 1;
|
||||
|
||||
constexpr base::TimeDelta kCaptureLabelOpacityFadeoutDuration =
|
||||
base::TimeDelta::FromMilliseconds(33);
|
||||
base::Milliseconds(33);
|
||||
// Opacity fade in animation duration and scale up animation duration when the
|
||||
// timeout label enters 3.
|
||||
constexpr base::TimeDelta kCountDownEnter3Duration =
|
||||
base::TimeDelta::FromMilliseconds(267);
|
||||
constexpr base::TimeDelta kCountDownEnter3Duration = base::Milliseconds(267);
|
||||
// Opacity fade out animation duration and scale down animation duration when
|
||||
// the timeout label exits 1.
|
||||
constexpr base::TimeDelta kCountDownExit1Duration =
|
||||
base::TimeDelta::FromMilliseconds(333);
|
||||
constexpr base::TimeDelta kCountDownExit1Duration = base::Milliseconds(333);
|
||||
// For other number enter/exit fade in/out, scale up/down animation duration.
|
||||
constexpr base::TimeDelta kCountDownEnterExitDuration =
|
||||
base::TimeDelta::FromMilliseconds(167);
|
||||
constexpr base::TimeDelta kCountDownEnterExitDuration = base::Milliseconds(167);
|
||||
|
||||
// Delay to enter number 3 to start count down.
|
||||
constexpr base::TimeDelta kStartCountDownDelay =
|
||||
base::TimeDelta::FromMilliseconds(233);
|
||||
constexpr base::TimeDelta kStartCountDownDelay = base::Milliseconds(233);
|
||||
// Delay to exit a number after entering animation is completed.
|
||||
constexpr base::TimeDelta kCountDownExitDelay =
|
||||
base::TimeDelta::FromMilliseconds(667);
|
||||
constexpr base::TimeDelta kCountDownExitDelay = base::Milliseconds(667);
|
||||
|
||||
// Different scales for enter/exiting countdown numbers.
|
||||
constexpr float kEnterLabelScaleDown = 0.8f;
|
||||
|
@ -68,8 +68,7 @@ CaptureModeController* g_instance = nullptr;
|
||||
|
||||
// The amount of time that can elapse from the prior screenshot to be considered
|
||||
// consecutive.
|
||||
constexpr base::TimeDelta kConsecutiveScreenshotThreshold =
|
||||
base::TimeDelta::FromSeconds(5);
|
||||
constexpr base::TimeDelta kConsecutiveScreenshotThreshold = base::Seconds(5);
|
||||
|
||||
constexpr char kScreenCaptureNotificationId[] = "capture_mode_notification";
|
||||
constexpr char kScreenCaptureStoppedNotificationId[] =
|
||||
@ -89,8 +88,7 @@ constexpr char k24HourTimeFmtStr[] = "%02d.%02d.%02d";
|
||||
constexpr char kAmPmTimeFmtStr[] = "%d.%02d.%02d";
|
||||
|
||||
// Duration to clear the capture region selection from the previous session.
|
||||
constexpr base::TimeDelta kResetCaptureRegionDuration =
|
||||
base::TimeDelta::FromMinutes(8);
|
||||
constexpr base::TimeDelta kResetCaptureRegionDuration = base::Minutes(8);
|
||||
|
||||
// The name of a file path pref for the user-selected custom path to which
|
||||
// captured images and videos should be saved.
|
||||
@ -343,14 +341,14 @@ CaptureModeController::CaptureModeController(
|
||||
|
||||
// Schedule recording of the number of screenshots taken per day.
|
||||
num_screenshots_taken_in_last_day_scheduler_.Start(
|
||||
FROM_HERE, base::TimeDelta::FromDays(1),
|
||||
FROM_HERE, base::Days(1),
|
||||
base::BindRepeating(
|
||||
&CaptureModeController::RecordAndResetScreenshotsTakenInLastDay,
|
||||
weak_ptr_factory_.GetWeakPtr()));
|
||||
|
||||
// Schedule recording of the number of screenshots taken per week.
|
||||
num_screenshots_taken_in_last_week_scheduler_.Start(
|
||||
FROM_HERE, base::TimeDelta::FromDays(7),
|
||||
FROM_HERE, base::Days(7),
|
||||
base::BindRepeating(
|
||||
&CaptureModeController::RecordAndResetScreenshotsTakenInLastWeek,
|
||||
weak_ptr_factory_.GetWeakPtr()));
|
||||
|
@ -90,10 +90,10 @@ void RecordCaptureModeEntryType(CaptureModeEntryType entry_type) {
|
||||
void RecordCaptureModeRecordTime(int64_t length_in_seconds) {
|
||||
// Use custom counts macro instead of custom times so we can record in
|
||||
// seconds instead of milliseconds. The max bucket is 3 hours.
|
||||
base::UmaHistogramCustomCounts(
|
||||
kRecordTimeHistogramName, length_in_seconds, /*min=*/1,
|
||||
/*max=*/base::TimeDelta::FromHours(3).InSeconds(),
|
||||
/*bucket_count=*/50);
|
||||
base::UmaHistogramCustomCounts(kRecordTimeHistogramName, length_in_seconds,
|
||||
/*min=*/1,
|
||||
/*max=*/base::Hours(3).InSeconds(),
|
||||
/*bucket_count=*/50);
|
||||
}
|
||||
|
||||
void RecordCaptureModeSwitchesFromInitialMode(bool switched) {
|
||||
|
@ -131,15 +131,14 @@ constexpr int kCaptureRegionMinimumPaddingDp = 16;
|
||||
// The animation duration that the label fades out and scales down before count
|
||||
// down starts.
|
||||
constexpr base::TimeDelta kCaptureLabelCountdownStartDuration =
|
||||
base::TimeDelta::FromMilliseconds(267);
|
||||
base::Milliseconds(267);
|
||||
// The animation duration that the capture bar fades out before count down
|
||||
// starts.
|
||||
constexpr base::TimeDelta kCaptureBarFadeOutDuration =
|
||||
base::TimeDelta::FromMilliseconds(167);
|
||||
constexpr base::TimeDelta kCaptureBarFadeOutDuration = base::Milliseconds(167);
|
||||
// The animation duration that the fullscreen shield fades out before count down
|
||||
// starts.
|
||||
constexpr base::TimeDelta kCaptureShieldFadeOutDuration =
|
||||
base::TimeDelta::FromMilliseconds(333);
|
||||
base::Milliseconds(333);
|
||||
// If there is no text message was showing when count down starts, the label
|
||||
// widget will shrink down from 120% -> 100% and fade in.
|
||||
constexpr float kLabelScaleUpOnCountdown = 1.2;
|
||||
@ -147,10 +146,10 @@ constexpr float kLabelScaleUpOnCountdown = 1.2;
|
||||
// The animation duration that the label fades out and scales up when going from
|
||||
// the selection phase to the fine tune phase.
|
||||
constexpr base::TimeDelta kCaptureLabelRegionPhaseChangeDuration =
|
||||
base::TimeDelta::FromMilliseconds(167);
|
||||
base::Milliseconds(167);
|
||||
// The delay before the label fades out and scales up.
|
||||
constexpr base::TimeDelta kCaptureLabelRegionPhaseChangeDelay =
|
||||
base::TimeDelta::FromMilliseconds(67);
|
||||
base::Milliseconds(67);
|
||||
// When going from the select region phase to the fine tune phase, the label
|
||||
// widget will scale up from 80% -> 100%.
|
||||
constexpr float kLabelScaleDownOnPhaseChange = 0.8;
|
||||
@ -158,10 +157,10 @@ constexpr float kLabelScaleDownOnPhaseChange = 0.8;
|
||||
// Animation parameters for capture bar overlapping the user capture region.
|
||||
// The default animation duration for opacity changes to the capture bar.
|
||||
constexpr base::TimeDelta kCaptureBarOpacityChangeDuration =
|
||||
base::TimeDelta::FromMilliseconds(100);
|
||||
base::Milliseconds(100);
|
||||
// The animation duration for showing the capture bar on mouse/touch release.
|
||||
constexpr base::TimeDelta kCaptureBarOnReleaseOpacityChangeDuration =
|
||||
base::TimeDelta::FromMilliseconds(167);
|
||||
base::Milliseconds(167);
|
||||
// When the capture bar and user capture region overlap and the mouse is not
|
||||
// hovering over the capture bar, drop the opacity to this value to make the
|
||||
// region easier to see.
|
||||
|
@ -452,8 +452,7 @@ class CaptureModeTest : public AshTestBase {
|
||||
while (!controller->is_recording_in_progress()) {
|
||||
base::RunLoop run_loop;
|
||||
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
||||
FROM_HERE, run_loop.QuitClosure(),
|
||||
base::TimeDelta::FromMilliseconds(100));
|
||||
FROM_HERE, run_loop.QuitClosure(), base::Milliseconds(100));
|
||||
run_loop.Run();
|
||||
}
|
||||
}
|
||||
@ -482,7 +481,7 @@ class CaptureModeTest : public AshTestBase {
|
||||
base::RunLoop loop;
|
||||
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
||||
FROM_HERE, base::BindLambdaForTesting([&]() { loop.Quit(); }),
|
||||
base::TimeDelta::FromSeconds(seconds));
|
||||
base::Seconds(seconds));
|
||||
loop.Run();
|
||||
}
|
||||
|
||||
@ -3678,13 +3677,13 @@ TEST_F(CaptureModeMockTimeTest, ConsecutiveScreenshotsHistograms) {
|
||||
SelectRegion(capture_region);
|
||||
take_n_screenshots(3);
|
||||
histogram_tester.ExpectBucketCount(kConsecutiveScreenshotsHistogram, 3, 0);
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromSeconds(5));
|
||||
task_environment()->FastForwardBy(base::Seconds(5));
|
||||
histogram_tester.ExpectBucketCount(kConsecutiveScreenshotsHistogram, 3, 1);
|
||||
|
||||
// Take only one screenshot. This should not be recorded.
|
||||
take_n_screenshots(1);
|
||||
histogram_tester.ExpectBucketCount(kConsecutiveScreenshotsHistogram, 1, 0);
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromSeconds(5));
|
||||
task_environment()->FastForwardBy(base::Seconds(5));
|
||||
histogram_tester.ExpectBucketCount(kConsecutiveScreenshotsHistogram, 1, 0);
|
||||
|
||||
// Take a screenshot, change source and take another screenshot. This should
|
||||
@ -3694,7 +3693,7 @@ TEST_F(CaptureModeMockTimeTest, ConsecutiveScreenshotsHistograms) {
|
||||
CaptureModeType::kImage);
|
||||
controller->PerformCapture();
|
||||
histogram_tester.ExpectBucketCount(kConsecutiveScreenshotsHistogram, 2, 0);
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromSeconds(5));
|
||||
task_environment()->FastForwardBy(base::Seconds(5));
|
||||
histogram_tester.ExpectBucketCount(kConsecutiveScreenshotsHistogram, 2, 1);
|
||||
}
|
||||
|
||||
@ -3712,7 +3711,7 @@ TEST_F(CaptureModeMockTimeTest, ClearUserCaptureRegionBetweenSessions) {
|
||||
|
||||
// Start region image capture again shortly after the previous capture
|
||||
// session, we should still be able to reuse the previous capture region.
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromMinutes(1));
|
||||
task_environment()->FastForwardBy(base::Minutes(1));
|
||||
StartImageRegionCapture();
|
||||
EXPECT_EQ(capture_region, controller->user_capture_region());
|
||||
auto* event_generator = GetEventGenerator();
|
||||
@ -3722,7 +3721,7 @@ TEST_F(CaptureModeMockTimeTest, ClearUserCaptureRegionBetweenSessions) {
|
||||
|
||||
// Wait for 8 second and then start region image capture again. We should have
|
||||
// forgot the previous capture region.
|
||||
task_environment()->FastForwardBy(base::TimeDelta::FromMinutes(8));
|
||||
task_environment()->FastForwardBy(base::Minutes(8));
|
||||
StartImageRegionCapture();
|
||||
EXPECT_EQ(gfx::Rect(), controller->user_capture_region());
|
||||
}
|
||||
|
@ -47,14 +47,13 @@ namespace {
|
||||
// events that are too frequent will be throttled. We use the frame duration as
|
||||
// the minimum delay between any two successive such events that we use to
|
||||
// update the cursor overlay.
|
||||
constexpr base::TimeDelta kCursorEventsThrottleDelay =
|
||||
base::TimeDelta::FromHz(30);
|
||||
constexpr base::TimeDelta kCursorEventsThrottleDelay = base::Hertz(30);
|
||||
|
||||
// Window resizes can be done on many intermediate steps. This delay is used to
|
||||
// throttle these resize events so that we send the final size of the window to
|
||||
// the recording service when it stabilizes.
|
||||
constexpr base::TimeDelta kWindowSizeChangeThrottleDelay =
|
||||
base::TimeDelta::FromMilliseconds(250);
|
||||
base::Milliseconds(250);
|
||||
|
||||
// Returns true if |window_1| and |window_2| are both windows that belong to
|
||||
// the same Desk. Note that it will return false for windows that don't belong
|
||||
|
@ -121,7 +121,7 @@ void ClipboardHistory::OnClipboardDataChanged() {
|
||||
base::BindOnce(&ClipboardHistory::OnClipboardOperation,
|
||||
clipboard_histogram_weak_factory_.GetWeakPtr(),
|
||||
/*copy=*/true),
|
||||
base::TimeDelta::FromMilliseconds(100));
|
||||
base::Milliseconds(100));
|
||||
|
||||
// We post commit |clipboard_data| at the end of the current task sequence to
|
||||
// debounce the case where multiple copies are programmatically performed.
|
||||
@ -153,7 +153,7 @@ void ClipboardHistory::OnClipboardDataRead() {
|
||||
base::BindOnce(&ClipboardHistory::OnClipboardOperation,
|
||||
clipboard_histogram_weak_factory_.GetWeakPtr(),
|
||||
/*copy=*/false),
|
||||
base::TimeDelta::FromMilliseconds(100));
|
||||
base::Milliseconds(100));
|
||||
}
|
||||
|
||||
void ClipboardHistory::OnClipboardOperation(bool copy) {
|
||||
|
@ -644,7 +644,7 @@ void ClipboardHistoryControllerImpl::PasteClipboardHistoryItem(
|
||||
GetClipboard()->WriteClipboardData(std::move(original_data));
|
||||
},
|
||||
weak_ptr_factory_.GetWeakPtr(), std::move(original_data)),
|
||||
base::TimeDelta::FromMilliseconds(200));
|
||||
base::Milliseconds(200));
|
||||
}
|
||||
|
||||
void ClipboardHistoryControllerImpl::DeleteSelectedMenuItemIfAny() {
|
||||
|
@ -51,9 +51,8 @@ const char kScreenshotNotification_PasteTime[] =
|
||||
|
||||
constexpr int kNotificationLimit = 3;
|
||||
constexpr int kContextMenuBadgeShowLimit = 3;
|
||||
constexpr base::TimeDelta kMinInterval = base::TimeDelta::FromDays(1);
|
||||
constexpr base::TimeDelta kMaxTimeBetweenPaste =
|
||||
base::TimeDelta::FromMinutes(10);
|
||||
constexpr base::TimeDelta kMinInterval = base::Days(1);
|
||||
constexpr base::TimeDelta kMaxTimeBetweenPaste = base::Minutes(10);
|
||||
|
||||
} // namespace ash
|
||||
|
||||
|
@ -72,7 +72,7 @@ class ClipboardNudgeControllerTest : public AshTestBase {
|
||||
nudge_controller_ =
|
||||
Shell::Get()->clipboard_history_controller()->nudge_controller();
|
||||
nudge_controller_->OverrideClockForTesting(&test_clock_);
|
||||
test_clock_.Advance(base::TimeDelta::FromSeconds(360));
|
||||
test_clock_.Advance(base::Seconds(360));
|
||||
}
|
||||
|
||||
void TearDown() override {
|
||||
|
@ -35,13 +35,11 @@ namespace {
|
||||
|
||||
// The duration of the fade out animation for transitioning the placeholder
|
||||
// image to rendered HTML.
|
||||
constexpr base::TimeDelta kFadeOutDurationMs =
|
||||
base::TimeDelta::FromMilliseconds(60);
|
||||
constexpr base::TimeDelta kFadeOutDurationMs = base::Milliseconds(60);
|
||||
|
||||
// The duration of the fade in animation for transitioning the placeholder image
|
||||
// to rendered HTML.
|
||||
constexpr base::TimeDelta kFadeInDurationMs =
|
||||
base::TimeDelta::FromMilliseconds(200);
|
||||
constexpr base::TimeDelta kFadeInDurationMs = base::Milliseconds(200);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// FadeImageView
|
||||
|
@ -1822,9 +1822,8 @@ void CrasAudioHandler::StartHDMIRediscoverGracePeriod() {
|
||||
hdmi_rediscover_timer_.Stop();
|
||||
hdmi_rediscover_timer_.Start(
|
||||
FROM_HERE,
|
||||
base::TimeDelta::FromMilliseconds(
|
||||
hdmi_rediscover_grace_period_duration_in_ms_),
|
||||
this, &CrasAudioHandler::UpdateAudioAfterHDMIRediscoverGracePeriod);
|
||||
base::Milliseconds(hdmi_rediscover_grace_period_duration_in_ms_), this,
|
||||
&CrasAudioHandler::UpdateAudioAfterHDMIRediscoverGracePeriod);
|
||||
}
|
||||
|
||||
void CrasAudioHandler::SetHDMIRediscoverGracePeriodForTesting(
|
||||
|
@ -518,7 +518,7 @@ class HDMIRediscoverWaiter {
|
||||
base::RunLoop run_loop;
|
||||
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
||||
FROM_HERE, run_loop.QuitClosure(),
|
||||
base::TimeDelta::FromMilliseconds(wait_duration_in_ms));
|
||||
base::Milliseconds(wait_duration_in_ms));
|
||||
run_loop.Run();
|
||||
}
|
||||
|
||||
@ -531,7 +531,7 @@ class HDMIRediscoverWaiter {
|
||||
FROM_HERE,
|
||||
base::BindOnce(&HDMIRediscoverWaiter::CheckHDMIRediscoverGracePeriodEnd,
|
||||
base::Unretained(this), std::move(quit_loop_func)),
|
||||
base::TimeDelta::FromMilliseconds(grace_period_duration_in_ms_ / 4));
|
||||
base::Milliseconds(grace_period_duration_in_ms_ / 4));
|
||||
}
|
||||
|
||||
void WaitUntilHDMIRediscoverGracePeriodEnd() {
|
||||
|
@ -61,7 +61,7 @@ void DriveFsAuth::GetAccessToken(
|
||||
get_access_token_callback_ = std::move(callback);
|
||||
// Timer is cancelled when it is destroyed, so use base::Unretained().
|
||||
timer_->Start(
|
||||
FROM_HERE, base::TimeDelta::FromSeconds(30),
|
||||
FROM_HERE, base::Seconds(30),
|
||||
base::BindOnce(&DriveFsAuth::AuthTimeout, base::Unretained(this)));
|
||||
std::set<std::string> scopes({"https://www.googleapis.com/auth/drive"});
|
||||
access_token_fetcher_ =
|
||||
|
@ -28,7 +28,7 @@ namespace {
|
||||
using testing::_;
|
||||
|
||||
constexpr char kTestEmail[] = "test@example.com";
|
||||
constexpr base::TimeDelta kTokenLifetime = base::TimeDelta::FromHours(1);
|
||||
constexpr base::TimeDelta kTokenLifetime = base::Hours(1);
|
||||
|
||||
class AuthDelegateImpl : public DriveFsAuth::Delegate {
|
||||
public:
|
||||
@ -281,7 +281,7 @@ TEST_F(DriveFsAuthTest, CacheExpired) {
|
||||
EXPECT_TRUE(identity_test_env_.IsAccessTokenRequestPending());
|
||||
RespondWithAccessToken("auth token");
|
||||
|
||||
clock_.Advance(base::TimeDelta::FromHours(2));
|
||||
clock_.Advance(base::Hours(2));
|
||||
|
||||
// The token expired so a new one is requested.
|
||||
auth_->GetAccessToken(true, base::BindOnce([](mojom::AccessTokenStatus status,
|
||||
|
@ -48,7 +48,7 @@ using base::test::RunOnceClosure;
|
||||
using testing::_;
|
||||
using MountFailure = DriveFsHost::MountObserver::MountFailure;
|
||||
|
||||
constexpr base::TimeDelta kTokenLifetime = base::TimeDelta::FromHours(1);
|
||||
constexpr base::TimeDelta kTokenLifetime = base::Hours(1);
|
||||
|
||||
class MockDriveFs : public mojom::DriveFsInterceptorForTesting,
|
||||
public mojom::SearchQuery {
|
||||
@ -738,7 +738,7 @@ TEST_F(DriveFsHostTest, Remount_CachedOnceOnly) {
|
||||
"auth token", clock_.Now() + kTokenLifetime);
|
||||
EXPECT_FALSE(identity_test_env_.IsAccessTokenRequestPending());
|
||||
|
||||
absl::optional<base::TimeDelta> delay = base::TimeDelta::FromSeconds(5);
|
||||
absl::optional<base::TimeDelta> delay = base::Seconds(5);
|
||||
EXPECT_CALL(*host_delegate_, OnUnmounted(delay));
|
||||
SendOnUnmounted(delay);
|
||||
base::RunLoop().RunUntilIdle();
|
||||
@ -774,7 +774,7 @@ TEST_F(DriveFsHostTest, Remount_RequestInflight) {
|
||||
base::BindLambdaForTesting([&](mojom::AccessTokenStatus status,
|
||||
const std::string& token) { FAIL(); }));
|
||||
|
||||
absl::optional<base::TimeDelta> delay = base::TimeDelta::FromSeconds(5);
|
||||
absl::optional<base::TimeDelta> delay = base::Seconds(5);
|
||||
EXPECT_CALL(*host_delegate_, OnUnmounted(delay));
|
||||
SendOnUnmounted(delay);
|
||||
base::RunLoop().RunUntilIdle();
|
||||
@ -799,7 +799,7 @@ TEST_F(DriveFsHostTest, Remount_RequestInflightCompleteAfterMount) {
|
||||
base::BindLambdaForTesting([&](mojom::AccessTokenStatus status,
|
||||
const std::string& token) { FAIL(); }));
|
||||
|
||||
absl::optional<base::TimeDelta> delay = base::TimeDelta::FromSeconds(5);
|
||||
absl::optional<base::TimeDelta> delay = base::Seconds(5);
|
||||
EXPECT_CALL(*host_delegate_, OnUnmounted(delay));
|
||||
SendOnUnmounted(delay);
|
||||
base::RunLoop().RunUntilIdle();
|
||||
|
@ -15,7 +15,7 @@ namespace drivefs {
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr base::TimeDelta kQueryCacheTtl = base::TimeDelta::FromMinutes(5);
|
||||
constexpr base::TimeDelta kQueryCacheTtl = base::Minutes(5);
|
||||
|
||||
bool IsCloudSharedWithMeQuery(const drivefs::mojom::QueryParametersPtr& query) {
|
||||
return query->query_source ==
|
||||
|
@ -287,7 +287,7 @@ TEST_F(DriveFsSearchTest, Search_SharedWithMeCaching) {
|
||||
EXPECT_TRUE(called);
|
||||
|
||||
// Time has passed...
|
||||
clock_.Advance(base::TimeDelta::FromHours(1));
|
||||
clock_.Advance(base::Hours(1));
|
||||
|
||||
params = mojom::QueryParameters::New();
|
||||
params->query_source = mojom::QueryParameters::QuerySource::kCloudOnly;
|
||||
|
@ -20,7 +20,7 @@ using MountFailure = DriveFsSession::MountObserver::MountFailure;
|
||||
constexpr char kDataDirOption[] = "datadir=";
|
||||
constexpr char kMyFilesOption[] = "myfiles=";
|
||||
constexpr char kMountScheme[] = "drivefs://";
|
||||
constexpr base::TimeDelta kMountTimeout = base::TimeDelta::FromSeconds(20);
|
||||
constexpr base::TimeDelta kMountTimeout = base::Seconds(20);
|
||||
|
||||
class DiskMounterImpl : public DiskMounter {
|
||||
public:
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user