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

Side by Side Diff: test/unittests/compiler/value-numbering-reducer-unittest.cc

Issue 615393002: Move unit tests to test/unittests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <limits> 5 #include <limits>
6 6
7 #include "src/compiler/graph.h" 7 #include "src/compiler/graph.h"
8 #include "src/compiler/value-numbering-reducer.h" 8 #include "src/compiler/value-numbering-reducer.h"
9 #include "src/test/test-utils.h" 9 #include "test/unittests/test-utils.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler { 13 namespace compiler {
14 14
15 namespace { 15 namespace {
16 16
17 const SimpleOperator kOp0(0, Operator::kNoProperties, 0, 1, "op0"); 17 const SimpleOperator kOp0(0, Operator::kNoProperties, 0, 1, "op0");
18 const SimpleOperator kOp1(1, Operator::kNoProperties, 1, 1, "op1"); 18 const SimpleOperator kOp1(1, Operator::kNoProperties, 1, 1, "op1");
19 19
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 TEST_F(ValueNumberingReducerTest, WontReplaceNodeWithItself) { 112 TEST_F(ValueNumberingReducerTest, WontReplaceNodeWithItself) {
113 Node* n = graph()->NewNode(&kOp0); 113 Node* n = graph()->NewNode(&kOp0);
114 EXPECT_FALSE(Reduce(n).Changed()); 114 EXPECT_FALSE(Reduce(n).Changed());
115 EXPECT_FALSE(Reduce(n).Changed()); 115 EXPECT_FALSE(Reduce(n).Changed());
116 } 116 }
117 117
118 } // namespace compiler 118 } // namespace compiler
119 } // namespace internal 119 } // namespace internal
120 } // namespace v8 120 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698