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

Side by Side Diff: test/unittests/unittests.cc

Issue 439863004: Initial import of unittests using GTest/GMock. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix invalid EXPECT_EQ Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698