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

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

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

#include "src/objects/objects-inl.h"

#include "src/wasm/module-decoder.h"
#include "src/wasm/streaming-decoder.h"

#include "src/objects/descriptor-array.h"
#include "src/objects/dictionary.h"
#include "test/common/wasm/wasm-macro-gen.h"

namespace v8 {
namespace internal {
namespace wasm {

struct MockStreamingResult {};

class NoTracer {};

class MockStreamingProcessor : public StreamingProcessor {};

class WasmStreamingDecoderTest : public ::testing::Test {};

TEST_F(WasmStreamingDecoderTest, EmptyStream) {}

TEST_F(WasmStreamingDecoderTest, IncompleteModuleHeader) {}

TEST_F(WasmStreamingDecoderTest, MagicAndVersion) {}

TEST_F(WasmStreamingDecoderTest, BadMagic) {}

TEST_F(WasmStreamingDecoderTest, BadVersion) {}

TEST_F(WasmStreamingDecoderTest, OneSection) {}

TEST_F(WasmStreamingDecoderTest, OneSection_b) {}

TEST_F(WasmStreamingDecoderTest, OneShortSection) {}

TEST_F(WasmStreamingDecoderTest, OneShortSection_b) {}

TEST_F(WasmStreamingDecoderTest, OneEmptySection) {}

TEST_F(WasmStreamingDecoderTest, OneSectionNotEnoughPayload1) {}

TEST_F(WasmStreamingDecoderTest, OneSectionNotEnoughPayload2) {}

TEST_F(WasmStreamingDecoderTest, OneSectionInvalidLength) {}

TEST_F(WasmStreamingDecoderTest, TwoLongSections) {}

TEST_F(WasmStreamingDecoderTest, TwoShortSections) {}

TEST_F(WasmStreamingDecoderTest, TwoSectionsShortLong) {}

TEST_F(WasmStreamingDecoderTest, TwoEmptySections) {}

TEST_F(WasmStreamingDecoderTest, OneFunction) {}

TEST_F(WasmStreamingDecoderTest, OneShortFunction) {}

TEST_F(WasmStreamingDecoderTest, EmptyFunction) {}

TEST_F(WasmStreamingDecoderTest, TwoFunctions) {}

TEST_F(WasmStreamingDecoderTest, TwoFunctions_b) {}

TEST_F(WasmStreamingDecoderTest, CodeSectionLengthZero) {}

TEST_F(WasmStreamingDecoderTest, CodeSectionLengthTooHigh) {}

TEST_F(WasmStreamingDecoderTest, CodeSectionLengthTooHighZeroFunctions) {}

TEST_F(WasmStreamingDecoderTest, CodeSectionLengthTooLow) {}

TEST_F(WasmStreamingDecoderTest, CodeSectionLengthTooLowEndsInNumFunctions) {}

TEST_F(WasmStreamingDecoderTest, CodeSectionLengthTooLowEndsInFunctionLength) {}

TEST_F(WasmStreamingDecoderTest, NumberOfFunctionsTooHigh) {}

TEST_F(WasmStreamingDecoderTest, NumberOfFunctionsTooLow) {}

TEST_F(WasmStreamingDecoderTest, TwoCodeSections) {}

TEST_F(WasmStreamingDecoderTest, UnknownSection) {}

TEST_F(WasmStreamingDecoderTest, UnknownSectionSandwich) {}

TEST_F(WasmStreamingDecoderTest, InvalidSectionCode) {}

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