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

Issue 812083002: Removes BackgroundShellApplicationLoader from application_manager tests (Closed)

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

Description

Removes BackgroundShellApplicationLoader from application_manager tests BackgroundShellApplicationLoader is android specific. I'm removing use from application_manager_unittests so that I can move BackgroundShellApplicationLoader (see https://codereview.chromium.org/788243007/ ). There is only one test in application_manager_unittests that relied on BackgroundShellApplicationLoader: BDeleted. BDeleted needed BackgroundShellApplicationLoader because resetting the loader (BackgroundShellApplicationLoader) triggered shutting down the background thread and background message loop (owned by BackgroundShellApplicationLoader). Shutting down the MessageLoop closes any pipes. As A/B are InterfaceImpls they are destroyed when the pipe closes. Removing BackgroundShellApplicationLoader breaks BDeleted because resetting the loader no longer triggers closing pipes. The fix is to make Tester own the TestAImpls it creates. This way when the test resets the loader the TestAImpls are destroyed so that the other side (TestBimpl) sees the connection error and cleans up. BUG=none TEST=none R=qsr@chromium.org, davemoore@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/dd035f53e654d1c22fd30ffdca777f378e591ca6

Patch Set 1 #

Patch Set 2 : merge to trunk #

Total comments: 2

Patch Set 3 : make TestA own binding #

Patch Set 4 : merge 2 trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -18 lines) Patch
M mojo/application_manager/application_manager_unittest.cc View 1 2 7 chunks +13 lines, -18 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
sky
I split this out from https://codereview.chromium.org/788243007/ to make it easier to review. Dave, I'm sending ...
6 years ago (2014-12-17 18:58:05 UTC) #2
qsr
lgtm https://codereview.chromium.org/812083002/diff/20001/mojo/application_manager/application_manager_unittest.cc File mojo/application_manager/application_manager_unittest.cc (right): https://codereview.chromium.org/812083002/diff/20001/mojo/application_manager/application_manager_unittest.cc#newcode327 mojo/application_manager/application_manager_unittest.cc:327: struct TestABinding { I'm perfectly fine with this, ...
6 years ago (2014-12-18 08:58:35 UTC) #3
sky
https://codereview.chromium.org/812083002/diff/20001/mojo/application_manager/application_manager_unittest.cc File mojo/application_manager/application_manager_unittest.cc (right): https://codereview.chromium.org/812083002/diff/20001/mojo/application_manager/application_manager_unittest.cc#newcode327 mojo/application_manager/application_manager_unittest.cc:327: struct TestABinding { On 2014/12/18 08:58:34, qsr wrote: > ...
6 years ago (2014-12-18 16:46:55 UTC) #4
sky
6 years ago (2014-12-18 16:47:20 UTC) #5
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
dd035f53e654d1c22fd30ffdca777f378e591ca6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698