diff options
author | Brad King <brad.king@kitware.com> | 2017-09-07 17:55:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-07 18:52:56 (GMT) |
commit | e679202a14d9ca08ccd0f471f2bcbf6388ddb3de (patch) | |
tree | c952091bbf21cd362e806e974feab50789966c79 /src/test.h | |
parent | 7738c19dc42f63bedb5cb728d6ebde71b8fdaaf4 (diff) | |
download | Ninja-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |