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

Issue 234563003: extensions: Introduce a fake ExtensionsClient implementation. (Closed)

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

Description

extensions: Introduce a fake ExtensionsClient implementation. And hook it up in our test suite. The following tests still fail or crash, but for other reasons other than g_client being NULL. Now they are more about FATAL:api_permission_set.cc(125)] Check failed: permission_info. 8 tests failed: ExtensionURLPatternTest.ConvertToExplicitSchemes ExtensionURLPatternTest.GetAsString ExtensionURLPatternTest.Match13 ExtensionURLPatternTest.Match19 ExtensionURLPatternTest.Match9 ExtensionURLPatternTest.Ports FileUtilTest.ExtensionResourceURLToFilePath FileUtilTest.ExtensionURLToRelativeFilePath 9 tests crashed: APIPermissionSetTest.CreateDifference APIPermissionSetTest.CreateIntersection APIPermissionSetTest.CreateUnion APIPermissionSetTest.General APIPermissionSetTest.IPC APIPermissionSetTest.ImplicitPermissions ManifestHandlerTest.DependentHandlers ManifestHandlerTest.FailingHandlers ManifestHandlerTest.Validate BUG=348066 TEST=extensions_unittests R=jamescook@chromium.org,yoz@chromium.org NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263573

Patch Set 1 #

Patch Set 2 : initialize on testsuite #

Total comments: 10

Patch Set 3 : address yoz review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -7 lines) Patch
M chrome/common/extensions/permissions/chrome_permission_message_provider.cc View 4 chunks +0 lines, -4 lines 0 comments Download
M extensions/extensions.gyp View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M extensions/test/extensions_unittests_main.cc View 1 3 chunks +7 lines, -2 lines 0 comments Download
A extensions/test/test_extensions_client.h View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
A extensions/test/test_extensions_client.cc View 1 2 1 chunk +93 lines, -0 lines 0 comments Download
A extensions/test/test_permission_message_provider.h View 1 chunk +38 lines, -0 lines 0 comments Download
A extensions/test/test_permission_message_provider.cc View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
A extensions/test/test_permissions_provider.h View 1 chunk +28 lines, -0 lines 0 comments Download
A extensions/test/test_permissions_provider.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
tfarina
This is ready for review now. 1:59 AM here, heh :/. PTAL. Thanks, https://codereview.chromium.org/234563003/diff/20001/extensions/test/test_permissions_provider.cc File ...
6 years, 8 months ago (2014-04-11 05:00:26 UTC) #1
James Cook
Looking good, one question. Yoz, we need to think again about how to provide either ...
6 years, 8 months ago (2014-04-11 16:26:49 UTC) #2
Yoyo Zhou
LGTM, I'll look into the design for permissions. https://codereview.chromium.org/234563003/diff/20001/extensions/test/extensions_unittests_main.cc File extensions/test/extensions_unittests_main.cc (right): https://codereview.chromium.org/234563003/diff/20001/extensions/test/extensions_unittests_main.cc#newcode38 extensions/test/extensions_unittests_main.cc:38: base::TestSuite::Shutdown(); ...
6 years, 8 months ago (2014-04-11 21:10:29 UTC) #3
tfarina
https://codereview.chromium.org/234563003/diff/20001/extensions/test/test_permission_message_provider.cc File extensions/test/test_permission_message_provider.cc (right): https://codereview.chromium.org/234563003/diff/20001/extensions/test/test_permission_message_provider.cc#newcode19 extensions/test/test_permission_message_provider.cc:19: return messages; On 2014/04/11 21:10:29, Yoyo Zhou wrote: > ...
6 years, 8 months ago (2014-04-13 21:40:52 UTC) #4
tfarina
The CQ bit was checked by tfarina@chromium.org
6 years, 8 months ago (2014-04-13 21:40:57 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/234563003/40001
6 years, 8 months ago (2014-04-13 21:41:04 UTC) #6
commit-bot: I haz the power
6 years, 8 months ago (2014-04-14 00:50:38 UTC) #7
Message was sent while issue was closed.
Change committed as 263573

Powered by Google App Engine
This is Rietveld 408576698