Add accessor methods to neighbor/child/router objects. (#1577)

This commit is contained in:
Jonathan Hui
2017-04-11 13:25:11 -07:00
committed by GitHub
parent 92106b87c8
commit a5c3fb6aaf
12 changed files with 1176 additions and 606 deletions
+2 -2
View File
@@ -95,10 +95,10 @@ void test_packed_union()
void test_packed_enum()
{
Thread::Neighbor neighbor;
neighbor.mState = Thread::Neighbor::kStateValid;
neighbor.SetState(Thread::Neighbor::kStateValid);
// Make sure that when we read the 3 bit field it is read as unsigned, so it return '4'
VerifyOrQuit(neighbor.mState == Thread::Neighbor::kStateValid, "Toolchain::OT_TOOL_PACKED failed 4\n");
VerifyOrQuit(neighbor.GetState() == Thread::Neighbor::kStateValid, "Toolchain::OT_TOOL_PACKED failed 4\n");
}
void test_addr_sizes()