Github-Arduino/libraries/ideawu_RTC/multimedia/webrtc/system_wrappers/test/list/list.cc
void ListSanity(ListWrapper& list)
{
    if(list.Empty())
    {
      return;
    }
    ListItem* item_iter = list.First();
    // Fake a previous value for the first iteration
    int previous_value = GetStoredIntegerValue(item_iter) - 1;
    while (item_iter != NULL)
    {
        const int value = GetStoredIntegerValue(item_iter);
        FailTest(value != previous_value + 1);
        previous_value = value;
        item_iter = list.Next(item_iter);
    }
}
// The list should always be in ascending order
The list should always be in ascending order
The list should always be in ascending order
void ListSanity(ListWrapper& list)
{
    if(list.Empty())
    {
      return;
    }
    ListItem* item_iter = list.First();
    int previous_value = GetStoredIntegerValue(item_iter) - 1;
    while (item_iter != NULL)
    {
        const int value = GetStoredIntegerValue(item_iter);
        FailTest(value != previous_value + 1);
        previous_value = value;
        item_iter = list.Next(item_iter);
    }
}
void ListSanity ( ListWrapper & list ) { if ( list . Empty ( ) ) { return ; } ListItem * item_iter = list . First ( ) ; int previous_value = GetStoredIntegerValue ( item_iter ) - 1 ; while ( item_iter != NULL ) { const int value = GetStoredIntegerValue ( item_iter ) ; FailTest ( value != previous_value + 1 ) ; previous_value = value ; item_iter = list . Next ( item_iter ) ; } }
The list should always be in ascending order
The list should always be in ascending order
// Fake a previous value for the first iteration