TetraIF migration and Unittest Implementation for it
Entire-Checkpoint: 14d1fef0cf36
This commit is contained in:
1 parent
a86f9b5bac
commit
ba212f9dce
78 files changed
+1611
-640
No files matched your search
@@ -41,19 +41,19 @@ int main(int argc, char **argv)
|
||||
TetraIF::usage();
|
||||
}
|
||||
const QString mode = args[3].toLower();
|
||||
if (mode != QLatin1String("listen") &&
|
||||
mode != QLatin1String("send_random") &&
|
||||
mode != QLatin1String("send_file"))
|
||||
if (mode != QStringLiteral("listen") &&
|
||||
mode != QStringLiteral("send_random") &&
|
||||
mode != QStringLiteral("send_file"))
|
||||
{
|
||||
ERROR_LOG(logger) << "Invalid mode " << args[3];
|
||||
TetraIF::usage();
|
||||
}
|
||||
TetraIF t(tetra, port, issi);
|
||||
if (mode == QLatin1String("listen"))
|
||||
if (mode == QStringLiteral("listen"))
|
||||
t.listenMode(args.mid(4));
|
||||
else if (mode == QLatin1String("send_random"))
|
||||
else if (mode == QStringLiteral("send_random"))
|
||||
t.randomMode(args.mid(4));
|
||||
else if (mode == QLatin1String("send_file"))
|
||||
else if (mode == QStringLiteral("send_file"))
|
||||
t.fileMode(args.mid(4));
|
||||
|
||||
t.start();
|
||||
|
||||
Reference in new issue
Block a user