Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/outputview/tests/test_filteringstrategy.cpp
Show First 20 Lines • Show All 421 Lines • ▼ Show 20 Line(s) | |||||
422 | { | 422 | { | ||
423 | QFETCH(QString, line); | 423 | QFETCH(QString, line); | ||
424 | QFETCH(QString, expectedLastDir); | 424 | QFETCH(QString, expectedLastDir); | ||
425 | QFETCH(TestPathType, pathType); | 425 | QFETCH(TestPathType, pathType); | ||
426 | 426 | | |||
427 | QUrl projecturl = QUrl::fromLocalFile( projectPath(pathType) ); | 427 | QUrl projecturl = QUrl::fromLocalFile( projectPath(pathType) ); | ||
428 | CompilerFilterStrategy testee(projecturl); | 428 | CompilerFilterStrategy testee(projecturl); | ||
429 | FilteredItem item1 = testee.actionInLine(line); | 429 | FilteredItem item1 = testee.actionInLine(line); | ||
430 | int last = testee.getCurrentDirs().size() - 1; | 430 | int last = testee.currentDirs().size() - 1; | ||
431 | QCOMPARE(testee.getCurrentDirs().at(last), expectedLastDir); | 431 | QCOMPARE(testee.currentDirs().at(last), expectedLastDir); | ||
432 | } | 432 | } | ||
433 | 433 | | |||
434 | void TestFilteringStrategy::benchMarkCompilerFilterAction() | 434 | void TestFilteringStrategy::benchMarkCompilerFilterAction() | ||
435 | { | 435 | { | ||
436 | QString projecturl = projectPath(); | 436 | QString projecturl = projectPath(); | ||
437 | QStringList outputlines; | 437 | QStringList outputlines; | ||
438 | const int numLines(10000); | 438 | const int numLines(10000); | ||
439 | int j(0), k(0), l(0), m(0); | 439 | int j(0), k(0), l(0), m(0); | ||
▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines |