Commit 3968db68 authored by dcarney@chromium.org's avatar dcarney@chromium.org

initialize v8 early in unittests

BUG=
R=jkummerow@chromium.org

Review URL: https://codereview.chromium.org/608773002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24256 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 28e733e7
......@@ -5,6 +5,7 @@
#include "include/libplatform/libplatform.h"
#include "include/v8.h"
#include "src/base/compiler-specific.h"
#include "src/v8.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace {
......@@ -38,6 +39,9 @@ class DefaultPlatformEnvironment FINAL : public ::testing::Environment {
int main(int argc, char** argv) {
// This forces some thread local key initialization that may be needed to
// print out the names of the unit tests.
i::V8::Initialize();
testing::InitGoogleMock(&argc, argv);
testing::AddGlobalTestEnvironment(new DefaultPlatformEnvironment);
v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment