1# Copyright 2015 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5AUTHOR = 'krishnargv' 6NAME = 'policy_CookiesBlockedForUrls' 7TIME = 'SHORT' 8TEST_CATEGORY = 'General' 9TEST_CLASS = 'enterprise' 10TEST_TYPE = 'client' 11 12DOC = ''' 13Verify effects of CookiesBlockedForUrls policy on client behavior. 14 15This test verifies the effect of the CookiesBlockedForUrls user policy on 16Chrome OS client behavior when the DefaultCookiesSetting user policy is set 17to 1. It exercises a range of policy values using four unique test cases: 18NotSet_CookiesAllowed, SingleUrl_CookiesBlocked, MultipleUrls_CookiesBlocked, 19and MultipleUrls_CookiesAllowed. See the test file for a full description of 20what each test case does. 21 22A test case shall pass iff the browser blocks cookies on a test page with an 23URL that matches one or more of the URL patterns listed in 24CookiesBlockedForUrls. It shall fail if the browser: 25- Allows cookies on a test page with an Url that matches one or more of the 26 URL patterns listed in the CookiesBlockedForUrls policy value. 27- Blocks cookies on a test page with an URL that does not match any of the 28 URL patterns listed in the CookiesBlockedForUrls policy value. 29 30This control file allows CloudDPC E2E tests to run any test case defined in 31this test via command-line. 32 33''' 34 35args_dict = utils.args_to_dict(args) 36 37job.run_test('policy_CookiesBlockedForUrls', **args_dict) 38