forked from qt-creator/qt-creator
Clang: fix separators for tests
Change-Id: I951603294f2cf0a044463ddb431b80370b393bb6 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#include "googletest.h"
|
#include "googletest.h"
|
||||||
|
|
||||||
|
#include "filesystem-utilities.h"
|
||||||
|
|
||||||
#include "sourcerangecontainer-matcher.h"
|
#include "sourcerangecontainer-matcher.h"
|
||||||
|
|
||||||
#include <filecontainerv2.h>
|
#include <filecontainerv2.h>
|
||||||
@@ -77,13 +79,13 @@ protected:
|
|||||||
Utils::SmallString sourceContent{"#include \"query_simplefunction.h\"\nvoid f() {}"};
|
Utils::SmallString sourceContent{"#include \"query_simplefunction.h\"\nvoid f() {}"};
|
||||||
FileContainer source{{TESTDATA_DIR, "query_simplefunction.cpp"},
|
FileContainer source{{TESTDATA_DIR, "query_simplefunction.cpp"},
|
||||||
sourceContent.clone(),
|
sourceContent.clone(),
|
||||||
{"cc", TESTDATA_DIR"/query_simplefunction.cpp", "-I", TESTDATA_DIR}};
|
{"cc", toNativePath(TESTDATA_DIR"/query_simplefunction.cpp"), "-I", TESTDATA_DIR}};
|
||||||
FileContainer source2{{TESTDATA_DIR, "query_simplefunction2.cpp"},
|
FileContainer source2{{TESTDATA_DIR, "query_simplefunction2.cpp"},
|
||||||
{},
|
{},
|
||||||
{"cc", TESTDATA_DIR"/query_simplefunction2.cpp", "-I", TESTDATA_DIR}};
|
{"cc", toNativePath(TESTDATA_DIR"/query_simplefunction2.cpp"), "-I", TESTDATA_DIR}};
|
||||||
FileContainer source3{{TESTDATA_DIR, "query_simplefunction3.cpp"},
|
FileContainer source3{{TESTDATA_DIR, "query_simplefunction3.cpp"},
|
||||||
{},
|
{},
|
||||||
{"cc", TESTDATA_DIR"/query_simplefunction3.cpp", "-I", TESTDATA_DIR}};
|
{"cc", toNativePath(TESTDATA_DIR"/query_simplefunction3.cpp"), "-I", TESTDATA_DIR}};
|
||||||
Utils::SmallString unsavedContent{"void f();"};
|
Utils::SmallString unsavedContent{"void f();"};
|
||||||
FileContainer unsaved{{TESTDATA_DIR, "query_simplefunction.h"},
|
FileContainer unsaved{{TESTDATA_DIR, "query_simplefunction.h"},
|
||||||
unsavedContent.clone(),
|
unsavedContent.clone(),
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#include "googletest.h"
|
#include "googletest.h"
|
||||||
|
|
||||||
|
#include "filesystem-utilities.h"
|
||||||
#include "mockrefactoringclient.h"
|
#include "mockrefactoringclient.h"
|
||||||
#include "sourcerangecontainer-matcher.h"
|
#include "sourcerangecontainer-matcher.h"
|
||||||
|
|
||||||
@@ -78,7 +79,7 @@ protected:
|
|||||||
Utils::SmallString sourceContent{"void f()\n {}"};
|
Utils::SmallString sourceContent{"void f()\n {}"};
|
||||||
FileContainer source{{TESTDATA_DIR, "query_simplefunction.cpp"},
|
FileContainer source{{TESTDATA_DIR, "query_simplefunction.cpp"},
|
||||||
sourceContent.clone(),
|
sourceContent.clone(),
|
||||||
{"cc", TESTDATA_DIR"/query_simplefunction.cpp"}};
|
{"cc", toNativePath(TESTDATA_DIR"/query_simplefunction.cpp")}};
|
||||||
int processingSlotCount = 2;
|
int processingSlotCount = 2;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user