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

Unified Diff: src/compiler/common-operator-unittest.cc

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/change-lowering-unittest.cc ('k') | src/compiler/compiler.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-operator-unittest.cc
diff --git a/test/compiler-unittests/common-operator-unittest.cc b/src/compiler/common-operator-unittest.cc
similarity index 81%
rename from test/compiler-unittests/common-operator-unittest.cc
rename to src/compiler/common-operator-unittest.cc
index 79a34df2a997c0e5d1c2f09f7e69fe364291d571..109873be9ea37e42d0da2906e60eb8569b3fae3d 100644
--- a/test/compiler-unittests/common-operator-unittest.cc
+++ b/src/compiler/common-operator-unittest.cc
@@ -2,21 +2,31 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "test/compiler-unittests/common-operator-unittest.h"
-
+#include "src/compiler/common-operator.h"
+#include "src/compiler/compiler-unittests.h"
#include "src/compiler/operator-properties-inl.h"
namespace v8 {
namespace internal {
namespace compiler {
-static const int kArguments[] = {1, 5, 6, 42, 100, 10000, kMaxInt};
+namespace {
+
+class CommonOperatorTest : public CompilerTest {
+ public:
+ CommonOperatorTest() : common_(zone()) {}
+ virtual ~CommonOperatorTest() {}
+
+ CommonOperatorBuilder* common() { return &common_; }
+ private:
+ CommonOperatorBuilder common_;
+};
-CommonOperatorTest::CommonOperatorTest() : common_(zone()) {}
+const int kArguments[] = {1, 5, 6, 42, 100, 10000, kMaxInt};
-CommonOperatorTest::~CommonOperatorTest() {}
+} // namespace
TEST_F(CommonOperatorTest, ControlEffect) {
« no previous file with comments | « src/compiler/change-lowering-unittest.cc ('k') | src/compiler/compiler.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698