chromium/v8/test/unittests/wasm/decoder-unittest.cc

// Copyright 2016 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.

#include "test/unittests/test-utils.h"

#include "src/base/overflowing-math.h"
#include "src/objects/objects-inl.h"
#include "src/wasm/decoder.h"
#include "test/common/wasm/wasm-macro-gen.h"

namespace v8 {
namespace internal {
namespace wasm {

class DecoderTest : public TestWithZone {};

#define CHECK_UINT32V_INLINE

#define CHECK_INT32V_INLINE

#define CHECK_UINT64V_INLINE

#define CHECK_INT64V_INLINE

TEST_F(DecoderTest, ReadU32v_OneByte) {}

TEST_F(DecoderTest, ReadU32v_TwoByte) {}

TEST_F(DecoderTest, ReadU32v_ThreeByte) {}

TEST_F(DecoderTest, ReadU32v_FourByte) {}

TEST_F(DecoderTest, ReadU32v_FiveByte) {}

TEST_F(DecoderTest, ReadU32v_various) {}

TEST_F(DecoderTest, ReadI32v_OneByte) {}

TEST_F(DecoderTest, ReadI32v_TwoByte) {}

TEST_F(DecoderTest, ReadI32v_ThreeByte) {}

TEST_F(DecoderTest, ReadI32v_FourByte) {}

TEST_F(DecoderTest, ReadI32v_FiveByte) {}

TEST_F(DecoderTest, ReadU32v_off_end1) {}

TEST_F(DecoderTest, ReadU32v_off_end2) {}

TEST_F(DecoderTest, ReadU32v_off_end3) {}

TEST_F(DecoderTest, ReadU32v_off_end4) {}

TEST_F(DecoderTest, ReadU32v_off_end5) {}

TEST_F(DecoderTest, ReadU32v_extra_bits) {}

TEST_F(DecoderTest, ReadI32v_extra_bits_negative) {}

TEST_F(DecoderTest, ReadI32v_extra_bits_positive) {}

TEST_F(DecoderTest, ReadU32v_Bits) {}

TEST_F(DecoderTest, ReadU64v_OneByte) {}

TEST_F(DecoderTest, ReadI64v_OneByte) {}

TEST_F(DecoderTest, ReadU64v_PowerOf2) {}

TEST_F(DecoderTest, ReadU64v_Bits) {}

TEST_F(DecoderTest, ReadI64v_Bits) {}

TEST_F(DecoderTest, ReadU64v_extra_bits) {}

TEST_F(DecoderTest, ReadI64v_extra_bits_negative) {}

TEST_F(DecoderTest, ReadI64v_extra_bits_positive) {}

TEST_F(DecoderTest, FailOnNullData) {}

#undef CHECK_UINT32V_INLINE
#undef CHECK_INT32V_INLINE
#undef CHECK_UINT64V_INLINE
#undef CHECK_INT64V_INLINE

}  // namespace wasm
}  // namespace internal
}  // namespace v8