OLD | NEW |
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 "src/compiler/compiler-unittests.h" |
6 #include "src/isolate-inl.h" | 7 #include "src/isolate-inl.h" |
7 #include "test/compiler-unittests/compiler-unittests.h" | |
8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
9 | 9 |
10 using testing::IsNull; | 10 using testing::IsNull; |
11 using testing::NotNull; | 11 using testing::NotNull; |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 namespace compiler { | 15 namespace compiler { |
16 | 16 |
17 // static | 17 // static |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 v8::V8::Dispose(); | 72 v8::V8::Dispose(); |
73 v8::V8::ShutdownPlatform(); | 73 v8::V8::ShutdownPlatform(); |
74 delete platform_; | 74 delete platform_; |
75 platform_ = NULL; | 75 platform_ = NULL; |
76 } | 76 } |
77 | 77 |
78 private: | 78 private: |
79 v8::Platform* platform_; | 79 v8::Platform* platform_; |
80 }; | 80 }; |
81 | 81 |
82 } | 82 } // namespace |
83 | 83 |
84 | 84 |
85 int main(int argc, char** argv) { | 85 int main(int argc, char** argv) { |
86 testing::InitGoogleMock(&argc, argv); | 86 testing::InitGoogleMock(&argc, argv); |
87 testing::AddGlobalTestEnvironment(new CompilerTestEnvironment); | 87 testing::AddGlobalTestEnvironment(new CompilerTestEnvironment); |
88 v8::V8::SetFlagsFromCommandLine(&argc, argv, true); | 88 v8::V8::SetFlagsFromCommandLine(&argc, argv, true); |
89 return RUN_ALL_TESTS(); | 89 return RUN_ALL_TESTS(); |
90 } | 90 } |
OLD | NEW |