Fixes of coding style
This commit is contained in:
@@ -134,9 +134,7 @@ operator== (const IeMeshId & a, const IeMeshId & b)
|
||||
size++;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
;
|
||||
|
||||
};
|
||||
std::ostream &
|
||||
operator << (std::ostream &os, const IeMeshId &meshId)
|
||||
{
|
||||
|
||||
@@ -74,9 +74,7 @@ bool
|
||||
operator== (const IeLinkMetricReport & a, const IeLinkMetricReport & b)
|
||||
{
|
||||
return (a.m_metric == b.m_metric);
|
||||
}
|
||||
;
|
||||
|
||||
};
|
||||
#ifdef RUN_SELF_TESTS
|
||||
|
||||
/// Built-in self test for IeLinkMetricReport
|
||||
|
||||
@@ -159,38 +159,38 @@ operator== (const IePerr & a, const IePerr & b)
|
||||
|
||||
/// Built-in self test for IePreq
|
||||
struct IePerrBist : public IeTest
|
||||
{
|
||||
IePerrBist () :
|
||||
{
|
||||
IePerrBist () :
|
||||
IeTest ("Mesh/802.11s/IE/PERR")
|
||||
{
|
||||
}
|
||||
virtual bool
|
||||
RunTests ();
|
||||
};
|
||||
{
|
||||
}
|
||||
virtual bool
|
||||
RunTests ();
|
||||
};
|
||||
|
||||
/// Test instance
|
||||
static IePerrBist g_IePerrBist;
|
||||
|
||||
bool
|
||||
IePerrBist::RunTests ()
|
||||
{
|
||||
bool result (true);
|
||||
// create test information element
|
||||
IePerr a;
|
||||
IePerr::FailedDestination dest;
|
||||
dest.destination = Mac48Address ("11:22:33:44:55:66");
|
||||
dest.seqnum = 1;
|
||||
a.AddAddressUnit (dest);
|
||||
dest.destination = Mac48Address ("10:20:30:40:50:60");
|
||||
dest.seqnum = 2;
|
||||
a.AddAddressUnit (dest);
|
||||
dest.destination = Mac48Address ("01:02:03:04:05:06");
|
||||
dest.seqnum = 3;
|
||||
a.AddAddressUnit (dest);
|
||||
{
|
||||
bool result (true);
|
||||
// create test information element
|
||||
IePerr a;
|
||||
IePerr::FailedDestination dest;
|
||||
dest.destination = Mac48Address ("11:22:33:44:55:66");
|
||||
dest.seqnum = 1;
|
||||
a.AddAddressUnit (dest);
|
||||
dest.destination = Mac48Address ("10:20:30:40:50:60");
|
||||
dest.seqnum = 2;
|
||||
a.AddAddressUnit (dest);
|
||||
dest.destination = Mac48Address ("01:02:03:04:05:06");
|
||||
dest.seqnum = 3;
|
||||
a.AddAddressUnit (dest);
|
||||
|
||||
result = result && TestRoundtripSerialization (a);
|
||||
return result;
|
||||
}
|
||||
result = result && TestRoundtripSerialization (a);
|
||||
return result;
|
||||
}
|
||||
|
||||
#endif // RUN_SELF_TESTS
|
||||
} // namespace dot11s
|
||||
|
||||
@@ -188,8 +188,7 @@ IePrep::GetInformationSize () const
|
||||
+ 6 //Originator address
|
||||
+ 4; //Originator seqno
|
||||
return retval;
|
||||
}
|
||||
;
|
||||
};
|
||||
void
|
||||
IePrep::PrintInformation (std::ostream& os) const
|
||||
{
|
||||
@@ -215,8 +214,7 @@ struct IePrepBist : public IeTest
|
||||
IePrepBist () :
|
||||
IeTest ("Mesh/802.11s/IE/PREP")
|
||||
{
|
||||
}
|
||||
;
|
||||
};
|
||||
virtual bool
|
||||
RunTests ();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user