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

Side by Side Diff: gpu/command_buffer/tests/command_buffer_gles2_tests_main.cc

Issue 1878133003: Revert of command_buffer_gles2: Implement EGL default Display as a global object (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@command_buffer_gles2-multiple-contexts
Patch Set: Created 4 years, 8 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
OLDNEW
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"
12 #include "testing/gmock/include/gmock/gmock.h" 13 #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
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 }
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_mock.h ('k') | gpu/command_buffer/tests/egl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698