• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_CookiesAllowedForUrls'
7TIME = 'SHORT'
8TEST_CATEGORY = 'General'
9TEST_CLASS = 'enterprise'
10TEST_TYPE = 'client'
11
12DOC = '''
13Verify effects of CookiesAllowedForUrls policy.
14
15This test verifies the effect of the CookiesAllowedForUrls user policy on
16Chrome OS client behavior when the DefaultCookiesSetting user policy is set
17to 2. It exercises a range of policy values using four unique test cases:
18NotSet_CookiesBlocked, SingleUrl_CookiesAllowed, MultipleUrls_CookiesAllowed,
19and MultipleUrls_CookiesBlocked. See the test file for a full description of
20what each test case does.
21
22A test case shall pass iff the browser allows cookies on a test page with an
23URL that matches one or more of the URL patterns listed in
24CookiesAllowedForUrls. It shall fail if the browser:
25- Blocks cookies on a test page with an URL that matches one or more of the
26  URL patterns listed in the CookiesAllowedForUrls policy value.
27- Allows cookies on a test page with an URL that does not match any of the
28  URL patterns listed in the CookiesAllowedForUrls 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_CookiesAllowedForUrls', **args_dict)
38