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

Side by Side Diff: src/compiler/instruction-selector-unittest.h

Issue 540823002: Refactor common unit test code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes Created 6 years, 3 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
« no previous file with comments | « src/compiler/graph-unittest.h ('k') | src/compiler/instruction-selector-unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_
6 #define V8_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 10
11 #include "src/base/utils/random-number-generator.h" 11 #include "src/base/utils/random-number-generator.h"
12 #include "src/compiler/compiler-unittests.h"
13 #include "src/compiler/instruction-selector.h" 12 #include "src/compiler/instruction-selector.h"
14 #include "src/compiler/raw-machine-assembler.h" 13 #include "src/compiler/raw-machine-assembler.h"
14 #include "src/test/test-utils.h"
15 15
16 namespace v8 { 16 namespace v8 {
17 namespace internal { 17 namespace internal {
18 namespace compiler { 18 namespace compiler {
19 19
20 class InstructionSelectorTest : public CompilerTest { 20 class InstructionSelectorTest : public TestWithContext, public TestWithZone {
21 public: 21 public:
22 InstructionSelectorTest(); 22 InstructionSelectorTest();
23 virtual ~InstructionSelectorTest() {} 23 virtual ~InstructionSelectorTest();
24 24
25 base::RandomNumberGenerator* rng() { return &rng_; } 25 base::RandomNumberGenerator* rng() { return &rng_; }
26 26
27 class Stream; 27 class Stream;
28 28
29 enum StreamBuilderMode { 29 enum StreamBuilderMode {
30 kAllInstructions, 30 kAllInstructions,
31 kTargetInstructions, 31 kTargetInstructions,
32 kAllExceptNopInstructions 32 kAllExceptNopInstructions
33 }; 33 };
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 template <typename T> 196 template <typename T>
197 class InstructionSelectorTestWithParam 197 class InstructionSelectorTestWithParam
198 : public InstructionSelectorTest, 198 : public InstructionSelectorTest,
199 public ::testing::WithParamInterface<T> {}; 199 public ::testing::WithParamInterface<T> {};
200 200
201 } // namespace compiler 201 } // namespace compiler
202 } // namespace internal 202 } // namespace internal
203 } // namespace v8 203 } // namespace v8
204 204
205 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ 205 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_
OLDNEW
« no previous file with comments | « src/compiler/graph-unittest.h ('k') | src/compiler/instruction-selector-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698