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

Issue 23072036: Adds an integration test for uninstalling app list search results. (Closed)

Created:
7 years, 4 months ago by tapted
Modified:
7 years, 3 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Visibility:
Public.

Description

Adds an integration test for uninstalling app list search results. This involves exposing the app list model to a BrowserTest, and ensuring that changes in the model are properly observed by the UI. BUG=277897, 169114 TEST=AppListControllerSearchResultsBrowserTest.UninstallSearchResult Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221197 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222107

Patch Set 1 #

Patch Set 2 : Get test passing on windows, expected event is not being observed though #

Total comments: 1

Patch Set 3 : rebase and fix ash compile #

Patch Set 4 : now trigers the test failure when based off revision before fix #

Patch Set 5 : remove DLOGs, fix disabled #

Patch Set 6 : observe the model properly #

Patch Set 7 : split it up nicer #

Patch Set 8 : nit indenting #

Total comments: 4

Patch Set 9 : encapsulate assignments, fix unit tests #

Total comments: 5

Patch Set 10 : reorder accessor, fix destructor in browser_test -- runs too late for win #

Total comments: 3

Patch Set 11 : rebasing at r220153 #

Patch Set 12 : Compiles on CrOS, non-ash Win, Mac.. just win-Aura left #

Patch Set 13 : self review, aura is happy #

Total comments: 2

Patch Set 14 : address comment #

Patch Set 15 : rebase for r220795 #

Patch Set 16 : rebase for diff #

Patch Set 17 : No export for test_support targets, TODO TODONE in r221329 #

