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

Unified Diff: content/public/test/unittest_test_suite.cc

Issue 594603003: Infrastructure for reading V8's initial snapshot from external files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android tests Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/public/test/unittest_test_suite.cc
diff --git a/content/public/test/unittest_test_suite.cc b/content/public/test/unittest_test_suite.cc
index 2a6c6b8e9fbb97f4d29a8a2006557330038c3d61..4afa85d325b3bb14e4ac97586fd88be29c99e2fc 100644
--- a/content/public/test/unittest_test_suite.cc
+++ b/content/public/test/unittest_test_suite.cc
@@ -12,11 +12,20 @@
#endif
#include "third_party/WebKit/public/web/WebKit.h"
+#ifdef V8_USE_EXTERNAL_STARTUP_DATA
+#include "gin/public/isolate_holder.h"
+#endif
+
namespace content {
UnitTestTestSuite::UnitTestTestSuite(base::TestSuite* test_suite)
: test_suite_(test_suite) {
DCHECK(test_suite);
+
+#ifdef V8_USE_EXTERNAL_STARTUP_DATA
+ gin::IsolateHolder::LoadV8Snapshot();
rmcilroy 2014/10/06 15:41:03 You are already doing this in TestBlinkWebUnitTest
baixo 2014/10/07 14:53:27 Done.
+#endif
+
#if !defined(OS_IOS)
blink_test_support_.reset(new TestBlinkWebUnitTestSupport);
#endif

Powered by Google App Engine
This is Rietveld 408576698