| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium 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 "base/at_exit.h" | 5 #include "base/at_exit.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "testing/gmock/include/gmock/gmock.h" | 7 #include "testing/gmock/include/gmock/gmock.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "third_party/angle_dx11/include/GLSLANG/ShaderLang.h" | 9 #include "third_party/angle/include/GLSLANG/ShaderLang.h" |
| 10 | 10 |
| 11 int main(int argc, char** argv) { | 11 int main(int argc, char** argv) { |
| 12 // On Android, AtExitManager is created in | 12 // On Android, AtExitManager is created in |
| 13 // testing/android/native_test_wrapper.cc before main() is called. | 13 // testing/android/native_test_wrapper.cc before main() is called. |
| 14 // The same thing is also done in base/test/test_suite.cc | 14 // The same thing is also done in base/test/test_suite.cc |
| 15 #if !defined(OS_ANDROID) | 15 #if !defined(OS_ANDROID) |
| 16 base::AtExitManager exit_manager; | 16 base::AtExitManager exit_manager; |
| 17 #endif | 17 #endif |
| 18 CommandLine::Init(argc, argv); | 18 CommandLine::Init(argc, argv); |
| 19 testing::InitGoogleMock(&argc, argv); | 19 testing::InitGoogleMock(&argc, argv); |
| 20 ShInitialize(); | 20 ShInitialize(); |
| 21 int rt = RUN_ALL_TESTS(); | 21 int rt = RUN_ALL_TESTS(); |
| 22 ShFinalize(); | 22 ShFinalize(); |
| 23 return rt; | 23 return rt; |
| 24 } | 24 } |
| OLD | NEW |