[Browser/WebTaskEnvironment] Mass-migrate away from Test(Browser|Web)ThreadBundle
This is 1) s/TestBrowserThreadBundle/BrowserTaskEnvironment/ on src/ 2) s/([^/])\b\w*thread_bundle(_)?/\1task_environment\2/ on files modified in (1) 3) git cl format 4) Manually fix up remainder "ThreadBundle" and "thread_bundle" found via string search on the whole of src/. For ease of review: * Step #3 is the diff between patch sets 1..2 * Step #4 is the diff between patch sets 2..3 TBR=dcheng@chromium.org (for post-review owners bypass per mechanical change) Bug: 992483 Change-Id: I4945141f6d78bdc6c98444198e5012ddc8e5bff0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1758440 Reviewed-by: Gabriel Charette <gab@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Gabriel Charette <gab@chromium.org> Auto-Submit: Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#688755}
This commit is contained in:

committed by
Commit Bot

parent
8bf4984f3a
commit
798fde7bc9
PRESUBMIT.pycontent_hash_fetcher_unittest.ccextensions_test.ccextensions_test.himage_sanitizer_unittest.ccinfo_map_unittest.ccjson_file_sanitizer_unittest.ccquota_service_unittest.ccsandboxed_unpacker_unittest.cc
android_webview/browser
base
chrome
browser
after_startup_task_utils_unittest.ccapp_controller_mac_unittest.mmapp_data_migrator_unittest.ccblacklist_check_unittest.ccblacklist_state_fetcher_unittest.ccblacklist_unittest.ccchrome_extension_cookies.hchrome_info_map_unittest.cccomponent_loader_unittest.ccdefault_apps_unittest.ccevent_page_request_manager_unittest.ccissue_manager_unittest.ccmedia_router_base_unittest.ccmedia_router_factory_unittest.ccmedia_sinks_observer_unittest.ccprocess_singleton_posix_unittest.ccshell_integration_linux_unittest.cc
android
bookmarks
chrome_backup_agent_unittest.cccustomtabs
download
explore_sites
feed
history_report
locale
password_ui_view_android_unittest.ccsearch_permissions
signin
webapk
apps
autocomplete
chrome_autocomplete_provider_client_unittest.ccchrome_autocomplete_scheme_classifier_unittest.ccsearch_provider_unittest.ccshortcuts_provider_extension_unittest.cc
availability
background
background_fetch
background_sync
badging
bitmap_fetcher
bookmarks
browser_about_handler_unittest.ccbrowser_switcher
browsing_data
browsing_data_appcache_helper_unittest.ccbrowsing_data_cache_storage_helper_unittest.ccbrowsing_data_cookie_helper_unittest.ccbrowsing_data_database_helper_unittest.ccbrowsing_data_file_system_helper_unittest.ccbrowsing_data_indexed_db_helper_unittest.ccbrowsing_data_local_storage_helper_unittest.ccbrowsing_data_media_license_helper_unittest.ccbrowsing_data_quota_helper_unittest.ccbrowsing_data_service_worker_helper_unittest.ccbrowsing_data_shared_worker_helper_unittest.ccchrome_browsing_data_remover_delegate_unittest.cccookies_tree_model_unittest.cc
counters
bookmark_counter_unittest.ccbrowsing_data_counter_utils_unittest.cchosted_apps_counter_unittest.ccsite_data_counting_helper_unittest.ccsite_settings_counter_unittest.cc
site_data_size_collector_unittest.cccaptive_portal
certificate_manager_model_unittest.ccchrome_content_browser_client_unittest.ccchromeos
android_sms
android_sms_app_manager_impl_unittest.ccandroid_sms_app_setup_controller_impl_unittest.ccconnection_manager_unittest.ccfcm_connection_establisher_unittest.ccstreaming_connection_establisher_unittest.cc
arc
app_shortcuts
arc_migration_guide_notification_unittest.ccarc_play_store_enabled_preference_handler_unittest.ccarc_session_manager_unittest.ccarc_util_unittest.ccboot_phase_monitor
enterprise
cert_store
extensions
fileapi
arc_content_file_system_async_file_util_unittest.ccarc_content_file_system_file_stream_reader_unittest.ccarc_content_file_system_file_stream_writer_unittest.ccarc_documents_provider_root_unittest.ccarc_file_system_bridge_unittest.ccarc_file_system_operation_runner_unittest.ccarc_select_files_handler_unittest.ccfile_stream_forwarder_unittest.cc
icon_decode_request.hinput_method_manager
intent_helper
notification
pip
policy
tts
wallpaper
assistant
attestation
attestation_ca_client_unittest.ccattestation_policy_observer_unittest.ccenrollment_certificate_uploader_impl_unittest.ccmachine_certificate_uploader_impl_unittest.ccplatform_verification_flow_unittest.cc
authpolicy
base
child_accounts
crostini
crostini_ansible_management_service_unittest.cccrostini_export_import_unittest.cccrostini_manager_unittest.cccrostini_mime_types_service_unittest.cccrostini_package_notification_unittest.cccrostini_package_service_unittest.cccrostini_registry_service_unittest.cccrostini_reporting_util_unittest.cc
customization
drive
download_handler_unittest.ccdrive_file_stream_reader_unittest.ccdrive_integration_service_unittest.ccfile_system_util_unittest.cc
fileapi
write_on_cache_file_unittest.ccextensions
device_local_account_external_policy_loader_unittest.ccexternal_cache_impl_unittest.ccinstall_limiter_unittest.ccwallpaper_private_api_unittest.cc
external_metrics_unittest.cclogin_screen
login_screen_ui
file_manager
documents_provider_root_manager_unittest.ccfile_tasks_notifier_unittest.ccfile_tasks_unittest.ccfile_watcher_unittest.ccfileapi_util_unittest.ccpath_util_unittest.ccvolume_manager_unittest.cc
file_system_provider
fileapi
buffering_file_stream_reader_unittest.ccbuffering_file_stream_writer_unittest.ccfile_stream_reader_unittest.ccfile_stream_writer_unittest.ccprovider_async_file_util_unittest.cc
mount_path_util_unittest.ccprovided_file_system_unittest.ccqueue_unittest.ccregistry_unittest.ccrequest_manager_unittest.ccscoped_file_opener_unittest.ccservice_unittest.ccthrottled_file_system_unittest.ccfileapi
external_file_url_loader_factory_unittest.ccexternal_file_url_request_job_unittest.ccexternal_file_url_util_unittest.ccrecent_arc_media_source_unittest.ccrecent_disk_source_unittest.ccrecent_model_unittest.cc
guest_os
hats
input_method
kerberos
lock_screen_apps
login
auth
demo_mode
demo_extensions_external_loader_unittest.ccdemo_mode_resources_remover_unittest.ccdemo_resources_unittest.ccdemo_session_unittest.cc
easy_unlock
enterprise_user_session_metrics_unittest.ccerror_screens_histogram_helper_unittest.ccexisting_user_controller_auto_login_unittest.cclock
profile_auth_data_unittest.ccquick_unlock
saml
in_session_password_change_manager_unittest.ccpassword_expiry_notification_unittest.ccsaml_offline_signin_limiter_unittest.cc
screens
session
ui
login_screen_extension_ui
users
net
network_portal_detector_impl_unittest.ccnetwork_pref_state_observer_unittest.ccwake_on_wifi_manager_unittest.cc
network_change_manager_client_unittest.ccplugin_vm
plugin_vm_files_unittest.ccplugin_vm_image_manager_unittest.ccplugin_vm_manager_unittest.ccplugin_vm_util_unittest.cc
policy
affiliated_cloud_policy_invalidator_unittest.ccaffiliated_invalidation_service_provider_impl_unittest.ccapp_install_event_log_collector_unittest.ccapp_install_event_log_manager_unittest.ccapp_install_event_log_manager_wrapper_unittest.ccapp_install_event_logger_unittest.ccauto_enrollment_client_impl_unittest.ccdm_token_storage_unittest.ccextension_cache_unittest.ccheartbeat_scheduler_unittest.ccnetwork_configuration_updater_unittest.cc
remote_commands
device_command_start_crd_session_unittest.ccdevice_command_wipe_users_job_unittest.ccuser_command_arc_job_unittest.cc
status_collector
status_uploader_unittest.ccsystem_log_uploader_unittest.cctpm_auto_update_mode_policy_handler_unittest.ccupload_job_unittest.ccuser_cloud_policy_manager_chromeos_unittest.ccuser_cloud_policy_token_forwarder_unittest.ccpower
preferences_unittest.ccprinting
proxy_config_service_impl_unittest.ccresource_reporter
settings
cros_settings_unittest.ccdevice_oauth2_token_service_unittest.ccdevice_settings_test_helper.ccdevice_settings_test_helper.hsession_manager_operation_unittest.ccshutdown_policy_handler_unittest.ccstats_reporting_controller_unittest.cc
smb_client
system
system_logs
tether
wilco_dtc_supportd
component_updater
component_installers_unittest.cccrl_set_component_installer_unittest.cccros_component_installer_chromeos_unittest.ccmetadata_table_chromeos_unittest.ccsubresource_filter_component_installer_unittest.ccsupervised_user_whitelist_installer_unittest.ccsw_reporter_installer_win_unittest.cc
content_index
content_settings
content_settings_default_provider_unittest.cccontent_settings_policy_provider_unittest.cccontent_settings_pref_provider_unittest.cccontent_settings_usages_state_unittest.cccookie_settings_factory_unittest.cchost_content_settings_map_unittest.cc
custom_handlers
devtools
download
download_history_unittest.ccdownload_prefs_unittest.ccdownload_shelf_unittest.ccdownload_status_updater_unittest.cc
notification
engagement
enterprise_reporting
extensions
activity_log
api
bookmarks
chrome_extensions_api_client_unittest.cccookies
declarative
declarative_content
declarative_webrequest
enterprise_reporting_private
file_system
identity
image_writer_private
messaging
notifications
passwords_private
safe_browsing_private
signed_in_devices
storage
web_request
error_console
event_router_forwarder_unittest.ccextension_action_icon_factory_unittest.ccextension_action_manager_unittest.ccextension_gcm_app_handler_unittest.ccextension_icon_manager_unittest.ccextension_install_prompt_unittest.ccextension_management_unittest.ccextension_prefs_unittest.hextension_protocols_unittest.ccextension_service_test_base.ccextension_service_test_base.hextension_service_unittest.ccextension_special_storage_policy_unittest.ccextension_user_script_loader_unittest.ccextension_web_ui_unittest.ccexternal_policy_loader_unittest.ccexternal_pref_loader_unittest.ccexternal_registry_loader_win_unittest.ccforced_extensions
install_tracker_unittest.ccmenu_manager_unittest.ccpack_extension_unittest.ccpermissions_based_management_policy_provider_unittest.ccstandard_management_policy_provider_unittest.cctest_extension_environment.cctest_extension_environment.hupdate_install_gate_unittest.ccupdater
user_script_listener_unittest.ccwarning_badge_service_unittest.cczipfile_installer_unittest.ccexternal_protocol
feature_engagement
file_select_helper_unittest.ccfont_family_cache_unittest.ccgcm
google
hid
history
android
importer
language
local_discovery
media
android
cast_remoting_connector_unittest.cccast_transport_host_filter_unittest.ccmedia_engagement_session_unittest.ccmidi_permission_context_unittest.ccrouter
discovery
dial
dial_media_sink_service_impl_unittest.ccdial_registry_unittest.ccdial_service_unittest.ccsafe_dial_app_info_parser_unittest.ccsafe_dial_device_description_parser_unittest.cc
discovery_network_monitor_metric_observer_unittest.ccdiscovery_network_monitor_unittest.ccmdns
presentation
browser_presentation_connection_proxy_unittest.cclocal_presentation_manager_factory_unittest.ccpresentation_media_sinks_observer_unittest.cc
providers
cast
cast_activity_manager_unittest.cccast_activity_record_unittest.cccast_app_discovery_service_unittest.cccast_media_controller_unittest.cccast_media_route_provider_unittest.cccast_session_client_unittest.cccast_session_tracker_unittest.cc
dial
extension
wired_display
test
webrtc
media_galleries
fileapi
gallery_watch_manager_unittest.ccmac
media_galleries_permission_controller_unittest.ccmedia_galleries_preferences_unittest.ccmemory
metrics
chrome_browser_main_extra_parts_metrics_unittest.ccchrome_metrics_service_accessor_unittest.ccchrome_metrics_service_client_unittest.ccchrome_stability_metrics_provider_unittest.ccchromeos_metrics_provider_unittest.cc
perf
heap_collector_unittest.ccmetric_collector_unittest.ccmetric_provider_unittest.ccperf_events_collector_unittest.ccprofile_provider_chromeos_unittest.ccwindowed_incognito_observer_unittest.cc
plugin_metrics_provider_unittest.ccprocess_memory_metrics_emitter_unittest.ccsubprocess_metrics_provider_unittest.ccthread_watcher_android_unittest.ccthread_watcher_unittest.ccnative_file_system
net
dns_probe_runner_unittest.ccdns_probe_service_factory_unittest.cctrial_comparison_cert_verifier_controller_unittest.cc
notifications
chrome_ash_message_center_client_unittest.ccnotification_channels_provider_android_unittest.ccnotification_platform_bridge_chromeos_unittest.ccnotification_platform_bridge_win_unittest.ccnotification_system_observer_unittest.ccnotification_trigger_scheduler_unittest.ccpersistent_notification_handler_unittest.ccplatform_notification_service_unittest.cc
offline_pages
android
background_loader_offliner_unittest.ccdownload_archive_manager_unittest.ccoffline_page_mhtml_archiver_unittest.ccoffline_page_request_handler_unittest.ccoffline_page_utils_unittest.ccprefetch
optimization_guide
performance_manager
performance_manager_tab_helper_unittest.ccperformance_manager_test_harness.ccwebui_graph_dump_impl_unittest.cc
persistence
site_data
permissions
platform_util_unittest.ccplugins
policy
browser_dm_token_storage_linux_unittest.ccbrowser_dm_token_storage_mac_unittest.ccbrowser_dm_token_storage_unittest.ccbrowser_dm_token_storage_win_unittest.cc
cloud
machine_level_user_cloud_policy_register_watcher_unittest.ccpredictors
autocomplete_action_predictor_table_unittest.ccautocomplete_action_predictor_unittest.ccloading_data_collector_unittest.ccloading_predictor_config_unittest.ccloading_predictor_unittest.ccloading_stats_collector_unittest.ccpreconnect_manager_unittest.ccresource_prefetch_predictor_tables_unittest.ccresource_prefetch_predictor_unittest.cc
prefs
prerender
previews
previews_lite_page_decider_unittest.ccpreviews_lite_page_url_loader_interceptor_unittest.ccpreviews_ui_tab_helper_unittest.cc
printing
cloud_print
cloud_print_proxy_service_unittest.ccgcd_api_flow_unittest.ccprivet_http_unittest.ccprivet_local_printer_lister_unittest.ccprivet_notifications_unittest.cc
print_job_unittest.cctest
profile_resetter
profiles
profile_activity_metrics_recorder_unittest.ccprofile_attributes_storage_unittest.ccprofile_info_cache_unittest.hprofile_list_desktop_unittest.ccprofile_manager_unittest.ccprofile_shortcut_manager_unittest_win.ccprofile_statistics_unittest.cc
profiling_host
push_messaging
budget_database_unittest.ccpush_messaging_app_identifier_unittest.ccpush_messaging_service_unittest.cc
resource_coordinator
local_site_characteristics_data_store_unittest.cclocal_site_characteristics_non_recording_data_store_unittest.cctab_manager_delegate_chromeos_unittest.cctab_memory_metrics_reporter_unittest.cc
safe_browsing
advanced_protection_status_manager_factory_unittest.cccertificate_reporting_service_unittest.cc
chrome_cleaner
client_side_detection_service_unittest.ccclient_side_model_loader_unittest.ccdownload_protection
binary_fcm_service_unittest.ccdownload_feedback_service_unittest.ccdownload_feedback_unittest.ccfile_analyzer_unittest.ccmultipart_uploader_unittest.cctwo_phase_uploader_unittest.cc
incident_reporting
delayed_callback_runner_unittest.ccdownload_metadata_manager_unittest.ccextension_data_collection_unittest.ccincident_reporting_service_unittest.cclast_download_finder_unittest.ccplatform_state_store_win_unittest.ccresource_request_detector_unittest.ccstate_store_unittest.cc
telemetry
search
background
instant_service_unittest.ccmost_visited_iframe_source_unittest.ccone_google_bar
promos
search_suggest
search_engines
template_url_fetcher_unittest.cctemplate_url_service_sync_unittest.cctemplate_url_service_unittest.cc
serial
services_unittest.ccsessions
sharing
click_to_call
click_to_call_context_menu_observer_unittest.ccclick_to_call_ui_controller_unittest.ccclick_to_call_utils_unittest.cc
shared_clipboard
shared_clipboard_context_menu_observer_unittest.ccshared_clipboard_ui_controller_unittest.ccshared_clipboard_utils_unittest.cc
sharing_device_registration_unittest.ccsharing_service_unittest.ccsignin
account_consistency_mode_manager_unittest.ccchrome_signin_client_unittest.ccchrome_signin_helper_unittest.ccchrome_signin_proxying_url_loader_factory_unittest.ccchrome_signin_status_metrics_provider_delegate_unittest.ccdice_response_handler_unittest.cclocal_auth_unittest.ccsignin_global_error_unittest.ccsignin_profile_attributes_updater_unittest.ccsignin_ui_util_unittest.cc
site_isolation
spellchecker
spell_check_host_chrome_impl_unittest.ccspellcheck_custom_dictionary_unittest.ccspellcheck_service_unittest.ccspelling_service_client_unittest.cc
ssl
subresource_filter
supervised_user
child_accounts
kids_management_url_checker_client_unittest.ccsupervised_user_service_unittest.ccsupervised_user_settings_service_unittest.ccsupervised_user_whitelist_service_unittest.ccsync
sync_file_system
drive_backend
conflict_resolver_unittest.ccdrive_backend_sync_unittest.cclist_changes_task_unittest.cclocal_to_remote_syncer_unittest.ccregister_app_task_unittest.ccremote_to_local_syncer_unittest.ccsync_engine_initializer_unittest.ccsync_engine_unittest.ccsync_worker_unittest.cc
local
local_file_change_tracker_unittest.cclocal_file_sync_context_unittest.cclocal_file_sync_service_unittest.cclocal_file_sync_status_unittest.ccsyncable_file_operation_runner_unittest.ccsyncable_file_system_unittest.cc
sync_file_system_service_unittest.cctask_manager
providers
sampling
themes
tracing
translate
ui
android
tab_model
app_list
arc
search
ash
bookmarks
bookmark_context_menu_controller_unittest.ccbookmark_ui_utils_desktop_unittest.ccrecently_used_folders_combo_model_unittest.cc
browser_close_unittest.ccchrome_select_file_policy_unittest.cccocoa
in_product_help
libgtkui
media_router
media_router_file_dialog_unittest.ccmedia_router_ui_service_factory_unittest.ccquery_result_manager_unittest.cc
page_info
passwords
credential_manager_dialog_controller_impl_unittest.ccmanage_passwords_bubble_model_unittest.cc
recently_audible_helper_unittest.ccsettings
search_engines
startup
sync
tabs
toolbar
views
apps
app_info_dialog
bookmarks
desktop_capture
media_router
page_info
tabs
test
webui
about_ui_unittest.cc
chromeos
downloads
favicon_source_unittest.ccfileicon_source_unittest.cchelp
interventions_internals
managed_ui_handler_unittest.ccmanagement_ui_handler_unittest.ccprint_preview
settings
chrome_cleanup_handler_win_unittest.cc
chromeos
downloads_handler_unittest.ccmetrics_reporting_handler_unittest.ccon_startup_handler_unittest.ccpeople_handler_unittest.ccprofile_info_handler_unittest.ccreset_settings_handler_unittest.ccsettings_manage_profile_handler_unittest.ccsite_settings_handler_unittest.ccsignin
site_settings_helper_unittest.cctheme_source_unittest.ccusb
vr
wake_lock
web_applications
components
external_web_app_manager_unittest.ccwin
common
safe_browsing
services
file_util
test
chromecast/browser
components
arc
clipboard
metrics
net
timer
autofill
autofill_assistant
browser
cast_channel
data_reduction_proxy
drive
change_list_loader_unittest.ccchange_list_processor_unittest.cc
chromeos
drive_file_util_unittest.ccfake_file_system_unittest.ccfile_system
file_system_core_util_unittest.ccfile_write_watcher_unittest.ccjob_scheduler_unittest.ccremove_stale_cache_files_unittest.ccresource_metadata_storage_unittest.ccresource_metadata_unittest.ccsearch_metadata_unittest.ccstart_page_token_loader_unittest.ccsync_client_unittest.ccteam_drive_change_list_loader_unittest.ccteam_drive_list_loader_unittest.ccfeedback
gcm_driver
metrics
mirroring
nacl
password_manager
content
payments
printing
safe_browsing
android
common
db
allowlist_checker_client_unittest.ccdatabase_manager_unittest.ccv4_database_unittest.ccv4_get_hash_protocol_manager_unittest.ccv4_local_database_manager_unittest.ccv4_store_unittest.cc
password_protection
triggers
verdict_cache_manager_unittest.ccweb_ui
signin
ios
storage_monitor
image_capture_device_manager_unittest.mmmedia_storage_util_unittest.ccmtp_manager_client_chromeos_unittest.ccstorage_monitor_chromeos_unittest.ccstorage_monitor_mac_unittest.mmstorage_monitor_win_unittest.cc
subresource_filter
translate
ios
visitedlink
web_cache
webrtc_logging
browser
content
browser
accessibility
android
appcache
appcache_fuzzer.ccappcache_host_unittest.ccappcache_quota_client_unittest.ccappcache_request_handler_unittest.ccappcache_service_unittest.ccappcache_storage_impl_unittest.ccappcache_storage_unittest.ccappcache_update_job_unittest.ccchrome_appcache_service_unittest.cc
background_fetch
background_fetch_cross_origin_filter_unittest.ccbackground_fetch_data_manager_unittest.ccbackground_fetch_scheduler_unittest.ccbackground_fetch_service_unittest.ccbackground_fetch_test_base.ccbackground_fetch_test_base.h
background_sync
background_sync_launcher_unittest.ccbackground_sync_manager_unittest.ccbackground_sync_network_observer_unittest.ccbackground_sync_service_impl_test_harness.ccbackground_sync_service_impl_test_harness.h
blob_storage
browser_associated_interface_unittest.ccbrowser_thread_impl.ccbrowser_thread_impl.hbrowser_url_handler_impl_unittest.ccbrowsing_data
browsing_data_remover_impl_unittest.ccclear_site_data_handler_unittest.ccsame_site_data_remover_impl_unittest.cc
cache_storage
cache_storage_blob_to_disk_cache_unittest.cccache_storage_cache_unittest.cccache_storage_manager_unittest.cccache_storage_scheduler_unittest.cc
child_process_security_policy_unittest.cccontent_index
cookie_store
devtools
dom_storage
local_storage_context_mojo_unittest.ccsession_storage_area_impl_unittest.ccsession_storage_data_map_unittest.ccsession_storage_namespace_impl_mojo_unittest.ccstorage_area_impl_unittest.cc
test
download
fileapi
frame_host
host_zoom_map_impl_unittest.ccindexed_db
indexed_db_backing_store_unittest.ccindexed_db_database_unittest.ccindexed_db_dispatcher_host_unittest.ccindexed_db_factory_unittest.ccindexed_db_quota_client_unittest.ccindexed_db_tombstone_sweeper_unittest.ccindexed_db_transaction_unittest.ccindexed_db_unittest.cc
loader
media
audio_input_stream_broker_unittest.ccaudio_loopback_stream_broker_unittest.cc
capture
audio_mirroring_manager_unittest.ccframe_sink_video_capture_device_unittest.ccweb_contents_audio_input_stream_unittest.cc
cdm_storage_impl_unittest.cckey_system_support_impl_unittest.ccmedia_internals_unittest.ccmidi_host_unittest.ccnative_file_system
file_system_chooser_unittest.ccnative_file_system_file_handle_impl_unittest.ccnative_file_system_file_writer_impl_unittest.ccnative_file_system_handle_base_unittest.ccnative_file_system_manager_impl_unittest.cc
net
network_service_client_unittest.ccnotifications
blink_notification_service_impl_unittest.ccnotification_database_unittest.ccnotification_storage_unittest.ccplatform_notification_context_trigger_unittest.ccplatform_notification_context_unittest.cc
payments
permissions
renderer_host
clipboard_host_impl_unittest.cccursor_manager_unittest.cc
resolve_proxy_msg_helper_unittest.ccinput
media
audio_input_delegate_impl_unittest.ccaudio_input_device_manager_unittest.ccaudio_output_authorization_handler_unittest.ccaudio_output_delegate_impl_unittest.ccmedia_devices_dispatcher_host_unittest.ccmedia_devices_manager_unittest.ccmedia_stream_dispatcher_host_unittest.ccmedia_stream_manager.hmedia_stream_manager_unittest.ccmedia_stream_ui_proxy_unittest.ccold_render_frame_audio_input_stream_factory_unittest.ccold_render_frame_audio_output_stream_factory_unittest.ccservice_video_capture_device_launcher_unittest.ccservice_video_capture_provider_unittest.ccvideo_capture_controller_unittest.ccvideo_capture_manager_unittest.ccvideo_capture_unittest.cc
pepper
render_widget_host_input_event_router_unittest.ccrender_widget_host_unittest.ccrender_widget_host_view_android_unittest.ccrender_widget_host_view_aura_unittest.ccrender_widget_host_view_child_frame_unittest.ccrender_widget_host_view_mac_editcommand_helper_unittest.mmtext_input_client_mac_unittest.mmweb_database_host_impl_unittest.ccscheduler
browser_task_executor.hbrowser_task_executor_unittest.cc
responsiveness
scoped_do_not_use_ui_default_queue_from_io_unittest.ccservice_worker
embedded_worker_instance_unittest.ccservice_worker_context_core_unittest.ccservice_worker_context_unittest.ccservice_worker_context_watcher_unittest.ccservice_worker_context_wrapper_unittest.ccservice_worker_controllee_request_handler_unittest.ccservice_worker_installed_scripts_sender_unittest.ccservice_worker_job_unittest.ccservice_worker_navigation_loader_unittest.ccservice_worker_new_script_loader_unittest.ccservice_worker_object_host_unittest.ccservice_worker_process_manager_unittest.ccservice_worker_provider_host_unittest.ccservice_worker_registration_unittest.ccservice_worker_request_handler_unittest.ccservice_worker_script_loader_factory_unittest.ccservice_worker_single_script_update_checker_unittest.ccservice_worker_storage_unittest.ccservice_worker_updated_script_loader_unittest.ccservice_worker_version_unittest.cc
site_instance_impl_unittest.ccspeech
storage_partition_impl_map_unittest.ccstorage_partition_impl_unittest.cctracing
web_package
webrtc
webui
worker_host
public
test
renderer
test
docs
extensions
browser
api
audio
declarative
file_handlers
lock_screen_data
media_perception_private
web_request
webcam_private
updater
value_store
shell
ios
chrome
app
browser
autofill
browsing_data
crash_report
device_sharing
download
ar_quick_look_tab_helper_unittest.mmbrowser_download_service_factory_unittest.mmbrowser_download_service_unittest.mm
installation_notifier_unittest.mmitunes_urls
language
main
metrics
chrome_browser_state_client_unittest.mmfirst_user_action_recorder_unittest.ccios_chrome_metrics_service_client_unittest.mm
net
ntp
omaha
overlays
overscroll_actions
payments
prerender
reading_list
search_engines
signin
authentication_service_unittest.mmgaia_auth_fetcher_ios_unittest.mmsignin_browser_state_info_updater_unittest.mm
snapshots
sync
tabs
ui
activity_services
authentication
authentication_flow_unittest.mmchrome_signin_view_controller_unittest.mmre_signin_infobar_delegate_unittest.mmsigned_in_accounts_view_controller_unittest.mm
bookmarks
browser_container
browser_view
content_suggestions
download
first_run
location_bar
main
ntp
open_in
overlays
web_content_area
java_script_dialogs
promos
reading_list
recent_tabs
sad_tab
settings
autofill
autofill_add_credit_card_mediator_unittest.mmautofill_credit_card_table_view_controller_unittest.mmautofill_profile_edit_table_view_controller_unittest.mmautofill_profile_table_view_controller_unittest.mm
bandwidth_management_table_view_controller_unittest.mmblock_popups_table_view_controller_unittest.mmcells
clear_browsing_data
content_settings_table_view_controller_unittest.mmpassphrase_table_view_controller_test.hpassword
privacy_table_view_controller_unittest.mmsearch_engine_table_view_controller_unittest.mmsettings_navigation_controller_unittest.mmsync
utils
side_swipe
static_content
tab_grid
tabs
toolbar
translate
voice
url_loading
web
chrome_web_test.hchrome_web_test.mmimage_fetch_tab_helper_unittest.mmpage_placeholder_tab_helper_unittest.mm
web_state_list
test
base
web
browsing_data
download
navigation
net
network_context_owner_unittest.ccpublic
session
session_certificate_policy_cache_impl_unittest.mmsession_certificate_policy_cache_storage_builder_unittest.mm
test
url_loader_inttest.mmweb_thread_impl.hweb_thread_unittest.ccwebui
web_view
net/url_request
services/network
ui/views
@ -971,7 +971,7 @@ _BANNED_CPP_FUNCTIONS = (
|
||||
'RunAllPendingInMessageLoop(BrowserThread',
|
||||
(
|
||||
'RunAllPendingInMessageLoop is deprecated. Use RunLoop for',
|
||||
'BrowserThread::UI, TestBrowserThreadBundle::RunIOThreadUntilIdle',
|
||||
'BrowserThread::UI, BrowserTaskEnvironment::RunIOThreadUntilIdle',
|
||||
'for BrowserThread::IO, and prefer RunLoop::QuitClosure to observe',
|
||||
'async events instead of flushing threads.',
|
||||
),
|
||||
|
@ -28,7 +28,7 @@ class AwBrowserContextTest : public testing::Test {
|
||||
void TearDown() override { delete test_content_client_initializer_; }
|
||||
|
||||
// Create the TestBrowserThreads.
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
content::TestContentClientInitializer* test_content_client_initializer_;
|
||||
AwBrowserProcess* browser_process_;
|
||||
};
|
||||
|
@ -48,7 +48,7 @@ class AwContentsClientBridgeTest : public Test {
|
||||
void SetUp() override;
|
||||
void TestCertType(SSLClientCertType type, const std::string& expected_name);
|
||||
// Create the TestBrowserThreads. Just instantiate the member variable.
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
base::android::ScopedJavaGlobalRef<jobject> jbridge_;
|
||||
std::unique_ptr<AwContentsClientBridge> bridge_;
|
||||
scoped_refptr<SSLCertRequestInfo> cert_request_info_;
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include "build/build_config.h"
|
||||
|
||||
namespace web {
|
||||
class TestWebThreadBundle;
|
||||
class WebTaskEnvironment;
|
||||
}
|
||||
|
||||
namespace base {
|
||||
@ -187,7 +187,7 @@ class BASE_EXPORT MessageLoopCurrent {
|
||||
friend class Thread;
|
||||
friend class sequence_manager::internal::SequenceManagerImpl;
|
||||
friend class MessageLoopTaskRunnerTest;
|
||||
friend class web::TestWebThreadBundle;
|
||||
friend class web::WebTaskEnvironment;
|
||||
|
||||
sequence_manager::internal::SequenceManagerImpl* current_;
|
||||
};
|
||||
|
@ -20,7 +20,7 @@ class TaskQueue;
|
||||
} // namespace sequence_manager
|
||||
|
||||
// A simple single thread TaskExecutor intended for non-test usage. Tests should
|
||||
// generally use TaskEnvironment or TestBrowserThreadBundle instead.
|
||||
// generally use TaskEnvironment or BrowserTaskEnvironment instead.
|
||||
// TODO(alexclarke): Inherit from TaskExecutor to support base::Here().
|
||||
class BASE_EXPORT SingleThreadTaskExecutor {
|
||||
public:
|
||||
|
@ -128,7 +128,7 @@ class AfterStartupTaskTest : public testing::Test {
|
||||
loop->Quit();
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle browser_thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
};
|
||||
|
||||
TEST_F(AfterStartupTaskTest, IsStartupComplete) {
|
||||
|
@ -79,7 +79,7 @@ class PartnerBookmarksShimTest : public testing::Test {
|
||||
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
BookmarkModel* model_;
|
||||
MockObserver observer_;
|
||||
|
@ -47,7 +47,7 @@ class ChromeBackupAgentTest : public ::testing::Test {
|
||||
registry_->RegisterBooleanPref("dummy", false);
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::vector<std::string> expected_pref_names_;
|
||||
TestingProfileManager testing_profile_manager_;
|
||||
TestingProfile* testing_profile_;
|
||||
|
@ -193,7 +193,7 @@ void WatchPathAndReportHeaders(const std::string& path,
|
||||
class DetachedResourceRequestTest : public ::testing::Test {
|
||||
public:
|
||||
DetachedResourceRequestTest()
|
||||
: thread_bundle_(content::TestBrowserThreadBundle::REAL_IO_THREAD) {}
|
||||
: task_environment_(content::BrowserTaskEnvironment::REAL_IO_THREAD) {}
|
||||
~DetachedResourceRequestTest() override = default;
|
||||
|
||||
void SetUp() override {
|
||||
@ -288,7 +288,7 @@ class DetachedResourceRequestTest : public ::testing::Test {
|
||||
|
||||
private:
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<content::TestHostResolver> host_resolver_;
|
||||
std::unique_ptr<net::EmbeddedTestServer> test_server_;
|
||||
};
|
||||
|
@ -144,7 +144,7 @@ class AvailableOfflineContentTest : public testing::Test {
|
||||
return std::make_tuple(list_visible_by_prefs, std::move(suggestions));
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfile profile_;
|
||||
std::unique_ptr<base::test::ScopedFeatureList> scoped_feature_list_ =
|
||||
std::make_unique<base::test::ScopedFeatureList>();
|
||||
|
@ -24,7 +24,7 @@ using testing::_;
|
||||
class NTPJsonFetcherTest : public testing::Test {
|
||||
public:
|
||||
NTPJsonFetcherTest()
|
||||
: thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP),
|
||||
: task_environment_(content::BrowserTaskEnvironment::IO_MAINLOOP),
|
||||
https_server_(net::EmbeddedTestServer::TYPE_HTTPS) {}
|
||||
|
||||
void SetUp() {
|
||||
@ -107,7 +107,7 @@ class NTPJsonFetcherTest : public testing::Test {
|
||||
|
||||
std::unique_ptr<NTPCatalog> catalog_;
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfile browser_context_;
|
||||
net::EmbeddedTestServer https_server_;
|
||||
|
||||
|
@ -57,7 +57,7 @@ class FeedHistoryHelperTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
history::HistoryService* history_service_;
|
||||
TestingProfile profile_;
|
||||
std::unique_ptr<FeedHistoryHelper> feed_history_helper_;
|
||||
|
@ -83,7 +83,8 @@ class DataObserverTest : public testing::Test {
|
||||
}
|
||||
|
||||
protected:
|
||||
content::TestBrowserThreadBundle thread_bundle_; // To set up BrowserThreads.
|
||||
content::BrowserTaskEnvironment
|
||||
task_environment_; // To set up BrowserThreads.
|
||||
|
||||
base::ScopedTempDir temp_dir_;
|
||||
std::unique_ptr<MockDeltaFileService> delta_file_service_;
|
||||
|
@ -53,7 +53,8 @@ class LocaleTemplateUrlLoaderTest : public testing::Test {
|
||||
TemplateURLService* model() { return test_util_->model(); }
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_; // To set up BrowserThreads.
|
||||
content::BrowserTaskEnvironment
|
||||
task_environment_; // To set up BrowserThreads.
|
||||
std::unique_ptr<LocaleTemplateUrlLoader> loader_;
|
||||
std::unique_ptr<TemplateURLServiceTestUtil> test_util_;
|
||||
|
||||
|
@ -106,7 +106,7 @@ class PasswordUIViewAndroidTest : public ::testing::Test {
|
||||
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfileManager testing_profile_manager_;
|
||||
TestingProfile* testing_profile_;
|
||||
JNIEnv* env_;
|
||||
|
@ -161,7 +161,7 @@ class SearchPermissionsServiceTest : public testing::Test {
|
||||
|
||||
private:
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
// This is owned by the SearchPermissionsService which is owned by the
|
||||
// profile.
|
||||
|
@ -98,7 +98,7 @@ class SigninManagerAndroidTest : public ::testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfileManager profile_manager_;
|
||||
TestingProfile* profile_; // Owned by |profile_manager_|.
|
||||
|
||||
|
@ -73,7 +73,7 @@ class WebApkIconHasherRunner {
|
||||
class WebApkIconHasherTest : public ::testing::Test {
|
||||
public:
|
||||
WebApkIconHasherTest()
|
||||
: thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP) {}
|
||||
: task_environment_(content::BrowserTaskEnvironment::IO_MAINLOOP) {}
|
||||
~WebApkIconHasherTest() override {}
|
||||
|
||||
protected:
|
||||
@ -82,7 +82,7 @@ class WebApkIconHasherTest : public ::testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
network::TestURLLoaderFactory test_url_loader_factory_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(WebApkIconHasherTest);
|
||||
|
@ -270,7 +270,7 @@ class WebApkInstallerTest : public ::testing::Test {
|
||||
WebApkResponseBuilder;
|
||||
|
||||
WebApkInstallerTest()
|
||||
: thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP) {}
|
||||
: task_environment_(content::BrowserTaskEnvironment::IO_MAINLOOP) {}
|
||||
~WebApkInstallerTest() override {}
|
||||
|
||||
void SetUp() override {
|
||||
@ -338,7 +338,7 @@ class WebApkInstallerTest : public ::testing::Test {
|
||||
}
|
||||
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
net::EmbeddedTestServer test_server_;
|
||||
|
||||
// Builds response to the WebAPK creation request.
|
||||
|
@ -39,7 +39,7 @@ class AppControllerTest : public PlatformTest {
|
||||
PlatformTest::TearDown();
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfileManager profile_manager_;
|
||||
TestingProfile* profile_;
|
||||
};
|
||||
|
@ -399,7 +399,7 @@ class ExtensionAppShimHandlerTest : public testing::Test {
|
||||
handler_->OnShimSetHidden(host, hidden);
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
MockDelegate* delegate_;
|
||||
std::unique_ptr<TestingExtensionAppShimHandler> handler_;
|
||||
base::FilePath profile_path_a_;
|
||||
|
@ -69,7 +69,7 @@ class UserTypeFilterTest : public testing::Test {
|
||||
|
||||
private:
|
||||
// To support context of browser threads.
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(UserTypeFilterTest);
|
||||
};
|
||||
|
@ -63,7 +63,7 @@ class ChromeAutocompleteProviderClientTest : public testing::Test {
|
||||
}
|
||||
|
||||
protected:
|
||||
content::TestBrowserThreadBundle test_browser_thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
std::unique_ptr<ChromeAutocompleteProviderClient> client_;
|
||||
|
@ -26,7 +26,7 @@ class ChromeAutocompleteSchemeClassifierTest : public testing::Test {
|
||||
}
|
||||
|
||||
protected:
|
||||
content::TestBrowserThreadBundle test_browser_thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
std::unique_ptr<ChromeAutocompleteSchemeClassifier> scheme_classifier_;
|
||||
};
|
||||
|
@ -279,7 +279,7 @@ class BaseSearchProviderTest : public testing::Test,
|
||||
const base::string16 keyword_term_;
|
||||
GURL keyword_url_;
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
network::TestURLLoaderFactory test_url_loader_factory_;
|
||||
TestingProfile profile_;
|
||||
|
@ -57,7 +57,7 @@ class ShortcutsProviderExtensionTest : public testing::Test {
|
||||
void SetUp() override;
|
||||
void TearDown() override;
|
||||
|
||||
content::TestBrowserThreadBundle test_browser_thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfile profile_;
|
||||
ChromeAutocompleteProviderClient client_;
|
||||
scoped_refptr<ShortcutsBackend> backend_;
|
||||
|
@ -88,7 +88,7 @@ class TestAvailabilityProber : public AvailabilityProber {
|
||||
class AvailabilityProberTest : public testing::Test {
|
||||
public:
|
||||
AvailabilityProberTest()
|
||||
: thread_bundle_(base::test::TaskEnvironment::TimeSource::MOCK_TIME),
|
||||
: task_environment_(base::test::TaskEnvironment::TimeSource::MOCK_TIME),
|
||||
test_shared_loader_factory_(
|
||||
base::MakeRefCounted<network::WeakWrapperSharedURLLoaderFactory>(
|
||||
&test_url_loader_factory_)),
|
||||
@ -129,17 +129,17 @@ class AvailabilityProberTest : public testing::Test {
|
||||
AvailabilityProber::ClientName::kLitepages, kTestUrl,
|
||||
AvailabilityProber::HttpMethod::kGet, headers, retry_policy,
|
||||
timeout_policy, TRAFFIC_ANNOTATION_FOR_TESTS, 1,
|
||||
kCacheRevalidateAfter, thread_bundle_.GetMockTickClock(),
|
||||
thread_bundle_.GetMockClock());
|
||||
kCacheRevalidateAfter, task_environment_.GetMockTickClock(),
|
||||
task_environment_.GetMockClock());
|
||||
prober->SetOnCompleteCallback(base::BindRepeating(
|
||||
&AvailabilityProberTest::OnProbeComplete, base::Unretained(this)));
|
||||
return prober;
|
||||
}
|
||||
|
||||
void RunUntilIdle() { thread_bundle_.RunUntilIdle(); }
|
||||
void RunUntilIdle() { task_environment_.RunUntilIdle(); }
|
||||
|
||||
void FastForward(base::TimeDelta delta) {
|
||||
thread_bundle_.FastForwardBy(delta);
|
||||
task_environment_.FastForwardBy(delta);
|
||||
}
|
||||
|
||||
void MakeResponseAndWait(net::HttpStatusCode http_status,
|
||||
@ -198,7 +198,7 @@ class AvailabilityProberTest : public testing::Test {
|
||||
base::Optional<bool> callback_result() { return callback_result_; }
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
network::TestURLLoaderFactory test_url_loader_factory_;
|
||||
scoped_refptr<network::SharedURLLoaderFactory> test_shared_loader_factory_;
|
||||
TestDelegate test_delegate_;
|
||||
|
@ -61,7 +61,7 @@ class BackgroundContentsServiceTest : public testing::Test {
|
||||
return url;
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<base::CommandLine> command_line_;
|
||||
};
|
||||
|
||||
|
@ -181,7 +181,7 @@ class BackgroundModeManagerTest : public testing::Test {
|
||||
}
|
||||
|
||||
protected:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<base::CommandLine> command_line_;
|
||||
|
||||
std::unique_ptr<TestingProfileManager> profile_manager_;
|
||||
@ -270,7 +270,7 @@ class BackgroundModeManagerWithExtensionsTest : public testing::Test {
|
||||
|
||||
private:
|
||||
// Required for extension service.
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
// BackgroundModeManager actually affects Chrome start/stop state,
|
||||
// tearing down our thread bundle before we've had chance to clean
|
||||
|
@ -51,7 +51,7 @@ class BackgroundFetchDelegateImplTest : public testing::Test {
|
||||
protected:
|
||||
// This is used to specify the main thread type of the tests as the UI
|
||||
// thread.
|
||||
content::TestBrowserThreadBundle threads_;
|
||||
content::BrowserTaskEnvironment threads_;
|
||||
|
||||
std::unique_ptr<ukm::TestAutoSetUkmRecorder> recorder_;
|
||||
BackgroundFetchDelegateImpl* delegate_;
|
||||
|
@ -52,7 +52,7 @@ std::unique_ptr<KeyedService> BuildTestHistoryService(
|
||||
class BackgroundSyncControllerImplTest : public testing::Test {
|
||||
protected:
|
||||
BackgroundSyncControllerImplTest()
|
||||
: thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP) {
|
||||
: task_environment_(content::BrowserTaskEnvironment::IO_MAINLOOP) {
|
||||
ResetFieldTrialList();
|
||||
#if defined(OS_ANDROID)
|
||||
BackgroundSyncLauncherAndroid::SetPlayServicesVersionCheckDisabledForTests(
|
||||
@ -93,7 +93,7 @@ class BackgroundSyncControllerImplTest : public testing::Test {
|
||||
return registration;
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfile profile_;
|
||||
std::unique_ptr<BackgroundSyncControllerImpl> controller_;
|
||||
std::unique_ptr<base::FieldTrialList> field_trial_list_;
|
||||
|
@ -83,7 +83,7 @@ class BadgeManagerUnittest : public ::testing::Test {
|
||||
private:
|
||||
TestBadgeManagerDelegate* delegate_;
|
||||
BadgeManager* badge_manager_;
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(BadgeManagerUnittest);
|
||||
|
@ -118,7 +118,7 @@ class BitmapFetcherServiceTest : public testing::Test,
|
||||
const GURL url2_;
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfile profile_;
|
||||
};
|
||||
|
||||
|
@ -149,7 +149,7 @@ class BookmarksObserver : public BookmarksExportObserver {
|
||||
// Tests bookmark_html_writer by populating a BookmarkModel, writing it out by
|
||||
// way of bookmark_html_writer, then using the importer to read it back in.
|
||||
TEST_F(BookmarkHTMLWriterTest, Test) {
|
||||
content::TestBrowserThreadBundle thread_bundle;
|
||||
content::BrowserTaskEnvironment task_environment;
|
||||
|
||||
TestingProfile profile;
|
||||
ASSERT_TRUE(profile.CreateHistoryService(true, false));
|
||||
|
@ -37,7 +37,7 @@ using testing::_;
|
||||
TEST(ManagedBookmarkServiceNoPolicyTest, EmptyManagedNode) {
|
||||
// Verifies that the managed node is empty and invisible when the policy is
|
||||
// not set.
|
||||
content::TestBrowserThreadBundle thread_bundle;
|
||||
content::BrowserTaskEnvironment task_environment;
|
||||
TestingProfile profile;
|
||||
|
||||
// Make sure the policy isn't set.
|
||||
@ -151,7 +151,7 @@ class ManagedBookmarkServiceTest : public testing::Test {
|
||||
return dict->GetString("url", &url) && node->url() == url;
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfile profile_;
|
||||
sync_preferences::TestingPrefServiceSyncable* prefs_;
|
||||
bookmarks::MockBookmarkModelObserver observer_;
|
||||
|
@ -47,7 +47,7 @@ class BrowserAboutHandlerTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
};
|
||||
|
||||
TEST_F(BrowserAboutHandlerTest, WillHandleBrowserAboutURL) {
|
||||
|
@ -77,7 +77,7 @@ class BrowserSwitcherPrefsTest : public testing::Test {
|
||||
BrowserSwitcherPrefs* prefs() { return prefs_.get(); }
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
sync_preferences::TestingPrefServiceSyncable prefs_backend_;
|
||||
|
||||
|
@ -23,13 +23,13 @@
|
||||
class CannedBrowsingDataAppCacheHelperTest : public testing::Test {
|
||||
public:
|
||||
CannedBrowsingDataAppCacheHelperTest()
|
||||
: thread_bundle_(content::TestBrowserThreadBundle::REAL_IO_THREAD) {}
|
||||
: task_environment_(content::BrowserTaskEnvironment::REAL_IO_THREAD) {}
|
||||
|
||||
void TearDown() override {
|
||||
// Make sure we run all pending tasks on IO thread before testing
|
||||
// profile is destructed.
|
||||
content::RunAllPendingInMessageLoop(content::BrowserThread::IO);
|
||||
thread_bundle_.RunUntilIdle();
|
||||
task_environment_.RunUntilIdle();
|
||||
}
|
||||
|
||||
protected:
|
||||
@ -49,7 +49,7 @@ class CannedBrowsingDataAppCacheHelperTest : public testing::Test {
|
||||
}) != collection.end();
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfile profile_;
|
||||
};
|
||||
|
||||
|
@ -22,7 +22,7 @@ class CannedBrowsingDataCacheStorageHelperTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfile profile_;
|
||||
};
|
||||
|
||||
|
@ -216,7 +216,7 @@ class BrowsingDataCookieHelperTest : public testing::Test {
|
||||
}
|
||||
|
||||
protected:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<TestingProfile> testing_profile_;
|
||||
|
||||
std::vector<CookieExpectation> cookie_expectations_;
|
||||
|
@ -14,7 +14,7 @@ namespace {
|
||||
using storage::DatabaseIdentifier;
|
||||
|
||||
class CannedBrowsingDataDatabaseHelperTest : public testing::Test {
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
};
|
||||
|
||||
TEST_F(CannedBrowsingDataDatabaseHelperTest, Empty) {
|
||||
|
@ -190,7 +190,7 @@ class BrowsingDataFileSystemHelperTest : public testing::Test {
|
||||
}
|
||||
|
||||
protected:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
|
||||
// Temporary storage to pass information back from callbacks.
|
||||
|
@ -22,7 +22,7 @@ class CannedBrowsingDataIndexedDBHelperTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfile profile_;
|
||||
};
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
namespace {
|
||||
|
||||
class CannedBrowsingDataLocalStorageTest : public testing::Test {
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
};
|
||||
|
||||
TEST_F(CannedBrowsingDataLocalStorageTest, Empty) {
|
||||
|
@ -263,7 +263,7 @@ class BrowsingDataMediaLicenseHelperTest : public testing::Test {
|
||||
done_cb.Run();
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
scoped_refptr<BrowsingDataMediaLicenseHelper> helper_;
|
||||
|
||||
|
@ -111,7 +111,7 @@ class BrowsingDataQuotaHelperTest : public testing::Test {
|
||||
fetching_completed_ = true;
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
scoped_refptr<storage::QuotaManager> quota_manager_;
|
||||
|
||||
base::ScopedTempDir dir_;
|
||||
|
@ -24,7 +24,7 @@ class CannedBrowsingDataServiceWorkerHelperTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfile profile_;
|
||||
};
|
||||
|
||||
|
@ -19,7 +19,7 @@ class CannedBrowsingDataSharedWorkerHelperTest : public testing::Test {
|
||||
Profile* profile() { return &profile_; }
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfile profile_;
|
||||
};
|
||||
|
||||
|
@ -1125,7 +1125,7 @@ class ChromeBrowsingDataRemoverDelegateTest : public testing::Test {
|
||||
|
||||
// Make sure the Network Service is started before making a NetworkContext.
|
||||
content::GetNetworkService();
|
||||
thread_bundle_.RunUntilIdle();
|
||||
task_environment_.RunUntilIdle();
|
||||
|
||||
auto network_context = std::make_unique<network::NetworkContext>(
|
||||
network::NetworkService::GetNetworkServiceForTesting(),
|
||||
@ -1231,7 +1231,7 @@ class ChromeBrowsingDataRemoverDelegateTest : public testing::Test {
|
||||
// Cached pointer to BrowsingDataRemover for access to testing methods.
|
||||
content::BrowsingDataRemover* remover_;
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
network::mojom::NetworkContextPtr network_context_ptr_;
|
||||
network::NetworkContext* network_context_;
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
|
@ -395,7 +395,7 @@ class CookiesTreeModelTest : public testing::Test {
|
||||
#endif
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
scoped_refptr<MockBrowsingDataCookieHelper>
|
||||
mock_browsing_data_cookie_helper_;
|
||||
|
@ -57,7 +57,7 @@ class BookmarkCounterTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfile profile_;
|
||||
std::unique_ptr<base::RunLoop> run_loop_;
|
||||
|
||||
|
@ -36,7 +36,7 @@ class BrowsingDataCounterUtilsTest : public testing::Test {
|
||||
TestingProfile* GetProfile() { return &profile_; }
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfile profile_;
|
||||
};
|
||||
|
||||
|
@ -139,7 +139,7 @@ class HostedAppsCounterTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
extensions::ExtensionRegistry* extension_registry_;
|
||||
|
||||
|
@ -103,7 +103,7 @@ class SiteDataCountingHelperTest : public testing::Test {
|
||||
Profile* profile() { return profile_.get(); }
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
};
|
||||
|
||||
|
@ -85,7 +85,7 @@ class SiteSettingsCounterTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
|
||||
scoped_refptr<HostContentSettingsMap> map_;
|
||||
|
@ -94,7 +94,7 @@ class SiteDataSizeCollectorTest : public testing::Test {
|
||||
|
||||
protected:
|
||||
int64_t fetched_size_;
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
scoped_refptr<MockBrowsingDataCookieHelper>
|
||||
mock_browsing_data_cookie_helper_;
|
||||
|
@ -280,7 +280,7 @@ class CaptivePortalServiceTest : public testing::Test,
|
||||
// after the test.
|
||||
const CaptivePortalService::TestingState old_captive_portal_testing_state_;
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
// Note that the construction order of these matters.
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
|
@ -100,7 +100,7 @@ class CertificateManagerModelTest : public testing::Test {
|
||||
run_loop.Run();
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
crypto::ScopedTestNSSDB test_nssdb_;
|
||||
std::unique_ptr<net::NSSCertDatabase> nss_cert_db_;
|
||||
std::unique_ptr<FakeObserver> fake_observer_;
|
||||
|
@ -277,7 +277,7 @@ class BlinkSettingsFieldTrialTest : public testing::Test {
|
||||
base::FieldTrialList trial_list_;
|
||||
base::CommandLine command_line_;
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
};
|
||||
|
||||
const char BlinkSettingsFieldTrialTest::kDisallowFetchFieldTrialName[] =
|
||||
|
@ -144,7 +144,7 @@ class AndroidSmsAppManagerImplTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
TestingProfile profile_;
|
||||
std::unique_ptr<sync_preferences::TestingPrefServiceSyncable>
|
||||
|
@ -184,7 +184,8 @@ class AndroidSmsAppSetupControllerImplTest : public testing::Test {
|
||||
};
|
||||
|
||||
AndroidSmsAppSetupControllerImplTest()
|
||||
: thread_bundle_(content::TestBrowserThreadBundle::TimeSource::MOCK_TIME),
|
||||
: task_environment_(
|
||||
content::BrowserTaskEnvironment::TimeSource::MOCK_TIME),
|
||||
host_content_settings_map_(
|
||||
HostContentSettingsMapFactory::GetForProfile(&profile_)) {}
|
||||
|
||||
@ -254,7 +255,7 @@ class AndroidSmsAppSetupControllerImplTest : public testing::Test {
|
||||
install_requests.size());
|
||||
EXPECT_EQ(GetInstallOptionsForUrl(install_url), install_requests.back());
|
||||
|
||||
thread_bundle_.FastForwardBy(
|
||||
task_environment_.FastForwardBy(
|
||||
AndroidSmsAppSetupControllerImpl::kInstallRetryDelay *
|
||||
(1 << retry_count));
|
||||
}
|
||||
@ -262,7 +263,7 @@ class AndroidSmsAppSetupControllerImplTest : public testing::Test {
|
||||
// Send success code for last attempt.
|
||||
test_pending_app_manager_->SetInstallResultCode(
|
||||
web_app::InstallResultCode::kSuccess);
|
||||
thread_bundle_.FastForwardBy(
|
||||
task_environment_.FastForwardBy(
|
||||
AndroidSmsAppSetupControllerImpl::kInstallRetryDelay *
|
||||
(1 << (num_failure_tries - 1)));
|
||||
|
||||
@ -423,7 +424,7 @@ class AndroidSmsAppSetupControllerImplTest : public testing::Test {
|
||||
std::move(quit_closure).Run();
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
base::Optional<bool> last_set_up_app_result_;
|
||||
base::Optional<bool> last_delete_cookie_result_;
|
||||
|
@ -173,7 +173,7 @@ class ConnectionManagerTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
TestingProfile profile_;
|
||||
std::unique_ptr<content::FakeServiceWorkerContext>
|
||||
|
@ -24,7 +24,7 @@ namespace android_sms {
|
||||
class FcmConnectionEstablisherTest : public testing::Test {
|
||||
protected:
|
||||
FcmConnectionEstablisherTest()
|
||||
: thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP) {}
|
||||
: task_environment_(content::BrowserTaskEnvironment::IO_MAINLOOP) {}
|
||||
~FcmConnectionEstablisherTest() override = default;
|
||||
|
||||
void VerifyTransferrableMessage(
|
||||
@ -39,7 +39,7 @@ class FcmConnectionEstablisherTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
DISALLOW_COPY_AND_ASSIGN(FcmConnectionEstablisherTest);
|
||||
};
|
||||
|
||||
|
@ -22,11 +22,11 @@ namespace android_sms {
|
||||
class StreamingConnectionEstablisherTest : public testing::Test {
|
||||
protected:
|
||||
StreamingConnectionEstablisherTest()
|
||||
: thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP) {}
|
||||
: task_environment_(content::BrowserTaskEnvironment::IO_MAINLOOP) {}
|
||||
~StreamingConnectionEstablisherTest() override = default;
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
DISALLOW_COPY_AND_ASSIGN(StreamingConnectionEstablisherTest);
|
||||
};
|
||||
|
||||
|
@ -53,7 +53,7 @@ class ArcAppShortcutsMenuBuilderTest : public testing::Test {
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
ArcAppTest arc_app_test_;
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(ArcAppShortcutsMenuBuilderTest);
|
||||
};
|
||||
|
@ -41,7 +41,7 @@ class ArcAppShortcutsRequestTest : public testing::Test {
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
ArcAppTest arc_app_test_;
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(ArcAppShortcutsRequestTest);
|
||||
};
|
||||
|
@ -20,7 +20,7 @@ using ::testing::HasSubstr;
|
||||
using ::testing::Not;
|
||||
|
||||
TEST_F(ArcMigrationGuideNotificationTest, BatteryPercent) {
|
||||
content::TestBrowserThreadBundle browser_thread_bundle;
|
||||
content::BrowserTaskEnvironment task_environment;
|
||||
TestingProfile profile;
|
||||
|
||||
// Set a high battery state.
|
||||
|
@ -120,7 +120,7 @@ class ArcPlayStoreEnabledPreferenceHandlerTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
user_manager::ScopedUserManager user_manager_enabler_;
|
||||
base::ScopedTempDir temp_dir_;
|
||||
std::unique_ptr<IdentityTestEnvironmentProfileAdaptor>
|
||||
|
@ -128,7 +128,7 @@ class ArcSessionManagerInLoginScreenTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<ArcServiceManager> arc_service_manager_;
|
||||
std::unique_ptr<ArcSessionManager> arc_session_manager_;
|
||||
user_manager::ScopedUserManager user_manager_enabler_;
|
||||
@ -164,7 +164,7 @@ TEST_F(ArcSessionManagerInLoginScreenTest, EmitLoginPromptVisible_NoOp) {
|
||||
class ArcSessionManagerTestBase : public testing::Test {
|
||||
public:
|
||||
ArcSessionManagerTestBase()
|
||||
: thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP),
|
||||
: task_environment_(content::BrowserTaskEnvironment::IO_MAINLOOP),
|
||||
user_manager_enabler_(
|
||||
std::make_unique<chromeos::FakeChromeUserManager>()) {}
|
||||
~ArcSessionManagerTestBase() override = default;
|
||||
@ -239,7 +239,7 @@ class ArcSessionManagerTestBase : public testing::Test {
|
||||
std::make_unique<syncer::SyncErrorFactoryMock>());
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
std::unique_ptr<ArcServiceManager> arc_service_manager_;
|
||||
std::unique_ptr<ArcSessionManager> arc_session_manager_;
|
||||
|
@ -204,7 +204,7 @@ class ChromeArcUtilTest : public testing::Test {
|
||||
private:
|
||||
std::unique_ptr<base::test::ScopedCommandLine> command_line_;
|
||||
base::test::ScopedFeatureList feature_list_;
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
chromeos::ScopedCrosSettingsTestHelper cros_settings_test_helper_;
|
||||
base::ScopedTempDir data_dir_;
|
||||
std::unique_ptr<TestingProfileManager> profile_manager_;
|
||||
|
@ -96,7 +96,7 @@ class ArcBootPhaseMonitorBridgeTest : public testing::Test {
|
||||
user_manager::UserManager::Get());
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
user_manager::ScopedUserManager scoped_user_manager_;
|
||||
std::unique_ptr<ArcServiceManager> arc_service_manager_;
|
||||
std::unique_ptr<ArcSessionManager> arc_session_manager_;
|
||||
|
@ -90,7 +90,7 @@ class ArcInstanceThrottleTest : public testing::Test {
|
||||
ArcInstanceThrottleTest* test_;
|
||||
DISALLOW_COPY_AND_ASSIGN(TestDelegateImpl);
|
||||
};
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<ArcServiceManager> arc_service_manager_;
|
||||
std::unique_ptr<ArcSessionManager> arc_session_manager_;
|
||||
std::unique_ptr<TestingProfile> testing_profile_;
|
||||
|
@ -129,7 +129,7 @@ class ArcCertInstallerTest : public testing::Test {
|
||||
MockRemoteCommandsQueueObserver* observer() { return &observer_; }
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle browser_thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
// ArcServiceManager needs to be created before ArcPolicyBridge (since the
|
||||
// Bridge depends on the Manager), and it needs to be destroyed after Profile
|
||||
|
@ -86,7 +86,7 @@ class ArcSupportMessageHostTest : public testing::Test {
|
||||
|
||||
private:
|
||||
// Fake as if the current testing thread is UI thread.
|
||||
content::TestBrowserThreadBundle bundle_;
|
||||
content::BrowserTaskEnvironment bundle_;
|
||||
|
||||
std::unique_ptr<TestClient> client_;
|
||||
std::unique_ptr<extensions::NativeMessageHost> message_host_;
|
||||
|
@ -83,7 +83,7 @@ class ArcContentFileSystemAsyncFileUtilTest : public testing::Test {
|
||||
storage::kFileSystemTypeArcContent, path);
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
FakeFileSystemInstance fake_file_system_;
|
||||
|
||||
// Use the same initialization/destruction order as
|
||||
|
@ -96,7 +96,7 @@ class ArcContentFileSystemFileStreamReaderTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
FakeFileSystemInstance fake_file_system_;
|
||||
|
||||
// Use the same initialization/destruction order as
|
||||
|
@ -103,7 +103,7 @@ class ArcContentFileSystemFileStreamWriterTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
FakeFileSystemInstance fake_file_system_;
|
||||
|
||||
// Use the same initialization/destruction order as
|
||||
|
@ -198,7 +198,7 @@ class ArcDocumentsProviderRootTest : public testing::Test {
|
||||
}
|
||||
|
||||
protected:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
FakeFileSystemInstance fake_file_system_;
|
||||
|
||||
// Use the same initialization/destruction order as
|
||||
|
@ -83,7 +83,7 @@ class ArcFileSystemBridgeTest : public testing::Test {
|
||||
|
||||
protected:
|
||||
base::ScopedTempDir temp_dir_;
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
content::TestServiceManagerContext service_manager_context_;
|
||||
std::unique_ptr<TestingProfileManager> profile_manager_;
|
||||
|
||||
|
@ -127,7 +127,7 @@ class ArcFileSystemOperationRunnerTest : public testing::Test {
|
||||
counter));
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
FakeFileSystemInstance file_system_instance_;
|
||||
|
||||
// Use the same initialization/destruction order as
|
||||
|
@ -160,7 +160,7 @@ class ArcSelectFilesHandlerTest : public testing::Test {
|
||||
callback.Get());
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<TestingProfileManager> profile_manager_;
|
||||
std::unique_ptr<ArcSelectFilesHandler> arc_select_files_handler_;
|
||||
MockSelectFileDialogHolder* mock_dialog_holder_;
|
||||
|
@ -66,7 +66,7 @@ class FileStreamForwarderTest : public testing::Test {
|
||||
}
|
||||
|
||||
protected:
|
||||
content::TestBrowserThreadBundle test_browser_thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
base::ScopedTempDir temp_dir_;
|
||||
base::FilePath dest_file_path_;
|
||||
base::ScopedFD dest_fd_;
|
||||
|
@ -28,7 +28,7 @@ class IconDecodeRequest : public ImageDecoder::ImageRequest {
|
||||
// Icons are decoded at a separate process created by ImageDecoder. In unit
|
||||
// tests these tasks may not finish before the test exits, which causes a
|
||||
// failure in the base::MessageLoopCurrent::Get()->IsIdleForTesting() check
|
||||
// in test_browser_thread_bundle.cc.
|
||||
// in content::~BrowserTaskEnvironment().
|
||||
static void DisableSafeDecodingForTesting();
|
||||
|
||||
// Starts image decoding. Safe asynchronous decoding is used unless
|
||||
|
@ -250,7 +250,7 @@ class ArcInputMethodManagerServiceTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
std::unique_ptr<ArcServiceManager> arc_service_manager_;
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
|
@ -166,7 +166,7 @@ TEST(OpenWithMenuTest, TestBuildHandlersMap) {
|
||||
}
|
||||
|
||||
TEST(OpenWithMenuTest, TestModelChanged) {
|
||||
content::TestBrowserThreadBundle thread_bundle;
|
||||
content::BrowserTaskEnvironment task_environment;
|
||||
MockRenderViewContextMenu mock_menu(false);
|
||||
OpenWithMenu observer(nullptr, &mock_menu);
|
||||
mock_menu.SetObserver(&observer);
|
||||
|
@ -54,7 +54,7 @@ class ArcSupervisionTransitionNotificationTest
|
||||
std::unique_ptr<NotificationDisplayServiceTester> display_service_;
|
||||
ArcAppTest arc_app_test_;
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(ArcSupervisionTransitionNotificationTest);
|
||||
};
|
||||
|
@ -47,7 +47,7 @@ class ArcPipBridgeTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
TestingProfile testing_profile_;
|
||||
std::unique_ptr<ArcBridgeService> arc_bridge_service_;
|
||||
std::unique_ptr<ArcPipBridge> bridge_;
|
||||
|
@ -220,7 +220,7 @@ class ArcPolicyBridgeTestBase {
|
||||
TestingProfile* profile() { return profile_; }
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
data_decoder::TestingJsonParser::ScopedFactoryOverride factory_override_;
|
||||
content::TestServiceManagerContext service_manager_context_;
|
||||
std::unique_ptr<user_manager::ScopedUserManager> user_manager_enabler_;
|
||||
|
@ -94,7 +94,7 @@ class ArcTtsServiceTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
std::unique_ptr<ArcServiceManager> arc_service_manager_;
|
||||
std::unique_ptr<TestingProfile> testing_profile_;
|
||||
std::unique_ptr<TestableTtsController> tts_controller_;
|
||||
|
@ -61,7 +61,7 @@ class FailureDecodeRequestSender
|
||||
class ArcWallpaperServiceTest : public testing::Test {
|
||||
public:
|
||||
ArcWallpaperServiceTest()
|
||||
: thread_bundle_(std::make_unique<content::TestBrowserThreadBundle>()),
|
||||
: task_environment_(std::make_unique<content::BrowserTaskEnvironment>()),
|
||||
user_manager_(new chromeos::FakeChromeUserManager()),
|
||||
user_manager_enabler_(base::WrapUnique(user_manager_)) {}
|
||||
~ArcWallpaperServiceTest() override = default;
|
||||
@ -119,7 +119,7 @@ class ArcWallpaperServiceTest : public testing::Test {
|
||||
TestWallpaperController test_wallpaper_controller_;
|
||||
|
||||
private:
|
||||
std::unique_ptr<content::TestBrowserThreadBundle> thread_bundle_;
|
||||
std::unique_ptr<content::BrowserTaskEnvironment> task_environment_;
|
||||
chromeos::FakeChromeUserManager* const user_manager_ = nullptr;
|
||||
user_manager::ScopedUserManager user_manager_enabler_;
|
||||
arc::ArcServiceManager arc_service_manager_;
|
||||
|
@ -185,7 +185,7 @@ class ChromeAssistantUtilTest : public testing::Test {
|
||||
private:
|
||||
std::unique_ptr<base::test::ScopedCommandLine> command_line_;
|
||||
base::test::ScopedFeatureList feature_list_;
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
base::ScopedTempDir data_dir_;
|
||||
std::unique_ptr<IdentityTestEnvironmentProfileAdaptor>
|
||||
identity_test_env_adaptor_;
|
||||
|
@ -82,7 +82,7 @@ class AttestationCAClientTest : public ::testing::Test {
|
||||
base::RunLoop().RunUntilIdle();
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle test_browser_thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
|
||||
network::TestURLLoaderFactory test_url_loader_factory_;
|
||||
scoped_refptr<network::SharedURLLoaderFactory>
|
||||
|
@ -38,7 +38,7 @@ class AttestationPolicyObserverTest : public ::testing::Test {
|
||||
base::RunLoop().RunUntilIdle();
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle test_browser_thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
ScopedCrosSettingsTestHelper settings_helper_;
|
||||
StrictMock<MockMachineCertificateUploader> certificate_uploader_;
|
||||
};
|
||||
|
@ -98,7 +98,7 @@ class EnrollmentCertificateUploaderTest : public ::testing::Test {
|
||||
base::RunLoop().RunUntilIdle();
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle test_browser_thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
ScopedCrosSettingsTestHelper settings_helper_;
|
||||
FakeCryptohomeClient cryptohome_client_;
|
||||
StrictMock<MockAttestationFlow> attestation_flow_;
|
||||
|
@ -136,7 +136,7 @@ class MachineCertificateUploaderTest : public ::testing::TestWithParam<bool> {
|
||||
return serialized;
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle test_browser_thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
ScopedCrosSettingsTestHelper settings_helper_;
|
||||
FakeCryptohomeClient cryptohome_client_;
|
||||
StrictMock<MockAttestationFlow> attestation_flow_;
|
||||
|
@ -180,7 +180,7 @@ class PlatformVerificationFlowTest : public ::testing::Test {
|
||||
}
|
||||
|
||||
protected:
|
||||
content::TestBrowserThreadBundle test_browser_thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
StrictMock<MockAttestationFlow> mock_attestation_flow_;
|
||||
cryptohome::MockAsyncMethodCaller mock_async_caller_;
|
||||
chromeos::FakeCryptohomeClient fake_cryptohome_client_;
|
||||
|
@ -127,7 +127,7 @@ class AuthPolicyCredentialsManagerTest : public testing::Test {
|
||||
testing::Mock::VerifyAndClearExpectations(mock_user_manager());
|
||||
}
|
||||
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
AccountId account_id_;
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
|
||||
|
@ -79,7 +79,7 @@ class FileFlusherTest : public testing::Test {
|
||||
}
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
base::ScopedTempDir temp_dir_;
|
||||
std::map<base::FilePath, int> flush_counts_;
|
||||
|
||||
|
@ -138,7 +138,7 @@ class EventBasedStatusReportingServiceTest : public testing::Test {
|
||||
void SetConnectionType(network::mojom::ConnectionType type) {
|
||||
network::TestNetworkConnectionTracker::GetInstance()->SetConnectionType(
|
||||
type);
|
||||
thread_bundle_.RunUntilIdle();
|
||||
task_environment_.RunUntilIdle();
|
||||
}
|
||||
|
||||
arc::mojom::AppHost* app_host() { return arc_test_.arc_app_list_prefs(); }
|
||||
@ -169,7 +169,7 @@ class EventBasedStatusReportingServiceTest : public testing::Test {
|
||||
base::HistogramTester histogram_tester_;
|
||||
|
||||
private:
|
||||
content::TestBrowserThreadBundle thread_bundle_;
|
||||
content::BrowserTaskEnvironment task_environment_;
|
||||
ArcAppTest arc_test_;
|
||||
std::unique_ptr<TestingProfile> profile_;
|
||||
TestingConsumerStatusReportingService*
|
||||
|
@ -53,7 +53,7 @@ class TimeLimitNotifierTest : public testing::Test {
|
||||
}
|
||||
|
||||
scoped_refptr<base::TestMockTimeTaskRunner> task_runner_;
|
||||
content::TestBrowserThreadBundle bundle_;
|
||||
content::BrowserTaskEnvironment bundle_;
|
||||
TestingProfile profile_;
|
||||
NotificationDisplayServiceTester notification_tester_;
|
||||
TimeLimitNotifier notifier_;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user