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

Issue 189683002: Add TestExtensionsBrowserClient, move ProcessManagerTest to //extensions (Closed)

Created:
6 years, 9 months ago by James Cook
Modified:
6 years, 9 months ago
Reviewers:
Yoyo Zhou
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Add TestExtensionsBrowserClient, move ProcessManagerTest to //extensions Rewrite ProcessManagerTest to eliminate the TestingProfile dependency and switch to TestBrowserContext. This requires an ExtensionsBrowserClient that knows how to associate an incognito context with a non-incognito context. I added this in hopes it would be useful for converting other tests away from TestingProfile. BUG=315855 TEST=unit_tests ProcessManager* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255990

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebase (pm_test) #

Total comments: 2

Patch Set 3 : review comments (pm_test) #

Patch Set 4 : review comments 2 (pm_test) #

Patch Set 5 : rebase (pm_test) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -226 lines) Patch
D chrome/browser/extensions/process_manager_unittest.cc View 1 chunk +0 lines, -143 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M extensions/browser/process_manager.h View 1 chunk +7 lines, -0 lines 0 comments Download
M extensions/browser/process_manager.cc View 3 chunks +20 lines, -5 lines 0 comments Download
A + extensions/browser/process_manager_unittest.cc View 1 2 1 chunk +71 lines, -50 lines 0 comments Download
A + extensions/browser/test_extensions_browser_client.h View 3 chunks +21 lines, -27 lines 0 comments Download
A extensions/browser/test_extensions_browser_client.cc View 1 chunk +136 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
James Cook
yoz, PTAL I could have let this test continue to rely on chrome/test/base/testing_profile.h but I ...
6 years, 9 months ago (2014-03-07 01:04:08 UTC) #1
Yoyo Zhou
LGTM https://chromiumcodereview.appspot.com/189683002/diff/20001/extensions/browser/process_manager_unittest.cc File extensions/browser/process_manager_unittest.cc (right): https://chromiumcodereview.appspot.com/189683002/diff/20001/extensions/browser/process_manager_unittest.cc#newcode130 extensions/browser/process_manager_unittest.cc:130: TEST_F(ProcessManagerTest, ProcessGrouping) { I'm slightly concerned that this ...
6 years, 9 months ago (2014-03-07 21:57:14 UTC) #2
James Cook
https://chromiumcodereview.appspot.com/189683002/diff/20001/extensions/browser/process_manager_unittest.cc File extensions/browser/process_manager_unittest.cc (right): https://chromiumcodereview.appspot.com/189683002/diff/20001/extensions/browser/process_manager_unittest.cc#newcode130 extensions/browser/process_manager_unittest.cc:130: TEST_F(ProcessManagerTest, ProcessGrouping) { On 2014/03/07 21:57:15, Yoyo Zhou wrote: ...
6 years, 9 months ago (2014-03-07 22:16:25 UTC) #3
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 9 months ago (2014-03-07 22:20:46 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/189683002/50001
6 years, 9 months ago (2014-03-07 22:24:27 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/189683002/50001
6 years, 9 months ago (2014-03-08 11:07:09 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-08 14:18:38 UTC) #7
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=234351
6 years, 9 months ago (2014-03-08 14:18:38 UTC) #8
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 9 months ago (2014-03-09 16:06:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/189683002/70001
6 years, 9 months ago (2014-03-09 16:06:15 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-09 18:09:17 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=278351
6 years, 9 months ago (2014-03-09 18:09:18 UTC) #12
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 9 months ago (2014-03-10 04:15:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/189683002/70001
6 years, 9 months ago (2014-03-10 04:16:04 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-10 09:42:17 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=278459
6 years, 9 months ago (2014-03-10 09:42:17 UTC) #16
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 9 months ago (2014-03-10 15:56:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/189683002/70001
6 years, 9 months ago (2014-03-10 17:09:50 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/189683002/70001
6 years, 9 months ago (2014-03-10 17:45:25 UTC) #19
commit-bot: I haz the power
6 years, 9 months ago (2014-03-10 18:34:11 UTC) #20
Message was sent while issue was closed.
Change committed as 255990

Powered by Google App Engine
This is Rietveld 408576698