Index: test/unittests/compiler/graph-unittest.h |
diff --git a/test/unittests/compiler/graph-unittest.h b/test/unittests/compiler/graph-unittest.h |
index ee666292c357a1909ceb59c6725e35e3a4e697ba..979e26d916706c01fc1d20813f633a4c2c5dc2c1 100644 |
--- a/test/unittests/compiler/graph-unittest.h |
+++ b/test/unittests/compiler/graph-unittest.h |
@@ -8,6 +8,7 @@ |
#include "src/compiler/common-operator.h" |
#include "src/compiler/graph.h" |
#include "src/compiler/machine-operator.h" |
+#include "src/compiler/typer.h" |
#include "test/unittests/test-utils.h" |
#include "testing/gmock/include/gmock/gmock.h" |
@@ -64,6 +65,20 @@ class GraphTest : public TestWithContext, public TestWithZone { |
}; |
+class TypedGraphTest : public GraphTest { |
+ public: |
+ explicit TypedGraphTest(int parameters = 1) |
+ : GraphTest(parameters), |
+ typer_(graph(), MaybeHandle<Context>()) {} |
+ |
+ protected: |
+ Typer* typer() { return &typer_; } |
+ |
+ private: |
+ Typer typer_; |
+}; |
+ |
+ |
Matcher<Node*> IsBranch(const Matcher<Node*>& value_matcher, |
const Matcher<Node*>& control_matcher); |
Matcher<Node*> IsMerge(const Matcher<Node*>& control0_matcher, |