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

Issue 9791023: Allow setting of user and device policies in functional tests (Closed)

Created:
8 years, 9 months ago by bartfab (slow)
Modified:
8 years, 8 months ago
Reviewers:
frankf, jhawkins, Nirnimesh
CC:
chromium-reviews, Mattias Nissler (ping if slow)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Allow setting of user and device policies in functional tests This CL extends the PolicyTestBase so that both user and device policies can be set. Updates to user policies now lead to an immediate refresh on all supported platforms (ChromeOS, Linux, Windows). Device policies are supported only on ChromeOS and require a session manager restart. BUG=chromium-os:28027 TEST=All affected pyauto functional tests on desktop Linux and Chrome OS: TEST=chromeos_onc.py, policy_prefs_ui.py, policy.py Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131743

Patch Set 1 #

Patch Set 2 : Tested and ready for review. #

Total comments: 16

Patch Set 3 : Comments addressed. #

Total comments: 16

Patch Set 4 : Comments addressed. Reviewer added as this CL touches the browser as well now. #

Patch Set 5 : Oops... turns out these constants are reference by other files after all. #

Total comments: 1

Patch Set 6 : Comments addressed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -391 lines) Patch
M chrome/browser/automation/testing_automation_provider.h View 1 2 3 1 chunk +0 lines, -22 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 3 chunks +0 lines, -66 lines 0 comments Download
M chrome/test/functional/chromeos_onc.py View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/test/functional/policy.py View 1 30 chunks +42 lines, -37 lines 0 comments Download
M chrome/test/functional/policy_prefs_ui.py View 1 9 chunks +34 lines, -23 lines 0 comments Download
M chrome/test/functional/policy_test_cases.py View 1 2 chunks +4 lines, -1 line 0 comments Download
A chrome/test/pyautolib/asn1der.py View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download
M chrome/test/pyautolib/policy_base.py View 1 2 3 8 chunks +181 lines, -214 lines 0 comments Download
M chrome/test/pyautolib/pyauto.py View 1 2 3 2 chunks +5 lines, -27 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
frankf
This is looking good! It'd be nice if you included the DeviceEphemeralUsersEnabled test in this ...
8 years, 8 months ago (2012-04-04 01:44:01 UTC) #1
bartfab (slow)
Inline comments addressed. Regarding the DeviceEphemeralUsersEnabled test: I am working on that as crosbug.com/27702 to ...
8 years, 8 months ago (2012-04-04 09:24:14 UTC) #2
frankf
http://codereview.chromium.org/9791023/diff/2001/chrome/test/pyautolib/policy_base.py File chrome/test/pyautolib/policy_base.py (right): http://codereview.chromium.org/9791023/diff/2001/chrome/test/pyautolib/policy_base.py#newcode134 chrome/test/pyautolib/policy_base.py:134: flags.remove('--skip-oauth-login') Previously, we explicitly registered with the DMServer and ...
8 years, 8 months ago (2012-04-04 21:44:10 UTC) #3
bartfab (slow)
http://codereview.chromium.org/9791023/diff/2001/chrome/test/pyautolib/policy_base.py File chrome/test/pyautolib/policy_base.py (right): http://codereview.chromium.org/9791023/diff/2001/chrome/test/pyautolib/policy_base.py#newcode134 chrome/test/pyautolib/policy_base.py:134: flags.remove('--skip-oauth-login') We can make things hermetic just as easily. ...
8 years, 8 months ago (2012-04-05 08:24:45 UTC) #4
Nirnimesh
I have minor comments only. http://codereview.chromium.org/9791023/diff/6003/chrome/test/functional/chromeos_onc.py File chrome/test/functional/chromeos_onc.py (right): http://codereview.chromium.org/9791023/diff/6003/chrome/test/functional/chromeos_onc.py#newcode28 chrome/test/functional/chromeos_onc.py:28: if self.IsChromeOS(): This file ...
8 years, 8 months ago (2012-04-05 19:05:30 UTC) #5
bartfab (slow)
Comments addressed. https://chromiumcodereview.appspot.com/9791023/diff/6003/chrome/test/functional/chromeos_onc.py File chrome/test/functional/chromeos_onc.py (right): https://chromiumcodereview.appspot.com/9791023/diff/6003/chrome/test/functional/chromeos_onc.py#newcode28 chrome/test/functional/chromeos_onc.py:28: if self.IsChromeOS(): On 2012/04/05 19:05:30, Nirnimesh wrote: ...
8 years, 8 months ago (2012-04-10 15:27:19 UTC) #6
bartfab (slow)
Adding jhawkins as reviewer for the browser part.
8 years, 8 months ago (2012-04-10 15:28:19 UTC) #7
Nirnimesh
LGTM https://chromiumcodereview.appspot.com/9791023/diff/20001/chrome/test/pyautolib/asn1der.py File chrome/test/pyautolib/asn1der.py (right): https://chromiumcodereview.appspot.com/9791023/diff/20001/chrome/test/pyautolib/asn1der.py#newcode16 chrome/test/pyautolib/asn1der.py:16: nit: need 2 blank lines here
8 years, 8 months ago (2012-04-10 17:48:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/9791023/22001
8 years, 8 months ago (2012-04-10 19:42:08 UTC) #9
bartfab (slow)
Oops, forgot to wait for review by jhawkins. I unchecked the commit bit. Sorry.
8 years, 8 months ago (2012-04-10 19:42:56 UTC) #10
bartfab (slow)
Since Nirnimesh has actually worked on the TestingAutomationProvider before, his review should be good for ...
8 years, 8 months ago (2012-04-11 08:35:15 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/9791023/22001
8 years, 8 months ago (2012-04-11 08:35:31 UTC) #12
commit-bot: I haz the power
8 years, 8 months ago (2012-04-11 09:58:14 UTC) #13
Change committed as 131743

Powered by Google App Engine
This is Rietveld 408576698