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

Issue 1175783003: Split out Ash dependency in app info dialog unittests (Closed)

Created:
5 years, 6 months ago by tapted
Modified:
5 years, 6 months ago
Reviewers:
benwells
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split out Ash dependency in app info dialog unittests The app info dialog doesn't have an ash dependency on Mac, so this needs to be isolated. The non-Ash tests have both an Extensions and a Views dependency. The extension system requires a BrowserThreadBundle (from content), which was previously provided by AshTestBase. However, ViewsTestBase does not (and shouldn't) have a content dependency. Instead, it can use the BrowserThreadBundle provided by TestExtensionEnvironment which has some other useful things. Then, to satisfy the Views dependency, we still can't use ViewsTestBase because it has its own MessageLoop that will fight with the BrowserThreadBundle. A follow-up will introduce a ScopedViewsTestHelper to allow the test to run on Mac, but for now just use AshTestBase. In the AppInfo unittests, make better use of TestExtensionEnvironment to reuse common code. BUG=485854, 412234 Committed: https://crrev.com/c7bd3ce802ecdbb5a99bb1e0116d2ccd8e3bf86f Cr-Commit-Position: refs/heads/master@{#334533}

Patch Set 1 #

Patch Set 2 : Ugh fix ash maybe #

Patch Set 3 : another experiment #

Patch Set 4 : Use ScopedViewsTestHelper #

Patch Set 5 : Just one ole #

Patch Set 6 : Find some more clients #

Patch Set 7 : fix aura compile: -> -> . #

Patch Set 8 : nits #

Patch Set 9 : More simplifications in ViewEventTestBase #

Patch Set 10 : Fix DesktopAuraWidgetTest #

Patch Set 11 : ViewEventTestBase will not play nice #

Total comments: 1

Patch Set 12 : Split out ScopedViewsTestHelper #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -145 lines) Patch
M chrome/browser/extensions/test_extension_environment.h View 1 2 3 4 5 6 5 chunks +22 lines, -3 lines 0 comments Download
M chrome/browser/extensions/test_extension_environment.cc View 1 2 3 4 5 6 7 5 chunks +54 lines, -10 lines 0 comments Download
A chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_ash_unittest.cc View 1 2 3 1 chunk +71 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +27 lines, -128 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
tapted
benwells - please take a look at the stuff under chrome/browser/../{extensions,apps} (this turned out to ...
5 years, 6 months ago (2015-06-11 23:52:00 UTC) #5
benwells
Bits i understand lgtm. Maybe its just me but this change seems to be doing ...
5 years, 6 months ago (2015-06-15 03:53:16 UTC) #6
tapted
PTAL On 2015/06/15 03:53:16, benwells wrote: > Bits i understand lgtm. Maybe its just me ...
5 years, 6 months ago (2015-06-16 00:29:53 UTC) #7
benwells
slgtm
5 years, 6 months ago (2015-06-16 01:16:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1175783003/280001
5 years, 6 months ago (2015-06-16 01:43:16 UTC) #11
commit-bot: I haz the power
Committed patchset #12 (id:280001)
5 years, 6 months ago (2015-06-16 02:50:51 UTC) #12
commit-bot: I haz the power
5 years, 6 months ago (2015-06-16 02:52:56 UTC) #13
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/c7bd3ce802ecdbb5a99bb1e0116d2ccd8e3bf86f
Cr-Commit-Position: refs/heads/master@{#334533}

Powered by Google App Engine
This is Rietveld 408576698