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

Side by Side Diff: testing/embedder_test.cpp

Issue 2053603002: Roll V8 and its deps and update ICU initialization call (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: updates 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 | « samples/pdfium_test.cc ('k') | testing/test_support.h » ('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/embedder_test.h" 5 #include "testing/embedder_test.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 memset(&hints_, 0, sizeof(hints_)); 46 memset(&hints_, 0, sizeof(hints_));
47 memset(&file_access_, 0, sizeof(file_access_)); 47 memset(&file_access_, 0, sizeof(file_access_));
48 memset(&file_avail_, 0, sizeof(file_avail_)); 48 memset(&file_avail_, 0, sizeof(file_avail_));
49 delegate_ = default_delegate_.get(); 49 delegate_ = default_delegate_.get();
50 50
51 #ifdef PDF_ENABLE_V8 51 #ifdef PDF_ENABLE_V8
52 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 52 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
53 InitializeV8ForPDFium(g_exe_path_, std::string(), &natives_, &snapshot_, 53 InitializeV8ForPDFium(g_exe_path_, std::string(), &natives_, &snapshot_,
54 &platform_); 54 &platform_);
55 #else 55 #else
56 InitializeV8ForPDFium(&platform_); 56 InitializeV8ForPDFium(g_exe_path_, &platform_);
57 #endif // V8_USE_EXTERNAL_STARTUP_DATA 57 #endif // V8_USE_EXTERNAL_STARTUP_DATA
58 #endif // FPDF_ENABLE_V8 58 #endif // FPDF_ENABLE_V8
59 } 59 }
60 60
61 EmbedderTest::~EmbedderTest() { 61 EmbedderTest::~EmbedderTest() {
62 #ifdef PDF_ENABLE_V8 62 #ifdef PDF_ENABLE_V8
63 v8::V8::ShutdownPlatform(); 63 v8::V8::ShutdownPlatform();
64 delete platform_; 64 delete platform_;
65 #endif // PDF_ENABLE_V8 65 #endif // PDF_ENABLE_V8
66 } 66 }
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 } 317 }
318 318
319 // Can't use gtest-provided main since we need to stash the path to the 319 // Can't use gtest-provided main since we need to stash the path to the
320 // executable in order to find the external V8 binary data files. 320 // executable in order to find the external V8 binary data files.
321 int main(int argc, char** argv) { 321 int main(int argc, char** argv) {
322 g_exe_path_ = argv[0]; 322 g_exe_path_ = argv[0];
323 testing::InitGoogleTest(&argc, argv); 323 testing::InitGoogleTest(&argc, argv);
324 testing::InitGoogleMock(&argc, argv); 324 testing::InitGoogleMock(&argc, argv);
325 return RUN_ALL_TESTS(); 325 return RUN_ALL_TESTS();
326 } 326 }
OLDNEW
« no previous file with comments | « samples/pdfium_test.cc ('k') | testing/test_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698