• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/tests/streams/

Lines Matching refs:stream_in

82         const TStreamIn &stream_in = CreateInStream();
83 CPPUNIT_ASSERT(!stream_in.Eof());
88 CPPUNIT_ASSERT(stream_in.GetSize() != 0);
95 TStreamIn &stream_in = CreateInStream();
96 CPPUNIT_ASSERT(!stream_in.Eof());
99 (void)stream_in.GetC();
106 TStreamIn &stream_in = CreateInStream();
107 CPPUNIT_ASSERT(!stream_in.Eof());
112 (void)stream_in.Read(buf, 10);
114 CPPUNIT_ASSERT(!stream_in.Eof());
115 CPPUNIT_ASSERT(stream_in.IsOk());
119 (void)stream_in.Read(stream_out);
122 CPPUNIT_ASSERT(stream_in.Eof());
130 TStreamIn &stream_in = CreateInStream();
131 CPPUNIT_ASSERT(!stream_in.Eof());
133 CPPUNIT_ASSERT(!stream_in.Eof());
136 while(!stream_in.Eof())
139 (void)stream_in.GetC();
145 CPPUNIT_ASSERT_MESSAGE("Eof is detected too late.", !(stream_in.LastRead() != 1 && stream_in.Eof()));
148 CPPUNIT_ASSERT_MESSAGE("Eof is detected too soon.", !(stream_in.LastRead() == 1 && stream_in.Eof()));
153 CPPUNIT_ASSERT_MESSAGE("EOF is not EOF?", stream_in.Eof());
157 (void)stream_in.GetC();
160 CPPUNIT_ASSERT_MESSAGE("EOF is wrong when we read past EOF!", stream_in.Eof());
161 CPPUNIT_ASSERT_MESSAGE("Last error is not EOF while stream_in.Eof() is true", stream_in.GetLastError() == wxSTREAM_EOF);
168 TStreamIn &stream_in = CreateInStream();
169 CPPUNIT_ASSERT(!stream_in.Eof());
172 (void)stream_in.Read(buf, 5);
173 CPPUNIT_ASSERT(stream_in.LastRead() == 5);
174 (void)stream_in.GetC();
175 CPPUNIT_ASSERT(stream_in.LastRead() == 1);
182 TStreamIn &stream_in = CreateInStream();
183 CPPUNIT_ASSERT(!stream_in.Eof());
188 CPPUNIT_ASSERT(stream_in.SeekI(2, wxFromStart) == 2);
189 CPPUNIT_ASSERT(stream_in.SeekI(2, wxFromCurrent) == 4);
191 //CPPUNIT_ASSERT(stream_in.SeekI(-2, wxFromEnd) == (off_t)stream_in.GetSize()-2);
192 CPPUNIT_ASSERT(stream_in.SeekI(-2, wxFromEnd) != wxInvalidOffset);
194 CPPUNIT_ASSERT((stream_in.SeekI(10, wxFromCurrent) == wxInvalidOffset) == m_bSeekInvalidBeyondEnd);
201 TStreamIn &stream_in = CreateInStream();
202 CPPUNIT_ASSERT(!stream_in.Eof());
205 CPPUNIT_ASSERT(stream_in.TellI() == 0);
206 (void)stream_in.GetC();
207 CPPUNIT_ASSERT(stream_in.TellI() == 1);
210 wxFileOffset pos = stream_in.SeekI(5, wxFromStart);
211 CPPUNIT_ASSERT(stream_in.TellI() == pos);
212 (void)stream_in.GetC();
213 CPPUNIT_ASSERT(stream_in.TellI() == 6);
214 pos = stream_in.SeekI(2, wxFromCurrent);
215 CPPUNIT_ASSERT(stream_in.TellI() == pos);
216 pos = stream_in.SeekI(5, wxFromStart);
217 CPPUNIT_ASSERT(stream_in.TellI() == pos);
225 TStreamIn &stream_in = CreateInStream();
228 while (stream_in.IsOk())
230 char peekChar = stream_in.Peek();
231 char getChar = stream_in.GetC();
232 if (stream_in.LastRead() == 1)
241 TStreamIn &stream_in = CreateInStream();
242 CPPUNIT_ASSERT(!stream_in.Eof());
245 size_t ungetsize = stream_in.Ungetch(ungetstr, strlen(ungetstr) + 1);
250 (void)stream_in.Read(buf, ungetsize);
254 if (stream_in.Ungetch('a'))
256 CPPUNIT_ASSERT(stream_in.GetC() == 'a');
292 TStreamIn &stream_in = CreateInStream();
293 (void)stream_out.Write(stream_in);
326 //CPPUNIT_ASSERT(stream_out.SeekO(-2, wxFromEnd) == (off_t)stream_in.GetSize()-2);