diff options
author | Evan Martin <martine@danga.com> | 2011-12-07 20:14:30 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-07 20:14:30 (GMT) |
commit | 8aae49d6f74fa5124f080de814c7ff37144b6373 (patch) | |
tree | fb864bdd89dfca2f3952601bc384bc3b8eb21aa2 /src/parsers_test.cc | |
parent | bf72e45180e1dd80d9efea8d2acebcac15ea12a4 (diff) | |
download | Ninja-8aae49d6f74fa5124f080de814c7ff37144b6373.zip Ninja-8aae49d6f74fa5124f080de814c7ff37144b6373.tar.gz Ninja-8aae49d6f74fa5124f080de814c7ff37144b6373.tar.bz2 |
remove makefile parsing code, use depfile code instead
Diffstat (limited to 'src/parsers_test.cc')
-rw-r--r-- | src/parsers_test.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/parsers_test.cc b/src/parsers_test.cc index f23a178..0e6d532 100644 --- a/src/parsers_test.cc +++ b/src/parsers_test.cc @@ -16,6 +16,7 @@ #include <gtest/gtest.h> +#include "depfile_parser.h" #include "graph.h" #include "state.h" @@ -487,8 +488,8 @@ TEST_F(ParserTest, DefaultStatements) { EXPECT_EQ("c", nodes[2]->path()); } -TEST(MakefileParser, Basic) { - MakefileParser parser; +TEST(DepfileParser, Basic) { + DepfileParser parser; string err; EXPECT_TRUE(parser.Parse( "build/ninja.o: ninja.cc ninja.h eval_env.h manifest_parser.h\n", @@ -498,8 +499,8 @@ TEST(MakefileParser, Basic) { EXPECT_EQ(4u, parser.ins_.size()); } -TEST(MakefileParser, EarlyNewlineAndWhitespace) { - MakefileParser parser; +TEST(DepfileParser, EarlyNewlineAndWhitespace) { + DepfileParser parser; string err; EXPECT_TRUE(parser.Parse( " \\\n" @@ -508,8 +509,8 @@ TEST(MakefileParser, EarlyNewlineAndWhitespace) { ASSERT_EQ("", err); } -TEST(MakefileParser, Continuation) { - MakefileParser parser; +TEST(DepfileParser, Continuation) { + DepfileParser parser; string err; EXPECT_TRUE(parser.Parse( "foo.o: \\\n" |