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/bind.h" | 5 #include "base/bind.h" |
6 #include "base/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
7 #if defined(OS_MACOSX) | 7 #if defined(OS_MACOSX) |
8 #include "base/mac/scoped_nsautorelease_pool.h" | 8 #include "base/mac/scoped_nsautorelease_pool.h" |
9 #endif | 9 #endif |
10 #include "base/test/launcher/unit_test_launcher.h" | 10 #include "base/test/launcher/unit_test_launcher.h" |
11 #include "base/test/test_suite.h" | 11 #include "base/test/test_suite.h" |
12 #include "gpu/gles2_conform_support/egl/test_support.h" | |
13 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
| 13 #include "gpu/gles2_conform_support/egl/test_support.h" // NOLINT |
14 | 14 |
15 // This file implements the main entry point for tests for command_buffer_gles2, | 15 // This file implements the main entry point for tests for command_buffer_gles2, |
16 // the mode of command buffer where the code is compiled as a standalone dynamic | 16 // the mode of command buffer where the code is compiled as a standalone dynamic |
17 // library and exposed through EGL API. | 17 // library and exposed through EGL API. |
18 namespace { | 18 namespace { |
19 | 19 |
20 int RunHelper(base::TestSuite* testSuite) { | 20 int RunHelper(base::TestSuite* testSuite) { |
21 #if defined(USE_OZONE) | 21 #if defined(USE_OZONE) |
22 base::MessageLoopForUI main_loop; | 22 base::MessageLoopForUI main_loop; |
23 #else | 23 #else |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 #endif | 58 #endif |
59 | 59 |
60 base::TestSuite test_suite(argc, argv); | 60 base::TestSuite test_suite(argc, argv); |
61 #if defined(OS_MACOSX) | 61 #if defined(OS_MACOSX) |
62 base::mac::ScopedNSAutoreleasePool pool; | 62 base::mac::ScopedNSAutoreleasePool pool; |
63 #endif | 63 #endif |
64 testing::InitGoogleMock(&argc, argv); | 64 testing::InitGoogleMock(&argc, argv); |
65 return base::LaunchUnitTestsSerially( | 65 return base::LaunchUnitTestsSerially( |
66 argc, argv, base::Bind(&RunHelper, base::Unretained(&test_suite))); | 66 argc, argv, base::Bind(&RunHelper, base::Unretained(&test_suite))); |
67 } | 67 } |
OLD | NEW |