d8864701fd
Contributed by kanghua.yu@intel.com. Bug: None Change-Id: I5651ef38eb0c08deb97770a5eaa985dba2dab9a9 Reviewed-on: https://chromium-review.googlesource.com/604648 Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Reviewed-by: Igor Sheludko <ishell@chromium.org> Commit-Queue: Pan Deng <pan.deng@intel.com> Cr-Commit-Position: refs/heads/master@{#47968}
38 lines
1010 B
C++
38 lines
1010 B
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() {}
|
|
~CodeAssemblerTest() override {}
|
|
};
|
|
|
|
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_
|