• Home
  • Raw
  • Download

Lines Matching refs:app

812 	FLAC::Metadata::Application *app;  in test_level_1_()  local
923 if(0 == (app = new FLAC::Metadata::Application())) in test_level_1_()
925 app->set_id((const uint8_t *)"duh"); in test_level_1_()
930 delete app; in test_level_1_()
938 delete app; in test_level_1_()
944 delete app; in test_level_1_()
953 if(!iterator.set_block(app, false)) in test_level_1_()
956 delete app; in test_level_1_()
963 delete app; in test_level_1_()
971 delete app; in test_level_1_()
1111app->set_id((const uint8_t *)"euh"); /* twiddle the id so that our comparison doesn't miss transpo… in test_level_1_()
1112 if(!iterator.insert_block_after(app, true)) in test_level_1_()
1114 if(!insert_to_our_metadata_(app, ++our_current_position, /*copy=*/true)) in test_level_1_()
1116 …current_position+1, -((int)(FLAC__STREAM_METADATA_APPLICATION_ID_LEN/8) + (int)app->get_length())); in test_level_1_()
1127 app->set_id((const uint8_t *)"fuh"); /* twiddle the id */ in test_level_1_()
1128 if(!iterator.set_block(app, true)) in test_level_1_()
1130 if(!insert_to_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_1_()
1132 …current_position+1, -((int)(FLAC__STREAM_METADATA_APPLICATION_ID_LEN/8) + (int)app->get_length())); in test_level_1_()
1138 app->set_id((const uint8_t *)"guh"); /* twiddle the id */ in test_level_1_()
1139 if(!app->set_data(data, sizeof(data), true)) in test_level_1_()
1141 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_1_()
1143 if(!iterator.set_block(app, false)) in test_level_1_()
1150 app->set_id((const uint8_t *)"huh"); /* twiddle the id */ in test_level_1_()
1151 if(!app->set_data(data, 12, true)) in test_level_1_()
1153 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_1_()
1155 if(!iterator.set_block(app, false)) in test_level_1_()
1162 app->set_id((const uint8_t *)"iuh"); /* twiddle the id */ in test_level_1_()
1163 if(!app->set_data(data, sizeof(data), true)) in test_level_1_()
1165 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_1_()
1168 if(!iterator.set_block(app, true)) in test_level_1_()
1175 app->set_id((const uint8_t *)"juh"); /* twiddle the id */ in test_level_1_()
1176 if(!app->set_data(data, 23, true)) in test_level_1_()
1178 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_1_()
1183 if(!iterator.set_block(app, true)) in test_level_1_()
1210 app->set_id((const uint8_t *)"kuh"); /* twiddle the id */ in test_level_1_()
1211 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_1_()
1213 if(!iterator.set_block(app, false)) in test_level_1_()
1276 if(!app->set_data(data, 32, true)) in test_level_1_()
1278 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_1_()
1280 if(!iterator.set_block(app, true)) in test_level_1_()
1287 if(!app->set_data(data, 60, true)) in test_level_1_()
1289 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_1_()
1291 if(!iterator.set_block(app, true)) in test_level_1_()
1298 if(!app->set_data(data, 87, true)) in test_level_1_()
1300 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_1_()
1303 if(!iterator.set_block(app, true)) in test_level_1_()
1310 if(!app->set_data(data, 91, true)) in test_level_1_()
1312 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_1_()
1315 if(!iterator.set_block(app, true)) in test_level_1_()
1322 if(!app->set_data(data, 100, true)) in test_level_1_()
1324 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_1_()
1328 if(!iterator.set_block(app, true)) in test_level_1_()
1335 padding->set_length(app->get_length()); in test_level_1_()
1379 if(!app->set_data(data, 101, true)) in test_level_1_()
1381 if(!insert_to_our_metadata_(app, ++our_current_position, /*copy=*/true)) in test_level_1_()
1383 if(!iterator.insert_block_after(app, true)) in test_level_1_()
1398 if(!app->set_data(data, 97, true)) in test_level_1_()
1400 if(!insert_to_our_metadata_(app, ++our_current_position, /*copy=*/true)) in test_level_1_()
1402 if(!iterator.insert_block_after(app, true)) in test_level_1_()
1417 if(!app->set_data(data, 100, true)) in test_level_1_()
1419 if(!insert_to_our_metadata_(app, ++our_current_position, /*copy=*/true)) in test_level_1_()
1422 if(!iterator.insert_block_after(app, true)) in test_level_1_()
1437 if(!app->set_data(data, 96, true)) in test_level_1_()
1439 if(!insert_to_our_metadata_(app, ++our_current_position, /*copy=*/true)) in test_level_1_()
1442 if(!iterator.insert_block_after(app, true)) in test_level_1_()
1470 if(!app->set_data(data, 1, true)) in test_level_1_()
1472 if(!insert_to_our_metadata_(app, ++our_current_position, /*copy=*/true)) in test_level_1_()
1475 if(!iterator.insert_block_after(app, true)) in test_level_1_()
1482 delete app; in test_level_1_()
1495 FLAC::Metadata::Application *app; in test_level_2_() local
1584 if(0 == (app = new FLAC::Metadata::Application())) in test_level_2_()
1586 app->set_id((const uint8_t *)"duh"); in test_level_2_()
1587 if(!app->set_data(data, block->get_length()-(FLAC__STREAM_METADATA_APPLICATION_ID_LEN/8), true)) in test_level_2_()
1590 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_2_()
1592 if(!iterator.set_block(app)) in test_level_2_()
1605 …if(0 == (app = dynamic_cast<FLAC::Metadata::Application *>(FLAC::Metadata::clone(our_metadata_.blo… in test_level_2_()
1607 if(!app->set_data(data, 26, true)) in test_level_2_()
1609 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_2_()
1611 if(!iterator.set_block(app)) in test_level_2_()
1624 …if(0 == (app = dynamic_cast<FLAC::Metadata::Application *>(FLAC::Metadata::clone(our_metadata_.blo… in test_level_2_()
1626 if(!app->set_data(data, 28, true)) in test_level_2_()
1628 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_2_()
1630 if(!iterator.set_block(app)) in test_level_2_()
1643 …if(0 == (app = dynamic_cast<FLAC::Metadata::Application *>(FLAC::Metadata::clone(our_metadata_.blo… in test_level_2_()
1645 if(!app->set_data(data, 36, true)) in test_level_2_()
1647 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_2_()
1649 if(!iterator.set_block(app)) in test_level_2_()
1662 …if(0 == (app = dynamic_cast<FLAC::Metadata::Application *>(FLAC::Metadata::clone(our_metadata_.blo… in test_level_2_()
1664 if(!app->set_data(data, 33, true)) in test_level_2_()
1666 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_2_()
1668 if(!iterator.set_block(app)) in test_level_2_()
1683 …if(0 == (app = dynamic_cast<FLAC::Metadata::Application *>(FLAC::Metadata::clone(our_metadata_.blo… in test_level_2_()
1685 if(!app->set_data(data, 29, true)) in test_level_2_()
1687 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_2_()
1692 if(!iterator.set_block(app)) in test_level_2_()
1705 …if(0 == (app = dynamic_cast<FLAC::Metadata::Application *>(FLAC::Metadata::clone(our_metadata_.blo… in test_level_2_()
1707 if(!app->set_data(data, 16, true)) in test_level_2_()
1709 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_2_()
1712 if(!iterator.set_block(app)) in test_level_2_()
1725 …if(0 == (app = dynamic_cast<FLAC::Metadata::Application *>(FLAC::Metadata::clone(our_metadata_.blo… in test_level_2_()
1727 if(!app->set_data(data, 50, true)) in test_level_2_()
1729 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_2_()
1731 if(!iterator.set_block(app)) in test_level_2_()
1744 …if(0 == (app = dynamic_cast<FLAC::Metadata::Application *>(FLAC::Metadata::clone(our_metadata_.blo… in test_level_2_()
1746 if(!app->set_data(data, 56, true)) in test_level_2_()
1748 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_2_()
1751 if(!iterator.set_block(app)) in test_level_2_()
1764 …if(0 == (app = dynamic_cast<FLAC::Metadata::Application *>(FLAC::Metadata::clone(our_metadata_.blo… in test_level_2_()
1766 if(!app->set_data(data, 67, true)) in test_level_2_()
1768 if(!replace_in_our_metadata_(app, our_current_position, /*copy=*/true)) in test_level_2_()
1771 if(!iterator.set_block(app)) in test_level_2_()