Lines Matching refs:instance
42 Instance *instance; in TestDefaultDeviceProperties() local
46 instance = static_cast<Instance *>(testInitInstance()); in TestDefaultDeviceProperties()
47 VerifyOrQuit(instance != nullptr); in TestDefaultDeviceProperties()
49 props = otThreadGetDeviceProperties(instance); in TestDefaultDeviceProperties()
80 VerifyOrQuit(otThreadGetLocalLeaderWeight(instance) == weight); in TestDefaultDeviceProperties()
157 Instance *instance; in TestLeaderWeightCalculation() local
159 instance = static_cast<Instance *>(testInitInstance()); in TestLeaderWeightCalculation()
160 VerifyOrQuit(instance != nullptr); in TestLeaderWeightCalculation()
164 otThreadSetDeviceProperties(instance, &testCase.mDeviceProperties); in TestLeaderWeightCalculation()
165 … CompareDevicePropertiess(testCase.mDeviceProperties, *otThreadGetDeviceProperties(instance)); in TestLeaderWeightCalculation()
166 VerifyOrQuit(otThreadGetLocalLeaderWeight(instance) == testCase.mExpectedLeaderWeight); in TestLeaderWeightCalculation()