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

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: Oops... turns out these constants are reference by other files after all. Created 8 years, 8 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
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..4d83c98334e4892e2189337df461b87cccdfd40a 100644
--- a/chrome/test/functional/chromeos_onc.py
+++ b/chrome/test/functional/chromeos_onc.py
@@ -25,6 +25,7 @@ class ChromeosONC(policy_base.PolicyTestBase):
def setUp(self):
policy_base.PolicyTestBase.setUp(self)
self.CleanupFlimflamDirsOnChromeOS()
+ self.LoginWithTestAccount()
def _ReadONCFileAndSet(self, filename):
"""Reads the specified ONC file and sends it as a policy.
@@ -34,7 +35,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.

Powered by Google App Engine
This is Rietveld 408576698