diff options
author | Evan Martin <martine@danga.com> | 2013-04-08 17:20:58 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2013-04-09 04:04:55 (GMT) |
commit | 0397155218f3d311200ec4e25786028f14c53c6a (patch) | |
tree | 7e68d3f5403c4e6979541c2c9922d2248163467c /src/test.h | |
parent | 8ec425abe38f468bc4bbb4c95d78fab3b93d2141 (diff) | |
download | Ninja-0397155218f3d311200ec4e25786028f14c53c6a.zip Ninja-0397155218f3d311200ec4e25786028f14c53c6a.tar.gz Ninja-0397155218f3d311200ec4e25786028f14c53c6a.tar.bz2 |
add a test for the "deps out of date" case
It touched the various remaining XXXes in the code, hooray.
Diffstat (limited to 'src/test.h')
-rw-r--r-- | src/test.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -29,6 +29,12 @@ struct Node; /// builtin "cat" rule. struct StateTestWithBuiltinRules : public testing::Test { StateTestWithBuiltinRules(); + + /// Add a "cat" rule to \a state. Used by some tests; it's + /// otherwise done by the ctor to state_. + void AddCatRule(State* state); + + /// Short way to get a Node by its path from state_. Node* GetNode(const string& path); State state_; |