Commit 638eaa4a authored by David COME's avatar David COME
Browse files

Amended FakeClient to take into account the new virtual functions of ClientInterface

parent 9c962fbc
......@@ -36,9 +36,11 @@ public:
}
lists.push_back(NULL);
}
virtual void reportMigrationResults(tapegateway::FileMigrationReportList & migrationReport,
RequestReport& report) throw (castor::tape::Exception){}
virtual tapegateway::FilesToRecallList * getFilesToRecall(uint64_t files,
uint64_t bytes, RequestReport &report)
throw (castor::tape::Exception)
uint64_t bytes, RequestReport &report) throw (castor::tape::Exception)
{
report.transactionId=666;
report.connectDuration=42;
......@@ -46,6 +48,11 @@ public:
return lists[m_current++];
}
virtual void reportEndOfSessionWithError(const std::string & errorMsg, int errorCode,
RequestReport &transactionReport) throw (castor::tape::Exception) {};
virtual void reportEndOfSession(RequestReport &report) throw (Exception) {}
private:
std::vector<tapegateway::FilesToRecallList*> lists;
int m_current;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment