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

Issue 2614443004: [ios] Moved all web mocks to ios/web/public/test/fakes. (Closed)

Created:
3 years, 11 months ago by Eugene But (OOO till 7-30)
Modified:
3 years, 11 months ago
Reviewers:
sdefresne
CC:
chromium-reviews, msramek+watch_chromium.org, vabr+watchlistpasswordmanager_chromium.org, tfarina, pkl (ping after 24h if needed), jam, cbentzel+watch_chromium.org, noyau+watch_chromium.org, asvitkine+watch_chromium.org, darin-cc_chromium.org, stkhapugin, markusheintz_, gcasto+watchlist_chromium.org, sync-reviews_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Moved all web mocks to ios/web/public/test/fakes. There are 8 fake classes and they deserve a separate directory. BUG=None Review-Url: https://codereview.chromium.org/2614443004 Cr-Commit-Position: refs/heads/master@{#441705} Committed: https://chromium.googlesource.com/chromium/src/+/e81a072c1c3a108fbed9d24d62ee7c772d66f660

Patch Set 1 #

Patch Set 2 : s/mocks/fakes #

Total comments: 2

Patch Set 3 : Moved test_redirect_observer back #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -1104 lines) Patch
M components/signin/ios/browser/account_consistency_service_unittest.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/translate/ios/browser/js_translate_manager_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M components/translate/ios/browser/language_detection_controller_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M components/translate/ios/browser/translate_controller_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/app/application_delegate/app_state_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/browsing_data/cache_counter_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/itunes_links/itunes_links_observer_unittest.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/passwords/password_controller_off_the_record_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/passwords/password_controller_unittest.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/passwords/password_generation_agent_unittest.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_web_state_observer_unittest.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/signin/gaia_auth_fetcher_ios_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/u2f/u2f_controller_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/dialogs/dialog_presenter_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/dialogs/javascript_dialog_blocking_util_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/fullscreen_controller_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/static_content/static_html_view_controller_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/toolbar/toolbar_model_impl_ios_unittest.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/web/chrome_web_client_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/web/early_page_script_perftest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/web/network_activity_indicator_tab_helper_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/BUILD.gn View 1 2 2 chunks +16 lines, -16 lines 0 comments Download
M ios/web/active_state_manager_impl_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/browser_state_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/navigation/crw_session_controller_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/navigation/navigation_manager_impl_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/net/request_tracker_impl_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
D ios/web/public/test/crw_test_js_injection_receiver.h View 1 chunk +0 lines, -15 lines 0 comments Download
D ios/web/public/test/crw_test_js_injection_receiver.mm View 1 chunk +0 lines, -67 lines 0 comments Download
A + ios/web/public/test/fakes/crw_test_js_injection_receiver.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + ios/web/public/test/fakes/crw_test_js_injection_receiver.mm View 1 1 chunk +1 line, -1 line 0 comments Download
A + ios/web/public/test/fakes/test_browser_state.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + ios/web/public/test/fakes/test_browser_state.cc View 1 3 chunks +4 lines, -5 lines 0 comments Download
A + ios/web/public/test/fakes/test_native_content.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + ios/web/public/test/fakes/test_native_content.mm View 1 1 chunk +1 line, -1 line 0 comments Download
A + ios/web/public/test/fakes/test_native_content_provider.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + ios/web/public/test/fakes/test_native_content_provider.mm View 1 1 chunk +1 line, -1 line 0 comments Download
A + ios/web/public/test/fakes/test_navigation_manager.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + ios/web/public/test/fakes/test_navigation_manager.mm View 1 1 chunk +1 line, -1 line 0 comments Download
A + ios/web/public/test/fakes/test_web_client.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + ios/web/public/test/fakes/test_web_client.mm View 1 1 chunk +1 line, -1 line 0 comments Download
A + ios/web/public/test/fakes/test_web_state.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + ios/web/public/test/fakes/test_web_state.mm View 1 1 chunk +1 line, -1 line 0 comments Download
A + ios/web/public/test/fakes/test_web_view_content_view.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + ios/web/public/test/fakes/test_web_view_content_view.mm View 1 1 chunk +1 line, -1 line 0 comments Download
D ios/web/public/test/test_browser_state.h View 1 chunk +0 lines, -31 lines 0 comments Download
D ios/web/public/test/test_browser_state.cc View 1 chunk +0 lines, -68 lines 0 comments Download
D ios/web/public/test/test_native_content.h View 1 chunk +0 lines, -22 lines 0 comments Download
D ios/web/public/test/test_native_content.mm View 1 chunk +0 lines, -56 lines 0 comments Download
D ios/web/public/test/test_native_content_provider.h View 1 chunk +0 lines, -20 lines 0 comments Download
D ios/web/public/test/test_native_content_provider.mm View 1 chunk +0 lines, -38 lines 0 comments Download
D ios/web/public/test/test_navigation_manager.h View 1 chunk +0 lines, -56 lines 0 comments Download
D ios/web/public/test/test_navigation_manager.mm View 1 chunk +0 lines, -139 lines 0 comments Download
D ios/web/public/test/test_web_client.h View 1 chunk +0 lines, -61 lines 0 comments Download
D ios/web/public/test/test_web_client.mm View 1 chunk +0 lines, -59 lines 0 comments Download
D ios/web/public/test/test_web_state.h View 1 chunk +0 lines, -107 lines 0 comments Download
D ios/web/public/test/test_web_state.mm View 1 chunk +0 lines, -190 lines 0 comments Download
D ios/web/public/test/test_web_view_content_view.h View 1 chunk +0 lines, -23 lines 0 comments Download
D ios/web/public/test/test_web_view_content_view.mm View 1 chunk +0 lines, -50 lines 0 comments Download
M ios/web/public/test/web_test.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/public/test/web_test.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/test/web_test_suite.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/test/wk_web_view_crash_utils.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/web_state/js/page_script_util_unittest.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller_unittest.mm View 1 1 chunk +4 lines, -4 lines 0 comments Download
M ios/web/web_state/ui/crw_wk_script_message_router_unittest.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ios/web/web_state/ui/wk_web_view_configuration_provider_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/web_state/web_state_impl_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/web_state/web_view_internal_creation_util_unittest.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ios/web/webui/crw_web_ui_manager_unittest.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (15 generated)
Eugene But (OOO till 7-30)
3 years, 11 months ago (2017-01-04 00:22:57 UTC) #4
sdefresne
I don't think those objects (except for mock_image_data_fetcher.h) are mocks. According to most unit test ...
3 years, 11 months ago (2017-01-04 10:37:19 UTC) #7
Eugene But (OOO till 7-30)
On 2017/01/04 10:37:19, sdefresne wrote: > I don't think those objects (except for mock_image_data_fetcher.h) are ...
3 years, 11 months ago (2017-01-04 22:05:29 UTC) #10
sdefresne
lgtm except maybe for ios/web/public/test/fakes/test_redirect_observer.h https://codereview.chromium.org/2614443004/diff/20001/ios/web/public/test/fakes/test_redirect_observer.h File ios/web/public/test/fakes/test_redirect_observer.h (right): https://codereview.chromium.org/2614443004/diff/20001/ios/web/public/test/fakes/test_redirect_observer.h#newcode20 ios/web/public/test/fakes/test_redirect_observer.h:20: class TestRedirectObserver : public ...
3 years, 11 months ago (2017-01-05 10:50:46 UTC) #14
Eugene But (OOO till 7-30)
Thanks! https://codereview.chromium.org/2614443004/diff/20001/ios/web/public/test/fakes/test_redirect_observer.h File ios/web/public/test/fakes/test_redirect_observer.h (right): https://codereview.chromium.org/2614443004/diff/20001/ios/web/public/test/fakes/test_redirect_observer.h#newcode20 ios/web/public/test/fakes/test_redirect_observer.h:20: class TestRedirectObserver : public web::WebStateObserver { On 2017/01/05 ...
3 years, 11 months ago (2017-01-05 17:25:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2614443004/40001
3 years, 11 months ago (2017-01-05 17:25:26 UTC) #19
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 18:34:41 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/e81a072c1c3a108fbed9d24d62ee...

Powered by Google App Engine
This is Rietveld 408576698