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

Side by Side Diff: src/test/run-all-unittests.cc

Issue 609253002: Fix initialization of assert scopes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/isolate.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 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 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 "include/libplatform/libplatform.h" 5 #include "include/libplatform/libplatform.h"
6 #include "include/v8.h" 6 #include "include/v8.h"
7 #include "src/base/compiler-specific.h" 7 #include "src/base/compiler-specific.h"
8 #include "src/v8.h"
9 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
10 9
11 namespace { 10 namespace {
12 11
13 class DefaultPlatformEnvironment FINAL : public ::testing::Environment { 12 class DefaultPlatformEnvironment FINAL : public ::testing::Environment {
14 public: 13 public:
15 DefaultPlatformEnvironment() : platform_(NULL) {} 14 DefaultPlatformEnvironment() : platform_(NULL) {}
16 ~DefaultPlatformEnvironment() {} 15 ~DefaultPlatformEnvironment() {}
17 16
18 virtual void SetUp() OVERRIDE { 17 virtual void SetUp() OVERRIDE {
(...skipping 13 matching lines...) Expand all
32 } 31 }
33 32
34 private: 33 private:
35 v8::Platform* platform_; 34 v8::Platform* platform_;
36 }; 35 };
37 36
38 } // namespace 37 } // namespace
39 38
40 39
41 int main(int argc, char** argv) { 40 int main(int argc, char** argv) {
42 // This forces some thread local key initialization that may be needed to
43 // print out the names of the unit tests.
44 i::V8::Initialize();
45 testing::InitGoogleMock(&argc, argv); 41 testing::InitGoogleMock(&argc, argv);
46 testing::AddGlobalTestEnvironment(new DefaultPlatformEnvironment); 42 testing::AddGlobalTestEnvironment(new DefaultPlatformEnvironment);
47 v8::V8::SetFlagsFromCommandLine(&argc, argv, true); 43 v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
48 return RUN_ALL_TESTS(); 44 return RUN_ALL_TESTS();
49 } 45 }
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698