OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 6 #include "base/bind.h" |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/test/launcher/unit_test_launcher.h" | 8 #include "base/test/launcher/unit_test_launcher.h" |
9 #include "base/test/test_suite.h" | 9 #include "base/test/test_suite.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 } // namespace | 27 } // namespace |
28 | 28 |
29 int main(int argc, char** argv) { | 29 int main(int argc, char** argv) { |
30 // On Android, AtExitManager is created in | 30 // On Android, AtExitManager is created in |
31 // testing/android/native_test_wrapper.cc before main() is called. | 31 // testing/android/native_test_wrapper.cc before main() is called. |
32 // The same thing is also done in base/test/test_suite.cc | 32 // The same thing is also done in base/test/test_suite.cc |
33 #if !defined(OS_ANDROID) | 33 #if !defined(OS_ANDROID) |
34 base::AtExitManager exit_manager; | 34 base::AtExitManager exit_manager; |
35 #endif | 35 #endif |
36 CommandLine::Init(argc, argv); | 36 CommandLine::Init(argc, argv); |
37 gfx::InitializeGLBindings(gfx::kGLImplementationMockGL); | 37 gfx::InitializeStaticGLBindings(gfx::kGLImplementationMockGL); |
| 38 gfx::InitializeDynamicGLBindings(gfx::kGLImplementationMockGL, NULL); |
38 testing::InitGoogleMock(&argc, argv); | 39 testing::InitGoogleMock(&argc, argv); |
39 return base::LaunchUnitTests(argc, | 40 return base::LaunchUnitTests(argc, |
40 argv, | 41 argv, |
41 base::Bind(&RunTestSuite, argc, argv)); | 42 base::Bind(&RunTestSuite, argc, argv)); |
42 } | 43 } |
OLD | NEW |