Lines Matching refs:dict1

514 	OSDictionary *dict1, *dict2;  in testDictionary()  local
518 dict1 = OSDictionary::withCapacity(1); in testDictionary()
519 TEST_ASSERT('D', "0a", dict1); in testDictionary()
520 if (dict1) { in testDictionary()
521 dict1->release(); in testDictionary()
534 dict1 = OSDictionary::withCapacity(1); in testDictionary()
535 TEST_ASSERT('D', "1a", dict1); in testDictionary()
536 if (dict1) { in testDictionary()
537 TEST_ASSERT('D', "1b", !dict1->getCount()); in testDictionary()
538 TEST_ASSERT('D', "1c", 1 == dict1->getCapacity()); in testDictionary()
539 TEST_ASSERT('D', "1d", 1 == dict1->getCapacityIncrement()); in testDictionary()
540 TEST_ASSERT('D', "1e", 4 == dict1->setCapacityIncrement(4)); in testDictionary()
541 TEST_ASSERT('D', "1f", 4 == dict1->getCapacityIncrement()); in testDictionary()
542 TEST_ASSERT('D', "1g", 8 == dict1->ensureCapacity(5)); in testDictionary()
548 TEST_ASSERT('D', "1h", dict1->setObject((OSObject *) sym, sym)); in testDictionary()
549 TEST_ASSERT('D', "1i", (OSObject *) sym == dict1->getObject(sym)); in testDictionary()
554 TEST_ASSERT('D', "1k", 1 == dict1->getCount()); in testDictionary()
555 dict1->flushCollection(); in testDictionary()
556 TEST_ASSERT('D', "1l", !dict1->getCount()); in testDictionary()
559 dict1->release(); in testDictionary()
574 dict1 = OSDictionary::withObjects( in testDictionary()
576 TEST_ASSERT('D', "2a", dict1); in testDictionary()
582 if (dict1) { in testDictionary()
583 TEST_ASSERT('D', "2c", numSymbols == (int) dict1->getCount()); in testDictionary()
584 TEST_ASSERT('D', "2d", numSymbols == (int) dict1->getCapacity()); in testDictionary()
586 numSymbols == (int) dict1->getCapacityIncrement()); in testDictionary()
588 for (i = dict1->getCount(); --i >= 0;) { in testDictionary()
589 str = (OSString *) dict1->getObject(symCache[i]); in testDictionary()
595 dict1->release(); in testDictionary()
618 dict1 = OSDictionary::withObjects((OSObject **) symCache, in testDictionary()
621 TEST_ASSERT('D', "3a", dict1); in testDictionary()
629 if (dict1) { in testDictionary()
633 count1 += (symCache[i] == (const OSSymbol *) dict1->getObject(str)); in testDictionary()
643 count1 += (symCache[i] == (const OSSymbol *) dict1->getObject(cStr)); in testDictionary()
649 dict1->release(); in testDictionary()
676 dict1 = OSDictionary::withCapacity(1); in testDictionary()
677 TEST_ASSERT('D', "4a", dict1); in testDictionary()
678 if (dict1) { in testDictionary()
682 count1 += ((OSObject *) sym == dict1->setObject((OSObject *) sym, in testDictionary()
686 TEST_ASSERT('D', "4b", numSymbols == (int) dict1->getCount()); in testDictionary()
690 dict2 = OSDictionary::withDictionary(dict1, numSymbols - 1); in testDictionary()
692 dict2 = OSDictionary::withDictionary(dict1, numSymbols); in testDictionary()
696 dict1->release(); dict1 = 0; in testDictionary()
728 } else if (dict1) { in testDictionary()
729 dict1->release(); in testDictionary()