summaryrefslogtreecommitdiffstats
path: root/src/test.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-07 17:55:14 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-07 18:52:56 (GMT)
commite679202a14d9ca08ccd0f471f2bcbf6388ddb3de (patch)
treec952091bbf21cd362e806e974feab50789966c79 /src/test.h
parent7738c19dc42f63bedb5cb728d6ebde71b8fdaaf4 (diff)
downloadNinja-e679202a14d9ca08ccd0f471f2bcbf6388ddb3de.zip
Ninja-e679202a14d9ca08ccd0f471f2bcbf6388ddb3de.tar.gz
Ninja-e679202a14d9ca08ccd0f471f2bcbf6388ddb3de.tar.bz2
Factor ManifestParser options into a structure
This will allow more options to be added without updating everywhere that constructs a ManifestParser. Also extend the AssertParse function to take the options so tests can control them.
Diffstat (limited to 'src/test.h')
-rw-r--r--src/test.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test.h b/src/test.h
index 02ed929..3bce8f7 100644
--- a/src/test.h
+++ b/src/test.h
@@ -16,6 +16,7 @@
#define NINJA_TEST_H_
#include "disk_interface.h"
+#include "manifest_parser.h"
#include "state.h"
#include "util.h"
@@ -122,7 +123,8 @@ struct StateTestWithBuiltinRules : public testing::Test {
State state_;
};
-void AssertParse(State* state, const char* input);
+void AssertParse(State* state, const char* input,
+ ManifestParserOptions = ManifestParserOptions());
void AssertHash(const char* expected, uint64_t actual);
void VerifyGraph(const State& state);