Line data Source code
1 : // Copyright 2017 the V8 project authors. All rights reserved.
2 : // Use of this source code is governed by a BSD-style license that can be
3 : // found in the LICENSE file.
4 :
5 : #ifndef V8_UNITTESTS_CODE_STUB_ASSEMBLER_UNITTEST_H_
6 : #define V8_UNITTESTS_CODE_STUB_ASSEMBLER_UNITTEST_H_
7 :
8 : #include "src/code-stub-assembler.h"
9 : #include "test/unittests/test-utils.h"
10 : #include "testing/gmock-support.h"
11 :
12 : namespace v8 {
13 : namespace internal {
14 :
15 : class CodeStubAssemblerTest : public TestWithIsolateAndZone {
16 : public:
17 3 : CodeStubAssemblerTest() = default;
18 6 : ~CodeStubAssemblerTest() override = default;
19 : };
20 :
21 3 : class CodeStubAssemblerTestState : public compiler::CodeAssemblerState {
22 : public:
23 : explicit CodeStubAssemblerTestState(CodeStubAssemblerTest* test);
24 : };
25 :
26 3 : class CodeStubAssemblerForTest : public CodeStubAssembler {
27 : public:
28 : explicit CodeStubAssemblerForTest(CodeStubAssemblerTestState* state)
29 3 : : CodeStubAssembler(state) {}
30 : };
31 :
32 : } // namespace internal
33 : } // namespace v8
34 :
35 : #endif // V8_UNITTESTS_CODE_STUB_ASSEMBLER_UNITTEST_H_
|