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

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

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/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/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #if defined(OS_MACOSX) 9 #if defined(OS_MACOSX)
10 #include "base/mac/scoped_nsautorelease_pool.h" 10 #include "base/mac/scoped_nsautorelease_pool.h"
(...skipping 17 matching lines...) Expand all
28 return testSuite->Run(); 28 return testSuite->Run();
29 } 29 }
30 30
31 } // namespace 31 } // namespace
32 32
33 int main(int argc, char** argv) { 33 int main(int argc, char** argv) {
34 #if defined(OS_ANDROID) 34 #if defined(OS_ANDROID)
35 ui::gl::android::RegisterJni(base::android::AttachCurrentThread()); 35 ui::gl::android::RegisterJni(base::android::AttachCurrentThread());
36 #endif 36 #endif
37 base::TestSuite test_suite(argc, argv); 37 base::TestSuite test_suite(argc, argv);
38 CommandLine::Init(argc, argv); 38 base::CommandLine::Init(argc, argv);
39 #if defined(OS_MACOSX) 39 #if defined(OS_MACOSX)
40 base::mac::ScopedNSAutoreleasePool pool; 40 base::mac::ScopedNSAutoreleasePool pool;
41 #endif 41 #endif
42 gfx::GLSurface::InitializeOneOff(); 42 gfx::GLSurface::InitializeOneOff();
43 ::gles2::Initialize(); 43 ::gles2::Initialize();
44 gpu::ApplyGpuDriverBugWorkarounds(CommandLine::ForCurrentProcess()); 44 gpu::ApplyGpuDriverBugWorkarounds(base::CommandLine::ForCurrentProcess());
45 testing::InitGoogleMock(&argc, argv); 45 testing::InitGoogleMock(&argc, argv);
46 return base::LaunchUnitTestsSerially( 46 return base::LaunchUnitTestsSerially(
47 argc, 47 argc,
48 argv, 48 argv,
49 base::Bind(&RunHelper, base::Unretained(&test_suite))); 49 base::Bind(&RunHelper, base::Unretained(&test_suite)));
50 } 50 }
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_clear_framebuffer_unittest.cc ('k') | gpu/config/gpu_driver_bug_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698