Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include <cstdlib> | |
| 6 #include <cstring> | |
| 7 #include <memory> | |
| 8 | |
| 9 #include "include/libplatform/libplatform.h" | |
| 10 #include "include/v8.h" | |
| 11 #include "testing/gmock/include/gmock/gmock.h" | |
| 12 | |
| 13 int main(int argc, char** argv) { | |
| 14 testing::InitGoogleMock(&argc, argv); | |
| 15 std::auto_ptr<v8::Platform> platform((v8::platform::CreateDefaultPlatform())); | |
| 16 v8::V8::InitializePlatform(platform.get()); | |
| 17 v8::V8::SetFlagsFromCommandLine(&argc, argv, true); | |
| 18 int result = 127; | |
| 19 if (v8::V8::Initialize()) { | |
|
jochen (gone - plz use gerrit)
2014/08/05 07:36:19
consider doing less here as unit tests for base or
Benedikt Meurer
2014/08/05 08:01:53
Done.
| |
| 20 result = RUN_ALL_TESTS(); | |
| 21 v8::V8::Dispose(); | |
| 22 } | |
| 23 v8::V8::ShutdownPlatform(); | |
| 24 return result; | |
| 25 } | |
| OLD | NEW |