Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Side by Side Diff: testing/js_embedder_test.cpp

Issue 2053043002: Untangle bad depdenency from fxjse/ to fpdfsdk/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@move_fxjse
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « testing/DEPS ('k') | xfa.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 PDFium Authors. All rights reserved. 1 // Copyright 2015 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "testing/js_embedder_test.h" 5 #include "testing/js_embedder_test.h"
6 6
7 #include "fxjse/include/fxjs_perisolatedata.h"
8
7 JSEmbedderTest::JSEmbedderTest() 9 JSEmbedderTest::JSEmbedderTest()
8 : m_pArrayBufferAllocator(new FXJS_ArrayBufferAllocator), 10 : m_pArrayBufferAllocator(new FXJS_ArrayBufferAllocator),
9 m_pIsolate(nullptr) {} 11 m_pIsolate(nullptr) {}
10 12
11 JSEmbedderTest::~JSEmbedderTest() {} 13 JSEmbedderTest::~JSEmbedderTest() {}
12 14
13 void JSEmbedderTest::SetUp() { 15 void JSEmbedderTest::SetUp() {
14 v8::Isolate::CreateParams params; 16 v8::Isolate::CreateParams params;
15 params.array_buffer_allocator = m_pArrayBufferAllocator.get(); 17 params.array_buffer_allocator = m_pArrayBufferAllocator.get();
16 m_pIsolate = v8::Isolate::New(params); 18 m_pIsolate = v8::Isolate::New(params);
(...skipping 17 matching lines...) Expand all
34 m_pIsolate = nullptr; 36 m_pIsolate = nullptr;
35 } 37 }
36 38
37 v8::Isolate* JSEmbedderTest::isolate() { 39 v8::Isolate* JSEmbedderTest::isolate() {
38 return m_pIsolate; 40 return m_pIsolate;
39 } 41 }
40 42
41 v8::Local<v8::Context> JSEmbedderTest::GetV8Context() { 43 v8::Local<v8::Context> JSEmbedderTest::GetV8Context() {
42 return m_pPersistentContext.Get(m_pIsolate); 44 return m_pPersistentContext.Get(m_pIsolate);
43 } 45 }
OLDNEW
« no previous file with comments | « testing/DEPS ('k') | xfa.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698