summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpptoolstestcase.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-02-17 15:05:22 +0100
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-02-18 12:16:29 +0000
commit93c8509a5097f3813e7e9a76e47c583b05d11991 (patch)
treed42f47e70a3f3e921d8c0f752fd7504c3759fd29 /src/plugins/cpptools/cpptoolstestcase.h
parent1e0b7e527ff1a8aea21c27a1ef954ca0857ef7d5 (diff)
downloadqt-creator-93c8509a5097f3813e7e9a76e47c583b05d11991.tar.gz
CppTools: Tests: time out in waitForFileInGlobalSnapshot()
Change-Id: I0bf7d826d53749c5fd1be1e4f3c2faa403d13342 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cpptoolstestcase.h')
-rw-r--r--src/plugins/cpptools/cpptoolstestcase.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/plugins/cpptools/cpptoolstestcase.h b/src/plugins/cpptools/cpptoolstestcase.h
index f96bd85dc1..a614911d9f 100644
--- a/src/plugins/cpptools/cpptoolstestcase.h
+++ b/src/plugins/cpptools/cpptoolstestcase.h
@@ -93,11 +93,16 @@ public:
static CPlusPlus::Snapshot globalSnapshot();
static bool garbageCollectGlobalSnapshot();
- static bool waitUntilCppModelManagerIsAwareOf(ProjectExplorer::Project *project,
- int timeOut = 30 * 1000 /*= 30 secs*/);
- static CPlusPlus::Document::Ptr waitForFileInGlobalSnapshot(const QString &filePath);
+ enum { defaultTimeOutInMs = 30 * 1000 /*= 30 secs*/ };
+ static bool waitUntilCppModelManagerIsAwareOf(
+ ProjectExplorer::Project *project,
+ int timeOutInMs = defaultTimeOutInMs);
+ static CPlusPlus::Document::Ptr waitForFileInGlobalSnapshot(
+ const QString &filePath,
+ int timeOutInMs = defaultTimeOutInMs);
static QList<CPlusPlus::Document::Ptr> waitForFilesInGlobalSnapshot(
- const QStringList &filePaths);
+ const QStringList &filePaths,
+ int timeOutInMs = defaultTimeOutInMs);
static bool writeFile(const QString &filePath, const QByteArray &contents);