Home
last modified time | relevance | path

Searched refs:data_proto (Results 1 – 2 of 2) sorted by relevance

/external/autotest/client/common_lib/cros/
Dpolicy.py60 data_proto = device_management_backend_pb2.PolicyData()
61 data_proto.ParseFromString(response_proto.policy_data)
62 ownership.assert_has_device_settings(data_proto)
63 if owner: ownership.assert_username(data_proto, owner)
66 settings.ParseFromString(data_proto.policy_value)
93 data_proto = device_management_backend_pb2.PolicyData()
94 data_proto.policy_type = ownership.POLICY_TYPE
95 if owner: data_proto.username = owner
109 data_proto.policy_value = settings.SerializeToString()
110 return data_proto.SerializeToString()
/external/autotest/client/cros/
Downership.py134 def assert_has_device_settings(data_proto): argument
140 if (not data_proto.HasField("policy_type") or
141 data_proto.policy_type != POLICY_TYPE or
142 not data_proto.HasField("policy_value")):
146 def assert_username(data_proto, username): argument
153 if data_proto.username != username: