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

Issue 1990603002: Make ApplicationTestBase not use ApplicationImpl. (Closed)

Created:
4 years, 7 months ago by viettrungluu
Modified:
4 years, 7 months ago
Reviewers:
vardhan
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, yzshen+mojopublicwatch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Make ApplicationTestBase not use ApplicationImpl. It didn't have much reason to. This allows us to make ApplicationImpl's Application implementation private. My plan: * Factor out the guts of ApplicationImpl to a new class called ApplicationImplBase, which would have a bunch of (possibly pure) virtual methods meant to be overridden. (I'd mark methods not meant to be overridden as |final|.) * ApplicationImpl would (temporarily?) remain, implementing these methods by calling out to ApplicationDelegate. * Convert code to just subclassing/implementing ApplicationImplBase, instead of ApplicationDelegate (and instantiating that class, instead of ApplicationImpl + their delegate). * Once no one uses ApplicationImpl/ApplicationDelegate anymore, we can remove them. R=vardhan@google.com Committed: https://chromium.googlesource.com/external/mojo/+/d63ebabd63142a3865c0801292a441ee8c38e03b

Patch Set 1 #

Patch Set 2 : delete ApplicationImpl::WaitForInitialize() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -143 lines) Patch
M examples/apptest/example_apptest.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M mojo/file_utils/file_util_unittest.cc View 2 chunks +1 line, -3 lines 0 comments Download
M mojo/public/cpp/application/application_impl.h View 1 3 chunks +2 lines, -13 lines 0 comments Download
M mojo/public/cpp/application/application_test_base.h View 3 chunks +8 lines, -18 lines 0 comments Download
M mojo/public/cpp/application/lib/application_impl.cc View 1 1 chunk +0 lines, -12 lines 0 comments Download
M mojo/public/cpp/application/lib/application_test_base.cc View 4 chunks +12 lines, -22 lines 0 comments Download
M mojo/public/cpp/bindings/tests/versioning_apptest.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M mojo/services/files/c/tests/mojio_impl_test_base.cc View 2 chunks +1 line, -3 lines 0 comments Download
M mojo/ui/gl_renderer_apptest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M services/asset_bundle/asset_bundle_apptest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_apptest.cc View 3 chunks +2 lines, -4 lines 0 comments Download
M services/authentication/accounts_db_manager_unittest.cc View 2 chunks +1 line, -3 lines 0 comments Download
M services/clipboard/clipboard_apptest.cc View 2 chunks +1 line, -3 lines 0 comments Download
M services/contacts/contacts_apptest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M services/files/files_test_base.cc View 2 chunks +1 line, -3 lines 0 comments Download
M services/http_server/http_server_apptest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M services/js/echo_apptest.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M services/js/network_apptest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M services/js/pingpong_apptest.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M services/native_support/process_test_base.cc View 2 chunks +1 line, -2 lines 0 comments Download
M services/notifications/apptests/notifications_apptest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M services/prediction/prediction_apptests.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M services/url_response_disk_cache/url_response_disk_cache_apptest.cc View 2 chunks +1 line, -3 lines 0 comments Download
M shell/android/nfc_apptest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M shell/shell_apptest.cc View 7 chunks +9 lines, -16 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 4 (1 generated)
viettrungluu
4 years, 7 months ago (2016-05-17 21:27:32 UTC) #1
vardhan
lgtm
4 years, 7 months ago (2016-05-17 22:39:59 UTC) #2
viettrungluu
4 years, 7 months ago (2016-05-17 22:49:56 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
d63ebabd63142a3865c0801292a441ee8c38e03b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698