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

Unified Diff: chrome/test/functional/chromeos_onc.py

Issue 9791023: Allow setting of user and device policies in functional tests (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments addressed. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/functional/policy.py » ('j') | chrome/test/pyautolib/asn1der.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/chromeos_onc.py
diff --git a/chrome/test/functional/chromeos_onc.py b/chrome/test/functional/chromeos_onc.py
index 542c0df985d24da91118dd6e0f2cf7ad9d59287e..0d8c0501f61db18cc0cfd4e796018081ee842fa2 100644
--- a/chrome/test/functional/chromeos_onc.py
+++ b/chrome/test/functional/chromeos_onc.py
@@ -25,6 +25,8 @@ class ChromeosONC(policy_base.PolicyTestBase):
def setUp(self):
policy_base.PolicyTestBase.setUp(self)
self.CleanupFlimflamDirsOnChromeOS()
+ if self.IsChromeOS():
Nirnimesh 2012/04/05 19:05:30 This file applies to chromeos only. This if is red
bartfab (slow) 2012/04/10 15:27:20 Done.
+ self.LoginWithTestAccount()
def _ReadONCFileAndSet(self, filename):
"""Reads the specified ONC file and sends it as a policy.
@@ -34,7 +36,7 @@ class ChromeosONC(policy_base.PolicyTestBase):
all be stored in the path defined by ONC_PATH.
"""
with open(os.path.join(self.ONC_PATH, filename)) as fp:
- self.SetPolicies({'OpenNetworkConfiguration': fp.read()})
+ self.SetUserPolicy({'OpenNetworkConfiguration': fp.read()})
def _VerifyRememberedWifiNetworks(self, wifi_expect):
"""Verify the list of remembered networks contains those in wifi_expect.
« no previous file with comments | « no previous file | chrome/test/functional/policy.py » ('j') | chrome/test/pyautolib/asn1der.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698