#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/modules/indexeddb/idb_value_wrapping.h"
#include <algorithm>
#include <limits>
#include <memory>
#include "base/memory/scoped_refptr.h"
#include "base/strings/strcat.h"
#include "base/test/scoped_feature_list.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/renderer/bindings/core/v8/script_value.h"
#include "third_party/blink/renderer/bindings/core/v8/serialization/serialization_tag.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/core/fileapi/blob.h"
#include "third_party/blink/renderer/modules/indexeddb/idb_key.h"
#include "third_party/blink/renderer/modules/indexeddb/idb_key_path.h"
#include "third_party/blink/renderer/modules/indexeddb/idb_value.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
#include "v8/include/v8.h"
namespace blink {
TEST(IDBValueWrapperTest, WriteVarIntOneByte) { … }
TEST(IDBValueWrapperTest, WriteVarIntMultiByte) { … }
TEST(IDBValueWrapperTest, WriteVarIntMultiByteEdgeCases) { … }
class IDBValueUnwrapperReadTestHelper { … };
TEST(IDBValueUnwrapperTest, ReadVarIntOneByte) { … }
TEST(IDBValueUnwrapperTest, ReadVarIntMultiBytes) { … }
TEST(IDBValueUnwrapperTest, ReadVarIntMultiByteEdgeCases) { … }
TEST(IDBValueUnwrapperTest, ReadVarIntTruncatedInput) { … }
TEST(IDBValueUnwrapperTest, ReadVarIntDenormalizedInput) { … }
TEST(IDBValueUnwrapperTest, WriteVarIntMaxUnsignedRoundtrip) { … }
TEST(IDBValueUnwrapperTest, ReadBytes) { … }
TEST(IDBValueUnwrapperTest, ReadBytesTruncatedInput) { … }
TEST(IDBValueUnwrapperTest, ReadBytesDenormalizedInput) { … }
TEST(IDBValueUnwrapperTest, IsWrapped) { … }
TEST(IDBValueUnwrapperTest, Compression) { … }
TEST(IDBValueUnwrapperTest, Decompression) { … }
}