webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Functions
location_test.cpp File Reference
#include "PreprocessorTest.h"
#include "compiler/preprocessor/Token.h"

Classes

class  LocationTest
 
struct  LineTestParam
 
class  InvalidLineTest
 
struct  LineExpressionTestParam
 
class  LineExpressionTest
 

Functions

 TEST_F (LocationTest, String0_Line1)
 
 TEST_F (LocationTest, String0_Line2)
 
 TEST_F (LocationTest, String1_Line1)
 
 TEST_F (LocationTest, String1_Line2)
 
 TEST_F (LocationTest, NewlineInsideCommentCounted)
 
 TEST_F (LocationTest, ErrorLocationAfterComment)
 
 TEST_F (LocationTest, TokenStraddlingTwoStrings)
 
 TEST_F (LocationTest, TokenStraddlingThreeStrings)
 
 TEST_F (LocationTest, EndOfFileWithoutNewline)
 
 TEST_F (LocationTest, EndOfFileAfterNewline)
 
 TEST_F (LocationTest, EndOfFileAfterEmptyString)
 
 TEST_F (LocationTest, ValidLineDirective1)
 
 TEST_F (LocationTest, ValidLineDirective2)
 
 TEST_F (LocationTest, LineDirectiveCommentsIgnored)
 
 TEST_F (LocationTest, LineDirectiveWithMacro1)
 
 TEST_F (LocationTest, LineDirectiveWithMacro2)
 
 TEST_F (LocationTest, LineDirectiveWithPredefinedMacro)
 
 TEST_F (LocationTest, LineDirectiveNewlineBeforeStringBreak)
 
 TEST_F (LocationTest, LineDirectiveNewlineAfterStringBreak)
 
 TEST_F (LocationTest, LineDirectiveMissingNewline)
 
 TEST_P (InvalidLineTest, Identified)
 
 INSTANTIATE_TEST_CASE_P (All, InvalidLineTest, testing::ValuesIn(kParams))
 
 TEST_P (LineExpressionTest, ExpressionEvaluation)
 
 INSTANTIATE_TEST_CASE_P (All, LineExpressionTest, testing::ValuesIn(kParamsLineExpressionTest))
 

Function Documentation

◆ INSTANTIATE_TEST_CASE_P() [1/2]

INSTANTIATE_TEST_CASE_P ( All  ,
InvalidLineTest  ,
testing::ValuesIn(kParams)   
)

◆ INSTANTIATE_TEST_CASE_P() [2/2]

INSTANTIATE_TEST_CASE_P ( All  ,
LineExpressionTest  ,
testing::ValuesIn(kParamsLineExpressionTest)   
)

◆ TEST_F() [1/20]

TEST_F ( LocationTest  ,
String0_Line1   
)

◆ TEST_F() [2/20]

TEST_F ( LocationTest  ,
String0_Line2   
)

◆ TEST_F() [3/20]

TEST_F ( LocationTest  ,
String1_Line1   
)

◆ TEST_F() [4/20]

TEST_F ( LocationTest  ,
String1_Line2   
)

◆ TEST_F() [5/20]

TEST_F ( LocationTest  ,
NewlineInsideCommentCounted   
)

◆ TEST_F() [6/20]

TEST_F ( LocationTest  ,
ErrorLocationAfterComment   
)

◆ TEST_F() [7/20]

TEST_F ( LocationTest  ,
TokenStraddlingTwoStrings   
)

◆ TEST_F() [8/20]

TEST_F ( LocationTest  ,
TokenStraddlingThreeStrings   
)

◆ TEST_F() [9/20]

TEST_F ( LocationTest  ,
EndOfFileWithoutNewline   
)

◆ TEST_F() [10/20]

TEST_F ( LocationTest  ,
EndOfFileAfterNewline   
)

◆ TEST_F() [11/20]

TEST_F ( LocationTest  ,
EndOfFileAfterEmptyString   
)

◆ TEST_F() [12/20]

TEST_F ( LocationTest  ,
ValidLineDirective1   
)

◆ TEST_F() [13/20]

TEST_F ( LocationTest  ,
ValidLineDirective2   
)

◆ TEST_F() [14/20]

TEST_F ( LocationTest  ,
LineDirectiveCommentsIgnored   
)

◆ TEST_F() [15/20]

TEST_F ( LocationTest  ,
LineDirectiveWithMacro1   
)

◆ TEST_F() [16/20]

TEST_F ( LocationTest  ,
LineDirectiveWithMacro2   
)

◆ TEST_F() [17/20]

TEST_F ( LocationTest  ,
LineDirectiveWithPredefinedMacro   
)

◆ TEST_F() [18/20]

TEST_F ( LocationTest  ,
LineDirectiveNewlineBeforeStringBreak   
)

◆ TEST_F() [19/20]

TEST_F ( LocationTest  ,
LineDirectiveNewlineAfterStringBreak   
)

◆ TEST_F() [20/20]

TEST_F ( LocationTest  ,
LineDirectiveMissingNewline   
)

◆ TEST_P() [1/2]

TEST_P ( InvalidLineTest  ,
Identified   
)

◆ TEST_P() [2/2]

TEST_P ( LineExpressionTest  ,
ExpressionEvaluation   
)