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

Issue 594003002: Added unit tests for ChromePermissionMessageProvider (Closed)

Created:
6 years, 2 months ago by sashab
Modified:
6 years, 2 months ago
Reviewers:
scheib
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Added unit tests for ChromePermissionMessageProvider Added a unittest for ChromePermissionMessageProvider that ensures permission messages currently coalesce and form as expected. Some of the tests are purposely for broken functionality, just to ensure this functionality exists (and will later be fixed). The tests will be modified once the new model changes this permission behaviour. BUG=398257 Committed: https://crrev.com/84817f9ba08f05f361721ae2ed6567d59894265c Cr-Commit-Position: refs/heads/master@{#297148}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Separated unit tests from integration tests #

Total comments: 8

Patch Set 3 : Fixed up comments/naming #

Unified diffs Side-by-side diffs Delta from patch set Stats (+405 lines, -4 lines) Patch
A chrome/browser/extensions/permission_messages_unittest.cc View 1 2 1 chunk +273 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 4 chunks +7 lines, -4 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_permission_message_provider.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/common/extensions/permissions/chrome_permission_message_provider_unittest.cc View 1 1 chunk +102 lines, -0 lines 0 comments Download
M extensions/common/test_util.h View 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/common/test_util.cc View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
sashab
Putting unit tests in place to verify the existing functionality/problems before changing the permissions. Will ...
6 years, 2 months ago (2014-09-23 04:52:56 UTC) #2
scheib
https://codereview.chromium.org/594003002/diff/1/chrome/common/extensions/permissions/chrome_permission_message_provider_unittest.cc File chrome/common/extensions/permissions/chrome_permission_message_provider_unittest.cc (right): https://codereview.chromium.org/594003002/diff/1/chrome/common/extensions/permissions/chrome_permission_message_provider_unittest.cc#newcode23 chrome/common/extensions/permissions/chrome_permission_message_provider_unittest.cc:23: #include "ui/base/l10n/l10n_util.h" On 2014/09/23 04:52:56, sasha_b wrote: > Some ...
6 years, 2 months ago (2014-09-23 17:10:54 UTC) #3
sashab
https://codereview.chromium.org/594003002/diff/1/chrome/common/extensions/permissions/chrome_permission_message_provider_unittest.cc File chrome/common/extensions/permissions/chrome_permission_message_provider_unittest.cc (right): https://codereview.chromium.org/594003002/diff/1/chrome/common/extensions/permissions/chrome_permission_message_provider_unittest.cc#newcode23 chrome/common/extensions/permissions/chrome_permission_message_provider_unittest.cc:23: #include "ui/base/l10n/l10n_util.h" On 2014/09/23 17:10:54, scheib wrote: > On ...
6 years, 2 months ago (2014-09-24 23:23:49 UTC) #4
scheib
lgtm with some requests to improve comments and naming. https://codereview.chromium.org/594003002/diff/20001/chrome/browser/extensions/permission_messages_unittest.cc File chrome/browser/extensions/permission_messages_unittest.cc (right): https://codereview.chromium.org/594003002/diff/20001/chrome/browser/extensions/permission_messages_unittest.cc#newcode34 chrome/browser/extensions/permission_messages_unittest.cc:34: ...
6 years, 2 months ago (2014-09-25 17:55:45 UTC) #5
sashab
https://codereview.chromium.org/594003002/diff/20001/chrome/browser/extensions/permission_messages_unittest.cc File chrome/browser/extensions/permission_messages_unittest.cc (right): https://codereview.chromium.org/594003002/diff/20001/chrome/browser/extensions/permission_messages_unittest.cc#newcode34 chrome/browser/extensions/permission_messages_unittest.cc:34: // Some of these tests are currently 'anti-tests' - ...
6 years, 2 months ago (2014-09-29 08:03:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/594003002/40001
6 years, 2 months ago (2014-09-29 08:04:21 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 7eb79c4c5f019a40782d59d3aa55eb55faf74cae
6 years, 2 months ago (2014-09-29 08:07:51 UTC) #9
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 08:08:40 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/84817f9ba08f05f361721ae2ed6567d59894265c
Cr-Commit-Position: refs/heads/master@{#297148}

Powered by Google App Engine
This is Rietveld 408576698