blob: 656a19cf3883aec3145728563dc0a0b543e936c9 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = "The Chromium OS Authors"
NAME = "security_BundledExtensions"
PURPOSE = "Verify bundled extensions/their permissions have all been approved"
CRITERIA = """
This test will fail if the set of expected extensions -- and every
permission requested by those extensions -- does not exactly match
the expected set.
"""
SUITE = "security"
TIME = "SHORT"
TEST_CATEGORY = "Functional"
TEST_CLASS = "security"
TEST_TYPE = "client"
DOC = """
This test uses pyauto to ask Chrome what extensions it has installed,
what their effective permissions are, etc. Then it compares those to a
list and fails (with various helpful details) if there is not an exact match.
"""
job.run_test('security_BundledExtensions', creds='$default',
tag='ComponentExtensionPermissions',
mode='ComponentExtensionPermissions')
job.run_test('security_BundledExtensions', creds='$default',
tag='BundledCrxPermissions',
mode='BundledCrxPermissions')
job.run_test('security_BundledExtensions', creds='$default',
tag='NoUnexpectedExtensions',
mode='NoUnexpectedExtensions')