Ninja
Classes | Functions
depfile_parser_test.cc File Reference
#include "depfile_parser.h"
#include "test.h"
Include dependency graph for depfile_parser_test.cc:

Go to the source code of this file.

Classes

struct  DepfileParserTest
 

Functions

 TEST_F (DepfileParserTest, Basic)
 
 TEST_F (DepfileParserTest, EarlyNewlineAndWhitespace)
 
 TEST_F (DepfileParserTest, Continuation)
 
 TEST_F (DepfileParserTest, CarriageReturnContinuation)
 
 TEST_F (DepfileParserTest, BackSlashes)
 
 TEST_F (DepfileParserTest, Spaces)
 
 TEST_F (DepfileParserTest, Escapes)
 
 TEST_F (DepfileParserTest, SpecialChars)
 
 TEST_F (DepfileParserTest, UnifyMultipleOutputs)
 
 TEST_F (DepfileParserTest, RejectMultipleDifferentOutputs)
 
 TEST_F (DepfileParserTest, MultipleEmptyRules)
 
 TEST_F (DepfileParserTest, UnifyMultipleRulesLF)
 
 TEST_F (DepfileParserTest, UnifyMultipleRulesCRLF)
 
 TEST_F (DepfileParserTest, UnifyMixedRulesLF)
 
 TEST_F (DepfileParserTest, UnifyMixedRulesCRLF)
 
 TEST_F (DepfileParserTest, IndentedRulesLF)
 
 TEST_F (DepfileParserTest, IndentedRulesCRLF)
 
 TEST_F (DepfileParserTest, TolerateMP)
 
 TEST_F (DepfileParserTest, MultipleRulesTolerateMP)
 
 TEST_F (DepfileParserTest, MultipleRulesRejectDifferentOutputs)
 

Function Documentation

◆ TEST_F() [1/20]

TEST_F ( DepfileParserTest  ,
Basic   
)

Definition at line 31 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [2/20]

TEST_F ( DepfileParserTest  ,
EarlyNewlineAndWhitespace   
)

Definition at line 41 of file depfile_parser_test.cc.

References ASSERT_EQ, and EXPECT_TRUE.

◆ TEST_F() [3/20]

TEST_F ( DepfileParserTest  ,
Continuation   
)

Definition at line 50 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [4/20]

TEST_F ( DepfileParserTest  ,
CarriageReturnContinuation   
)

Definition at line 61 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [5/20]

TEST_F ( DepfileParserTest  ,
BackSlashes   
)

Definition at line 72 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [6/20]

TEST_F ( DepfileParserTest  ,
Spaces   
)

Definition at line 87 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [7/20]

TEST_F ( DepfileParserTest  ,
Escapes   
)

Definition at line 104 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [8/20]

TEST_F ( DepfileParserTest  ,
SpecialChars   
)

Definition at line 117 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [9/20]

TEST_F ( DepfileParserTest  ,
UnifyMultipleOutputs   
)

Definition at line 144 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [10/20]

TEST_F ( DepfileParserTest  ,
RejectMultipleDifferentOutputs   
)

Definition at line 155 of file depfile_parser_test.cc.

References ASSERT_EQ, and EXPECT_FALSE.

◆ TEST_F() [11/20]

TEST_F ( DepfileParserTest  ,
MultipleEmptyRules   
)

Definition at line 162 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [12/20]

TEST_F ( DepfileParserTest  ,
UnifyMultipleRulesLF   
)

Definition at line 172 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [13/20]

TEST_F ( DepfileParserTest  ,
UnifyMultipleRulesCRLF   
)

Definition at line 185 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [14/20]

TEST_F ( DepfileParserTest  ,
UnifyMixedRulesLF   
)

Definition at line 198 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [15/20]

TEST_F ( DepfileParserTest  ,
UnifyMixedRulesCRLF   
)

Definition at line 211 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [16/20]

TEST_F ( DepfileParserTest  ,
IndentedRulesLF   
)

Definition at line 224 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [17/20]

TEST_F ( DepfileParserTest  ,
IndentedRulesCRLF   
)

Definition at line 236 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [18/20]

TEST_F ( DepfileParserTest  ,
TolerateMP   
)

Definition at line 248 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [19/20]

TEST_F ( DepfileParserTest  ,
MultipleRulesTolerateMP   
)

Definition at line 261 of file depfile_parser_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [20/20]

TEST_F ( DepfileParserTest  ,
MultipleRulesRejectDifferentOutputs   
)