From 3f8ee5e6b4e42fc77b4716b23ccd00840e24e250 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 9 Feb 2018 18:26:09 +0000 Subject: Move CFX_V8 testing from embeddertest to unittest. Test the lowest layer without firing up the whole library. Requires firing up v8 in the unit test main, though. Move array buffer allocator to cfx_v8 to allow building isolates. Change-Id: I9a56d503a48e0e555d3310f2997fa12137695860 Reviewed-on: https://pdfium-review.googlesource.com/26130 Commit-Queue: Tom Sepez Reviewed-by: dsinclair --- fxjs/fxjs_v8.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'fxjs/fxjs_v8.h') diff --git a/fxjs/fxjs_v8.h b/fxjs/fxjs_v8.h index 831f839fcc..9ef746018c 100644 --- a/fxjs/fxjs_v8.h +++ b/fxjs/fxjs_v8.h @@ -109,13 +109,6 @@ class FXJS_PerIsolateData { explicit FXJS_PerIsolateData(v8::Isolate* pIsolate); }; -class FXJS_ArrayBufferAllocator : public v8::ArrayBuffer::Allocator { - static const size_t kMaxAllowedBytes = 0x10000000; - void* Allocate(size_t length) override; - void* AllocateUninitialized(size_t length) override; - void Free(void* data, size_t length) override; -}; - void FXJS_Initialize(unsigned int embedderDataSlot, v8::Isolate* pIsolate); void FXJS_Release(); -- cgit v1.2.3