forked from qt-creator/qt-creator
		
	Clang: Move completion test
Change-Id: I61cd72c131407415732ed1231a4614be57c1454b Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
		@@ -142,7 +142,6 @@ protected:
 | 
			
		||||
    void expectCompletionFromFileBEnabledByMacro();
 | 
			
		||||
    void expectCompletionFromFileAUnsavedMethodVersion1();
 | 
			
		||||
    void expectCompletionFromFileAUnsavedMethodVersion2();
 | 
			
		||||
    void expectCompletionWithTicketNumber(quint64 ticketNumber);
 | 
			
		||||
    void expectNoCompletionWithUnsavedMethod();
 | 
			
		||||
    void expectDocumentAnnotationsChangedForFileBWithSpecificHighlightingMark();
 | 
			
		||||
 | 
			
		||||
@@ -260,15 +259,6 @@ TEST_F(ClangCodeModelServerSlowTest, GetNewCodeCompletionAfterUpdatingUnsavedFil
 | 
			
		||||
    completeCodeInFileA();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
TEST_F(ClangCodeModelServerSlowTest, TicketNumberIsForwarded)
 | 
			
		||||
{
 | 
			
		||||
    registerProjectAndFile(filePathA, 1);
 | 
			
		||||
    const CompleteCodeMessage message(filePathA, 20, 1, projectPartId);
 | 
			
		||||
 | 
			
		||||
    expectCompletionWithTicketNumber(message.ticketNumber());
 | 
			
		||||
    clangServer.completeCode(message);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
TEST_F(ClangCodeModelServerSlowTest, TranslationUnitAfterCreationIsNotDirty)
 | 
			
		||||
{
 | 
			
		||||
    registerProjectAndFile(filePathA, 1);
 | 
			
		||||
@@ -510,14 +500,6 @@ void ClangCodeModelServer::expectCompletionFromFileAUnsavedMethodVersion2()
 | 
			
		||||
    expectCompletion(completion);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void ClangCodeModelServer::expectCompletionWithTicketNumber(quint64 ticketNumber)
 | 
			
		||||
{
 | 
			
		||||
    EXPECT_CALL(mockClangCodeModelClient,
 | 
			
		||||
                codeCompleted(Property(&CodeCompletedMessage::ticketNumber,
 | 
			
		||||
                                       Eq(ticketNumber))))
 | 
			
		||||
        .Times(1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void ClangCodeModelServer::expectNoCompletionWithUnsavedMethod()
 | 
			
		||||
{
 | 
			
		||||
    const CodeCompletion completion(Utf8StringLiteral("Method2"),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user