Differential D1047 Diff 2606 languages/plugins/custom-definesandincludes/tests/test_definesandincludes.cpp
Changeset View
Changeset View
Standalone View
Standalone View
languages/plugins/custom-definesandincludes/tests/test_definesandincludes.cpp
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 57 | { | |||
---|---|---|---|---|---|
68 | QCOMPARE( actualIncludes, Path::List() << Path( "/usr/include/mydir") ); | 68 | QCOMPARE( actualIncludes, Path::List() << Path( "/usr/include/mydir") ); | ||
69 | 69 | | |||
70 | Defines defines; | 70 | Defines defines; | ||
71 | defines.insert( "_DEBUG", "" ); | 71 | defines.insert( "_DEBUG", "" ); | ||
72 | defines.insert( "VARIABLE", "VALUE" ); | 72 | defines.insert( "VARIABLE", "VALUE" ); | ||
73 | QCOMPARE( actualDefines, defines ); | 73 | QCOMPARE( actualDefines, defines ); | ||
74 | 74 | | |||
75 | QVERIFY(!manager->parserArguments(s_currentProject->projectItem()).isEmpty()); | 75 | QVERIFY(!manager->parserArguments(s_currentProject->projectItem()).isEmpty()); | ||
76 | QVERIFY(!manager->parserArguments(nullptr).isEmpty()); | 76 | QVERIFY(!manager->parserArguments(QStringLiteral("/some/path/to/file.cpp")).isEmpty()); | ||
77 | } | 77 | } | ||
78 | 78 | | |||
79 | void TestDefinesAndIncludes::loadMultiPathProject() | 79 | void TestDefinesAndIncludes::loadMultiPathProject() | ||
80 | { | 80 | { | ||
81 | s_currentProject = ProjectsGenerator::GenerateMultiPathProject(); | 81 | s_currentProject = ProjectsGenerator::GenerateMultiPathProject(); | ||
82 | QVERIFY( s_currentProject ); | 82 | QVERIFY( s_currentProject ); | ||
83 | 83 | | |||
84 | auto manager = IDefinesAndIncludesManager::manager(); | 84 | auto manager = IDefinesAndIncludesManager::manager(); | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |