Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: src/compiler/graph-unittest.h

Issue 530693002: [turbofan] Merge compiler unit tests into src. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/compiler-unittests.cc ('k') | src/compiler/graph-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/graph-unittest.h
diff --git a/test/compiler-unittests/graph-unittest.h b/src/compiler/graph-unittest.h
similarity index 94%
rename from test/compiler-unittests/graph-unittest.h
rename to src/compiler/graph-unittest.h
index 2cb4f8e2ec144214bbbe65b6f8bfa02cd78efef4..96813d0ea8b21ff198f42f0b8e456f4c5ccc62b7 100644
--- a/test/compiler-unittests/graph-unittest.h
+++ b/src/compiler/graph-unittest.h
@@ -2,12 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef V8_COMPILER_UNITTESTS_GRAPH_UNITTEST_H_
-#define V8_COMPILER_UNITTESTS_GRAPH_UNITTEST_H_
+#ifndef V8_COMPILER_GRAPH_UNITTEST_H_
+#define V8_COMPILER_GRAPH_UNITTEST_H_
+#include "src/compiler/common-operator.h"
+#include "src/compiler/compiler-unittests.h"
#include "src/compiler/graph.h"
#include "src/compiler/machine-operator.h"
-#include "test/compiler-unittests/common-operator-unittest.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace v8 {
@@ -23,7 +24,7 @@ namespace compiler {
using ::testing::Matcher;
-class GraphTest : public CommonOperatorTest {
+class GraphTest : public CompilerTest {
public:
explicit GraphTest(int parameters = 1);
virtual ~GraphTest();
@@ -41,9 +42,11 @@ class GraphTest : public CommonOperatorTest {
Matcher<Node*> IsFalseConstant();
Matcher<Node*> IsTrueConstant();
+ CommonOperatorBuilder* common() { return &common_; }
Graph* graph() { return &graph_; }
private:
+ CommonOperatorBuilder common_;
Graph graph_;
};
@@ -125,4 +128,4 @@ Matcher<Node*> IsTruncateInt64ToInt32(const Matcher<Node*>& input_matcher);
} // namespace internal
} // namespace v8
-#endif // V8_COMPILER_UNITTESTS_GRAPH_UNITTEST_H_
+#endif // V8_COMPILER_GRAPH_UNITTEST_H_
« no previous file with comments | « src/compiler/compiler-unittests.cc ('k') | src/compiler/graph-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698