v8/test/unittests/compiler/code-assembler-unittest.h
Florian Sattler 2c97e1458f [cleanup] Refactor compiler to use default members.
Fixing clang-tidy warning.

Bug: v8:8015
Change-Id: I7d885f0e2ba3cdf97de190166dc4cdd24dc0c11e
Reviewed-on: https://chromium-review.googlesource.com/1224091
Commit-Queue: Florian Sattler <sattlerf@google.com>
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55956}
2018-09-17 12:12:21 +00:00

38 lines
1.0 KiB
C++

// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_UNITTESTS_COMPILER_CODE_ASSEMBLER_UNITTEST_H_
#define V8_UNITTESTS_COMPILER_CODE_ASSEMBLER_UNITTEST_H_
#include "src/compiler/code-assembler.h"
#include "test/unittests/test-utils.h"
#include "testing/gmock-support.h"
namespace v8 {
namespace internal {
namespace compiler {
class CodeAssemblerTest : public TestWithIsolateAndZone {
public:
CodeAssemblerTest() = default;
~CodeAssemblerTest() override = default;
};
class CodeAssemblerTestState : public CodeAssemblerState {
public:
explicit CodeAssemblerTestState(CodeAssemblerTest* test);
};
class CodeAssemblerForTest : public CodeAssembler {
public:
explicit CodeAssemblerForTest(CodeAssemblerTestState* state)
: CodeAssembler(state) {}
};
} // namespace compiler
} // namespace internal
} // namespace v8
#endif // V8_UNITTESTS_COMPILER_CODE_ASSEMBLER_UNITTEST_H_