Lines Matching refs:output
91 // Identify (output: B_TRANSLATOR_ANY_TYPE)
100 // Identify (output: B_TRANSLATOR_TEXT)
110 // Identify (output: B_STYLED_TEXT_FORMAT)
136 // Identify (bad input, output types)
309 BFile output("/tmp/stxt_test.out", B_READ_WRITE |
311 CPPUNIT_ASSERT(output.InitCheck() == B_OK);
313 // Translate (bad input, output types)
315 result = proster->Translate(&wronginput, NULL, NULL, &output,
318 CPPUNIT_ASSERT(output.GetSize(&filesize) == B_OK);
323 result = proster->Translate(&wronginput, NULL, NULL, &output,
326 CPPUNIT_ASSERT(CompareStreams(wronginput, output) == true);
328 // Translate (wrong type of input, B_TRANSLATOR_ANY_TYPE output)
330 CPPUNIT_ASSERT(output.Seek(0, SEEK_SET) == 0);
331 CPPUNIT_ASSERT(output.SetSize(0) == B_OK);
332 result = proster->Translate(&wronginput, NULL, NULL, &output,
335 CPPUNIT_ASSERT(CompareStreams(wronginput, output) == true);
339 CPPUNIT_ASSERT(output.Seek(0, SEEK_SET) == 0);
340 CPPUNIT_ASSERT(output.SetSize(0) == B_OK);
344 result = proster->Translate(&wrongmagic, NULL, NULL, &output,
347 CPPUNIT_ASSERT(CompareStreams(wrongmagic, output) == true);
351 CPPUNIT_ASSERT(output.Seek(0, SEEK_SET) == 0);
352 CPPUNIT_ASSERT(output.SetSize(0) == B_OK);
356 result = proster->Translate(&wrongversion, NULL, NULL, &output,
359 CPPUNIT_ASSERT(CompareStreams(wrongversion, output) == true);
451 // The output formats that this translator is supposed to support