summaryrefslogtreecommitdiffstats
path: root/src/ninja_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ninja_test.cc')
-rw-r--r--src/ninja_test.cc18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/ninja_test.cc b/src/ninja_test.cc
index 646b4a9..a90c334 100644
--- a/src/ninja_test.cc
+++ b/src/ninja_test.cc
@@ -17,26 +17,10 @@
#include <gtest/gtest.h>
#include "build.h"
+#include "graph.h"
#include "parsers.h"
#include "test.h"
-void AssertParse(State* state, const char* input) {
- ManifestParser parser(state, NULL);
- string err;
- ASSERT_TRUE(parser.Parse(input, &err)) << err;
- ASSERT_EQ("", err);
-}
-
-StateTestWithBuiltinRules::StateTestWithBuiltinRules() {
- AssertParse(&state_,
-"rule cat\n"
-" command = cat $in > $out\n");
-}
-
-Node* StateTestWithBuiltinRules::GetNode(const string& path) {
- return state_.GetNode(path);
-}
-
TEST(State, Basic) {
State state;
Rule* rule = new Rule("cat");