summaryrefslogtreecommitdiffstats
path: root/src/test.h
blob: 25d4149f942941dbf1018845ec17847b9638bb7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <gtest/gtest.h>

#include "graph.h"
#include "ninja.h"

struct StateTestWithBuiltinRules : public testing::Test {
  StateTestWithBuiltinRules();
  Node* GetNode(const string& path);

  // Mark every non-leaf node dirty.
  void ResetDirty();

  State state_;
};

void AssertParse(State* state, const char* input);