unsigned long long FluteLibTest::performsFileSend( const TemporaryFile& aTemporaryFile, int aKBitRates) { FluteSender mySender(aTemporaryFile.getFilePath(), aKBitRates); unsigned long long mySessionSize = mySender.sessionSize(); mySender.startSending(); return mySessionSize; }
bool TemporaryFile::operator==(const TemporaryFile& aRHS) const { ifstream myLHS(this->getFilePath().c_str()); ifstream myRHS(aRHS.getFilePath().c_str()); while (!myLHS.eof() || !myRHS.eof()) { if (myLHS.get() != myRHS.get()) { return false; } } if (myLHS.eof() && myRHS.eof()) { return true; } return false; }