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

Issue 460203002: Extract a MockExtensionSystem to be used with TestExtensionsBrowserClient. (Closed)

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

Description

Extract a MockExtensionSystem to be used with TestExtensionsBrowserClient. The default implementation provides no subservices. Its purpose is to fulfill a dependency (in unit tests) when other BrowserContextKeyedServices depend on an ExtensionSystem. Tests that actually need subservices can override the necessary methods to provide them. Also, this defines a MockExtensionSystemFactory template for ease of use with MockExtensionSystem subclasses. BUG=348066 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289235

Patch Set 1 : #

Total comments: 10

Patch Set 2 : jamescook #

Patch Set 3 : symbol visibility issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -59 lines) Patch
M chrome/browser/extensions/menu_manager_unittest.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M extensions/browser/lazy_background_task_queue_unittest.cc View 3 chunks +8 lines, -59 lines 0 comments Download
A extensions/browser/mock_extension_system.h View 1 1 chunk +92 lines, -0 lines 0 comments Download
A extensions/browser/mock_extension_system.cc View 1 1 chunk +98 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Yoyo Zhou
6 years, 4 months ago (2014-08-12 01:58:35 UTC) #1
Yoyo Zhou
(Note: By the way, I have successfully used this to move ExtensionApiUnittest into extensions_unittests; I'll ...
6 years, 4 months ago (2014-08-12 02:00:03 UTC) #2
James Cook
LGTM! I really like this. A couple nits. https://codereview.chromium.org/460203002/diff/20001/extensions/browser/mock_extension_system.cc File extensions/browser/mock_extension_system.cc (right): https://codereview.chromium.org/460203002/diff/20001/extensions/browser/mock_extension_system.cc#newcode7 extensions/browser/mock_extension_system.cc:7: #include ...
6 years, 4 months ago (2014-08-12 15:46:27 UTC) #3
Yoyo Zhou
https://codereview.chromium.org/460203002/diff/20001/extensions/browser/mock_extension_system.cc File extensions/browser/mock_extension_system.cc (right): https://codereview.chromium.org/460203002/diff/20001/extensions/browser/mock_extension_system.cc#newcode7 extensions/browser/mock_extension_system.cc:7: #include "content/public/browser/browser_context.h" On 2014/08/12 15:46:27, James Cook wrote: > ...
6 years, 4 months ago (2014-08-12 22:05:48 UTC) #4
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 4 months ago (2014-08-12 22:05:52 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/460203002/40001
6 years, 4 months ago (2014-08-12 22:10:46 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-13 00:34:14 UTC) #7
Yoyo Zhou
The CQ bit was unchecked by yoz@chromium.org
6 years, 4 months ago (2014-08-13 00:37:48 UTC) #8
Yoyo Zhou
The CQ bit was checked by yoz@chromium.org
6 years, 4 months ago (2014-08-13 00:45:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/460203002/60001
6 years, 4 months ago (2014-08-13 01:07:47 UTC) #10
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 09:46:25 UTC) #11
Message was sent while issue was closed.
Change committed as 289235

Powered by Google App Engine
This is Rietveld 408576698