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

Issue 9585034: Add extension policy tests (Closed)

Created:
8 years, 9 months ago by krisr
Modified:
8 years, 9 months ago
Reviewers:
frankf, xot
CC:
chromium-reviews, scottzcr
Visibility:
Public.

Description

Add extension policy tests TEST=Ran it! BUG=116642 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=126670

Patch Set 1 : #

Total comments: 10

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -2 lines) Patch
M chrome/test/functional/PYAUTO_TESTS View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/functional/policy.py View 1 2 3 4 5 6 3 chunks +131 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
krisr
8 years, 9 months ago (2012-03-03 01:41:13 UTC) #1
frankf
https://chromiumcodereview.appspot.com/9585034/diff/5001/chrome/test/functional/policy.py File chrome/test/functional/policy.py (right): https://chromiumcodereview.appspot.com/9585034/diff/5001/chrome/test/functional/policy.py#newcode199 chrome/test/functional/policy.py:199: _screen_capture_crx_id = 'cpngackimfmofbokmjmljamhdncknpmg' constants should be capital. https://chromiumcodereview.appspot.com/9585034/diff/5001/chrome/test/functional/policy.py#newcode201 chrome/test/functional/policy.py:201: ...
8 years, 9 months ago (2012-03-06 22:54:41 UTC) #2
frankf
Also make your description more descriptive.
8 years, 9 months ago (2012-03-06 22:55:01 UTC) #3
krisr
PTAL On Tue, Mar 6, 2012 at 2:55 PM, <frankf@chromium.org> wrote: > Also make your ...
8 years, 9 months ago (2012-03-13 02:20:58 UTC) #4
frankf
Please run gpylint. https://chromiumcodereview.appspot.com/9585034/diff/11001/chrome/test/functional/policy.py File chrome/test/functional/policy.py (right): https://chromiumcodereview.appspot.com/9585034/diff/11001/chrome/test/functional/policy.py#newcode202 chrome/test/functional/policy.py:202: """Returns the complete path to a ...
8 years, 9 months ago (2012-03-14 00:25:25 UTC) #5
krisr
PTAL On Tue, Mar 13, 2012 at 5:25 PM, <frankf@chromium.org> wrote: > Please run gpylint. ...
8 years, 9 months ago (2012-03-14 01:16:50 UTC) #6
frankf
https://chromiumcodereview.appspot.com/9585034/diff/17002/chrome/test/functional/policy.py File chrome/test/functional/policy.py (right): https://chromiumcodereview.appspot.com/9585034/diff/17002/chrome/test/functional/policy.py#newcode199 chrome/test/functional/policy.py:199: SCREEN_CAPTURE_CRX_ID = 'cpngackimfmofbokmjmljamhdncknpmg' _GOOD_CRX_ID https://chromiumcodereview.appspot.com/9585034/diff/17002/chrome/test/functional/policy.py#newcode261 chrome/test/functional/policy.py:261: if self._CheckForExtensionByID(PolicyTest.SCREEN_CAPTURE_CRX_ID): self._SCREEN_CAPTURE_CRX_ID
8 years, 9 months ago (2012-03-14 01:41:38 UTC) #7
frankf
lgtm
8 years, 9 months ago (2012-03-14 02:21:22 UTC) #8
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
8 years, 9 months ago (2012-03-14 03:19:22 UTC) #9
xot
Other ideas... https://chromiumcodereview.appspot.com/9585034/diff/5001/chrome/test/functional/policy.py File chrome/test/functional/policy.py (right): https://chromiumcodereview.appspot.com/9585034/diff/5001/chrome/test/functional/policy.py#newcode329 chrome/test/functional/policy.py:329: Other test cases to cover: 1) Ext ...
8 years, 9 months ago (2012-03-14 15:00:13 UTC) #10
krisr
8 years, 9 months ago (2012-03-14 16:39:24 UTC) #11
On Wed, Mar 14, 2012 at 8:00 AM, <scunningham@google.com> wrote:

> Other ideas...
>
>
>
> https://chromiumcodereview.**appspot.com/9585034/diff/5001/**
>
chrome/test/functional/policy.**py<https://chromiumcodereview.appspot.com/9585034/diff/5001/chrome/test/functional/policy.py>
> File chrome/test/functional/policy.**py (right):
>
> https://chromiumcodereview.**appspot.com/9585034/diff/5001/**
>
chrome/test/functional/policy.**py#newcode329<https://chromiumcodereview.appspot.com/9585034/diff/5001/chrome/test/functional/policy.py#newcode329>
> chrome/test/functional/policy.**py:329:
> Other test cases to cover:
> 1) Ext on Forcelist cannot be removed or disabled by user (compare to
> those only on whitelist, which can be removed/disabled).
> 2) Ext on Whitelist and Forcelist behaves the same as Forcelist only.
> 3) Ext on Forcelist and Blacklist behaves the same as on Forcelist only
> (force overrides black)
> 4) Ext on Forcelist only is removed from device when removed from
> Forcelist.
> 5) Ext on Forcelist and Whitelist is not removed from device when
> removed from Forcelist.
>
> https://chromiumcodereview.**appspot.com/9585034/diff/5001/**
>
chrome/test/functional/policy.**py#newcode329<https://chromiumcodereview.appspot.com/9585034/diff/5001/chrome/test/functional/policy.py#newcode329>
> chrome/test/functional/policy.**py:329:
> InstallExtension() method says that Ext must not be already installed.
> Should maybe try:
> 1) Installing Ext on both Whitelist and Forcelist. Should fail.
>

Forcelist is broken on all platforms, I tried last night.  This needs to be
fixed before I can write those tests.


> 2) Installing Ext on Whitelist twice.
>
>
Chrome prohibits installing an extension twice, the pyauto hook throws an
exception when you attempt this.


>
https://chromiumcodereview.**appspot.com/9585034/<https://chromiumcodereview....
>

Powered by Google App Engine
This is Rietveld 408576698