Lines Matching refs:table
298 ChildTable *table; in TestChildTable() local
304 table = &sInstance->Get<ChildTable>(); in TestChildTable()
309 VerifyOrQuit(table->GetMaxChildrenAllowed() == table->GetMaxChildren(), in TestChildTable()
314 VerifyOrQuit(table->HasChildren(filter) == false); in TestChildTable()
315 VerifyOrQuit(table->GetNumChildren(filter) == 0); in TestChildTable()
322 VerifyChildTableContent(*table, 0, testChildList); in TestChildTable()
324 VerifyOrQuit(table->GetMaxChildrenAllowed() >= testListLength, in TestChildTable()
332 child = table->GetNewChild(); in TestChildTable()
339 VerifyChildTableContent(*table, i + 1, testChildList); in TestChildTable()
345 table->Clear(); in TestChildTable()
347 VerifyChildTableContent(*table, 0, testChildList); in TestChildTable()
354 child = table->GetNewChild(); in TestChildTable()
361 VerifyChildTableContent(*table, testListLength - i + 1, &testChildList[i - 1]); in TestChildTable()
367 error = table->SetMaxChildrenAllowed(kMaxChildren - 1); in TestChildTable()
370 table->Clear(); in TestChildTable()
371 error = table->SetMaxChildrenAllowed(kMaxChildren + 1); in TestChildTable()
374 error = table->SetMaxChildrenAllowed(0); in TestChildTable()
377 error = table->SetMaxChildrenAllowed(testNumAllowedChildren); in TestChildTable()
379 VerifyOrQuit(table->GetMaxChildrenAllowed() == testNumAllowedChildren); in TestChildTable()
383 Child *child = table->GetNewChild(); in TestChildTable()
389 VerifyOrQuit(table->GetNewChild() == nullptr, "GetNewChild() did not fail when table was full"); in TestChildTable()