#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/bindings/core/v8/native_value_traits_impl.h"
#include <numeric>
#include <utility>
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest-death-test.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/idl_types.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_internals.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_test_sequence_callback.h"
#include "third_party/blink/renderer/core/testing/internals.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
namespace blink {
namespace {
v8::Local<v8::Object> EvaluateScriptForObject(V8TestingScope& scope,
const char* source) { … }
v8::Local<v8::Array> EvaluateScriptForArray(V8TestingScope& scope,
const char* source) { … }
TEST(NativeValueTraitsImplTest, IDLInterface) { … }
TEST(NativeValueTraitsImplTest, IDLRecord) { … }
TEST(NativeValueTraitsImplTest, IDLSequence) { … }
TEST(NativeValueTraitsImplTest, IDLBigint) { … }
template <typename Arr>
v8::Local<Arr> MakeArray(v8::Isolate* isolate, size_t size) { … }
PassAsSpanShared;
PassAsSpanNoShared;
TEST(NativeValueTraitsImplTest, PassAsSpanBasic) { … }
TEST(NativeValueTraitsImplTest, PassAsSpanShared) { … }
TEST(NativeValueTraitsImplTest, PassAsSpanDetached) { … }
TEST(NativeValueTraitsImplTest, PassAsSpanDataView) { … }
TEST(NativeValueTraitsImplTest, PassAsSpanInlineStorage) { … }
TEST(NativeValueTraitsImplTest, PassAsSpanBadType) { … }
TEST(NativeValueTraitsImplTest, PassAsSpanMissingOpt) { … }
TEST(NativeValueTraitsImplTest, PassAsSpanCopy) { … }
TypedPassAsSpanShared;
TypedPassAsSpanNoShared;
TEST(NativeValueTraitsImplTest, TypedPassAsSpanBasic) { … }
TEST(NativeValueTraitsImplTest, TypedPassAsSpanSubarray) { … }
TEST(NativeValueTraitsImplTest, TypedPassAsSpanBadType) { … }
TEST(NativeValueTraitsImplTest, TypedPassAsSpanUint8) { … }
}
}