Lines Matching +full:- +full:10
52 VerifyOrQuit(props->mPowerSupply == OPENTHREAD_CONFIG_DEVICE_POWER_SUPPLY); in TestDefaultDeviceProperties()
53 VerifyOrQuit(!props->mSupportsCcm); in TestDefaultDeviceProperties()
54 VerifyOrQuit(!props->mIsUnstable); in TestDefaultDeviceProperties()
55 …VerifyOrQuit(props->mLeaderWeightAdjustment == OPENTHREAD_CONFIG_MLE_DEFAULT_LEADER_WEIGHT_ADJUSTM… in TestDefaultDeviceProperties()
57 VerifyOrQuit(props->mIsBorderRouter); in TestDefaultDeviceProperties()
59 VerifyOrQuit(!props->mIsBorderRouter); in TestDefaultDeviceProperties()
64 switch (props->mPowerSupply) in TestDefaultDeviceProperties()
67 weight -= 8; in TestDefaultDeviceProperties()
75 weight -= 4; in TestDefaultDeviceProperties()
79 weight += props->mIsBorderRouter ? 1 : 0; in TestDefaultDeviceProperties()
88 static constexpr int8_t kMinAdjustment = -16; in CompareDevicePropertiess()
134 // Include non-zero `mLeaderWeightAdjustment`. in TestLeaderWeightCalculation()
135 {{OT_POWER_SUPPLY_BATTERY, true, false, false, 10}, 67}, in TestLeaderWeightCalculation()
136 {{OT_POWER_SUPPLY_EXTERNAL, true, false, false, 10}, 75}, in TestLeaderWeightCalculation()
137 {{OT_POWER_SUPPLY_EXTERNAL_STABLE, true, false, false, 10}, 79}, in TestLeaderWeightCalculation()
138 {{OT_POWER_SUPPLY_EXTERNAL_UNSTABLE, true, false, false, 10}, 71}, in TestLeaderWeightCalculation()
140 {{OT_POWER_SUPPLY_BATTERY, false, false, false, -10}, 46}, in TestLeaderWeightCalculation()
141 {{OT_POWER_SUPPLY_EXTERNAL, false, false, false, -10}, 54}, in TestLeaderWeightCalculation()
142 {{OT_POWER_SUPPLY_EXTERNAL_STABLE, false, false, false, -10}, 58}, in TestLeaderWeightCalculation()
143 {{OT_POWER_SUPPLY_EXTERNAL_UNSTABLE, false, false, false, -10}, 50}, in TestLeaderWeightCalculation()
146 // Make sure it clamps to -16 and +16. in TestLeaderWeightCalculation()
152 {{OT_POWER_SUPPLY_BATTERY, true, false, false, -20}, 41}, in TestLeaderWeightCalculation()
153 {{OT_POWER_SUPPLY_EXTERNAL, true, false, false, -20}, 49}, in TestLeaderWeightCalculation()
154 {{OT_POWER_SUPPLY_EXTERNAL_STABLE, true, false, false, -20}, 53}, in TestLeaderWeightCalculation()
155 {{OT_POWER_SUPPLY_EXTERNAL_UNSTABLE, true, false, false, -20}, 45}, in TestLeaderWeightCalculation()