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. |