Patch Set 18 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+641 lines, -186 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
A ash/test/app_list_controller_test_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +38 lines, -0 lines 0 comments Download
A ash/test/app_list_controller_test_api.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +21 lines, -0 lines 0 comments Download
M ash/test/shell_test_api.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M ash/test/shell_test_api.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M ash/wm/app_list_controller.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +137 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/app_list_service_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +69 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +136 lines, -179 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +18 lines, -1 line 0 comments Download
A chrome/browser/ui/app_list/test/app_list_service_test_api.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/test/app_list_service_test_api_ash.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/test/app_list_service_test_api_ash.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/test/app_list_service_test_api_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/test/app_list_service_test_api_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/app_list/app_list_controller_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +16 lines, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M ui/app_list/cocoa/apps_search_box_controller.mm View 1 chunk +1 line, -0 lines 0 comments Download
M ui/app_list/cocoa/apps_search_box_controller_unittest.mm View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -5 lines 0 comments Download
M ui/app_list/views/app_list_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M ui/app_list/views/search_box_view.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
tapted
(attaching comment) https://codereview.chromium.org/23072036/diff/4001/chrome/browser/ui/app_list/app_list_controller_browsertest.cc File chrome/browser/ui/app_list/app_list_controller_browsertest.cc (right): https://codereview.chromium.org/23072036/diff/4001/chrome/browser/ui/app_list/app_list_controller_browsertest.cc#newcode54 chrome/browser/ui/app_list/app_list_controller_browsertest.cc:54: observed_result_->RemoveObserver(this); Note that without this line, there ...
7 years, 4 months ago (2013-08-23 07:07:04 UTC) #1
tapted
koz, care to take an initial look? This is a regression test for http://crbug.com/277897 and ...
7 years, 3 months ago (2013-08-27 13:19:54 UTC) #2
koz (OOO until 15th September)
https://chromiumcodereview.appspot.com/23072036/diff/27001/chrome/browser/ui/app_list/app_list_controller_browsertest.cc File chrome/browser/ui/app_list/app_list_controller_browsertest.cc (right): https://chromiumcodereview.appspot.com/23072036/diff/27001/chrome/browser/ui/app_list/app_list_controller_browsertest.cc#newcode211 chrome/browser/ui/app_list/app_list_controller_browsertest.cc:211: observed_results_list_ = model->results(); All the assigning to protected variables ...
7 years, 3 months ago (2013-08-28 00:37:43 UTC) #3
tapted
+xiyuan for review. I think I'll need a src/ash OWNER as well, but wanted to ...
7 years, 3 months ago (2013-08-28 03:09:48 UTC) #4
koz (OOO until 15th September)
lgtm
7 years, 3 months ago (2013-08-28 03:18:03 UTC) #5
xiyuan
LGTM It's perfectly okay to expose the model. Out of the scope of this CL, ...
7 years, 3 months ago (2013-08-28 03:36:44 UTC) #6
tapted
+sky for src/ash OWNERS https://codereview.chromium.org/23072036/diff/49001/ash/shell.h File ash/shell.h (right): https://codereview.chromium.org/23072036/diff/49001/ash/shell.h#newcode235 ash/shell.h:235: app_list::AppListView* GetAppListViewForTesting(); On 2013/08/28 03:36:45, ...
7 years, 3 months ago (2013-08-28 07:23:13 UTC) #7
sky
https://codereview.chromium.org/23072036/diff/65001/ash/shell.h File ash/shell.h (right): https://codereview.chromium.org/23072036/diff/65001/ash/shell.h#newcode235 ash/shell.h:235: app_list::AppListView* GetAppListViewForTesting(); Put this in ShellTestAPI and do something ...
7 years, 3 months ago (2013-08-28 13:57:00 UTC) #8
xiyuan
https://codereview.chromium.org/23072036/diff/49001/ash/shell.h File ash/shell.h (right): https://codereview.chromium.org/23072036/diff/49001/ash/shell.h#newcode235 ash/shell.h:235: app_list::AppListView* GetAppListViewForTesting(); On 2013/08/28 07:23:14, tapted wrote: > On ...
7 years, 3 months ago (2013-08-28 16:33:45 UTC) #9
tapted
koz - please take another look too. At this stage, ash and mac AppListService interfaces ...
7 years, 3 months ago (2013-08-29 12:41:51 UTC) #10
koz (OOO until 15th September)
slgtm https://codereview.chromium.org/23072036/diff/119001/chrome/browser/ui/app_list/app_list_controller_browsertest.cc File chrome/browser/ui/app_list/app_list_controller_browsertest.cc (right): https://codereview.chromium.org/23072036/diff/119001/chrome/browser/ui/app_list/app_list_controller_browsertest.cc#newcode193 chrome/browser/ui/app_list/app_list_controller_browsertest.cc:193: virtual void ListItemsAdded(size_t start, size_t count) OVERRIDE { ...
7 years, 3 months ago (2013-08-30 00:12:42 UTC) #11
tapted
xiyuan - WDYT? I guess a sub-goal of this is to lower the barrier to ...
7 years, 3 months ago (2013-08-30 00:54:39 UTC) #12
xiyuan
SLGTM On 2013/08/30 00:54:39, tapted wrote: > xiyuan - WDYT? I guess a sub-goal of ...
7 years, 3 months ago (2013-08-30 01:07:48 UTC) #13
tapted
sky: for src/ash - PTAL
7 years, 3 months ago (2013-08-30 23:14:41 UTC) #14
sky
LGTM
7 years, 3 months ago (2013-09-03 15:53:31 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/23072036/134001
7 years, 3 months ago (2013-09-04 01:26:50 UTC) #16
commit-bot: I haz the power
Change committed as 221197
7 years, 3 months ago (2013-09-04 16:40:16 UTC) #17
Vitaly Buka (NO REVIEWS)
Reverted because of app_list_controller_test_api.cc(14) : error C2220: warning treated as error - no 'object' file ...
7 years, 3 months ago (2013-09-04 17:03:31 UTC) #18
tapted
Relanding - forgot that *test_support targets are always statically linked, so no need for ASH_EXPORT ...
7 years, 3 months ago (2013-09-09 17:52:45 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/23072036/164001
7 years, 3 months ago (2013-09-09 17:53:25 UTC) #20
commit-bot: I haz the power
Failed to apply patch for chrome/chrome_tests.gypi: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-09 17:53:34 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/23072036/179001
7 years, 3 months ago (2013-09-09 19:45:14 UTC) #22
commit-bot: I haz the power
7 years, 3 months ago (2013-09-09 22:18:37 UTC) #23
Message was sent while issue was closed.
Change committed as 222107

Powered by Google App Engine
This is Rietveld 408576698