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

Issue 2393343002: Split ExtensionTestObserver and move to //extensions. (Closed)

Created:
4 years, 2 months ago by Rahul Chaturvedi
Modified:
4 years, 2 months ago
Reviewers:
Devlin, sky
CC:
chromium-reviews, extensions-reviews_chromium.org, alemate+watch_chromium.org, Matt Giuca, tfarina, achuith+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, davemoore+watch_chromium.org, michaelpg
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split ExtensionTestObserver and move to //extensions. This CL splits ExtensionsTestObserver into two parts. The base class exists in //extensions and has no dependencies on //chrome. The code that needs to depend on //chrome is now in a subclass. This will allow us to use the observer in tests that are out of //chrome. This class is split but more code needs to be moved from ExtensionChromeTestObserver to ExtensionTestObserver. There are certain parts that we've left in the Chrome version simply because they are too much work to move in this CL itself. This CL is one of many that will be required to move tests for apps and extensions API that are in //extensions to be tested without Chrome. Unfortunately as a side effect of this CL, a lot of tests that did not follow IWYU, started breaking on compile - since they were depending on the include in extension_test_observer.h. I've added sky@ as a top level reviewer for owners approval for the changes made to fix all of these tests. Reviews, rdevlin.cronin@ - everything sky@ - includes added to fix broken tests. michaelpg@ - FYI R=rdevlin.cronin@chromium.org, sky@chromium.org BUG=505926 Committed: https://crrev.com/f65a72a71bea7aa1070c884e01ac24b91b45193f Cr-Commit-Position: refs/heads/master@{#426304}

Patch Set 1 #

Total comments: 48

Patch Set 2 : Merge branch 'master' of https://chromium.googlesource.com/chromium/src into tests_refactor #

Patch Set 3 : . #

Total comments: 16

Patch Set 4 : . #

Patch Set 5 : moar iwyu test fixes #

Patch Set 6 : add back GetBrowserContext to fix tests #

Patch Set 7 : . #

Patch Set 8 : fix bug in ActivityLogApiTest.TriggerEvent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -1005 lines) Patch
M chrome/browser/apps/app_browsertest_util.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/apps/app_window_browsertest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/apps/guest_view/web_view_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/first_run/drive_first_run_browsertest.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/easy_unlock/bootstrap_browsertest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/signin/device_id_browsertest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/signin/oauth2_browsertest.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/activity_log/activity_log_browsertest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/activity_log_private/activity_log_private_apitest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/extension_action/browser_action_interactive_test.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/app_background_page_apitest.cc View 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/browser/extensions/chrome_extension_test_notification_observer.h View 1 2 3 1 chunk +20 lines, -90 lines 0 comments Download
A + chrome/browser/extensions/chrome_extension_test_notification_observer.cc View 1 2 3 4 5 4 chunks +43 lines, -247 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 2 3 4 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_crash_recovery_browsertest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
D chrome/browser/extensions/extension_test_notification_observer.h View 1 chunk +0 lines, -126 lines 0 comments Download
D chrome/browser/extensions/extension_test_notification_observer.cc View 1 chunk +0 lines, -328 lines 0 comments Download
M chrome/browser/extensions/isolated_app_browsertest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/process_manager_browsertest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/speech/extension_api/tts_extension_apitest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_views_browsertest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa_browsertest.mm View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac_interactive_uitest.mm View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_action_view_interactive_uitest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_browsertest.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 4 chunks +6 lines, -4 lines 0 comments Download
M extensions/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/api/runtime/runtime_apitest.cc View 1 chunk +1 line, -0 lines 0 comments Download
A + extensions/test/extension_test_notification_observer.h View 1 2 3 4 5 5 chunks +57 lines, -41 lines 0 comments Download
A + extensions/test/extension_test_notification_observer.cc View 1 2 3 9 chunks +39 lines, -158 lines 0 comments Download

Messages

Total messages: 32 (14 generated)
Rahul Chaturvedi
4 years, 2 months ago (2016-10-05 23:45:46 UTC) #1
Devlin
Mostly just nits. Can you also trim your CL description a bit? Let's focus the ...
4 years, 2 months ago (2016-10-06 15:52:17 UTC) #2
sky
LGTM
4 years, 2 months ago (2016-10-06 21:10:22 UTC) #3
Rahul Chaturvedi
https://codereview.chromium.org/2393343002/diff/1/chrome/browser/chromeos/login/signin/oauth2_browsertest.cc File chrome/browser/chromeos/login/signin/oauth2_browsertest.cc (right): https://codereview.chromium.org/2393343002/diff/1/chrome/browser/chromeos/login/signin/oauth2_browsertest.cc#newcode768 chrome/browser/chromeos/login/signin/oauth2_browsertest.cc:768: observer_.reset(new ExtensionBrowserTestNotificationObserver(browser)); On 2016/10/06 15:52:16, Devlin wrote: > iwyu? ...
4 years, 2 months ago (2016-10-11 20:12:35 UTC) #4
Devlin
https://codereview.chromium.org/2393343002/diff/1/chrome/browser/extensions/extension_browser_test_notification_observer.h File chrome/browser/extensions/extension_browser_test_notification_observer.h (right): https://codereview.chromium.org/2393343002/diff/1/chrome/browser/extensions/extension_browser_test_notification_observer.h#newcode25 chrome/browser/extensions/extension_browser_test_notification_observer.h:25: On 2016/10/11 20:12:34, Rahul Chaturvedi wrote: > On 2016/10/06 ...
4 years, 2 months ago (2016-10-11 22:53:46 UTC) #5
Rahul Chaturvedi
https://codereview.chromium.org/2393343002/diff/1/chrome/browser/extensions/extension_browser_test_notification_observer.h File chrome/browser/extensions/extension_browser_test_notification_observer.h (right): https://codereview.chromium.org/2393343002/diff/1/chrome/browser/extensions/extension_browser_test_notification_observer.h#newcode25 chrome/browser/extensions/extension_browser_test_notification_observer.h:25: On 2016/10/11 22:53:45, Devlin wrote: > On 2016/10/11 20:12:34, ...
4 years, 2 months ago (2016-10-12 20:25:54 UTC) #6
Devlin
lgtm as long as the bots are happy
4 years, 2 months ago (2016-10-12 22:51:19 UTC) #7
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/2393343002/60001
4 years, 2 months ago (2016-10-12 22:54:05 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/313519)
4 years, 2 months ago (2016-10-12 23:08:40 UTC) #12
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/2393343002/80001
4 years, 2 months ago (2016-10-18 19:40:55 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/317018)
4 years, 2 months ago (2016-10-18 20:22:43 UTC) #17
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/2393343002/120001
4 years, 2 months ago (2016-10-18 21:00:51 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/255407)
4 years, 2 months ago (2016-10-18 21:57:09 UTC) #22
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/2393343002/120001
4 years, 2 months ago (2016-10-18 23:32:03 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/245835)
4 years, 2 months ago (2016-10-19 06:05:38 UTC) #26
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/2393343002/140001
4 years, 2 months ago (2016-10-19 20:46:47 UTC) #29
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 2 months ago (2016-10-19 22:17:13 UTC) #30
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:12:12 UTC) #32
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/f65a72a71bea7aa1070c884e01ac24b91b45193f
Cr-Commit-Position: refs/heads/master@{#426304}

Powered by Google App Engine
This is Rietveld 408576698