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 <stdio.h> | 5 #include <stdio.h> |
6 #include <cmath> | 6 #include <cmath> |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include <GLES2/gl2.h> | 10 #include <GLES2/gl2.h> |
11 #include <GLES2/gl2ext.h> | 11 #include <GLES2/gl2ext.h> |
12 #include <GLES2/gl2extchromium.h> | 12 #include <GLES2/gl2extchromium.h> |
13 | 13 |
14 #include "base/at_exit.h" | 14 #include "base/at_exit.h" |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/file_util.h" | 17 #include "base/file_util.h" |
18 #include "base/message_loop.h" | 18 #include "base/message_loop.h" |
19 #include "base/run_loop.h" | 19 #include "base/run_loop.h" |
20 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
21 #include "base/time.h" | 21 #include "base/time/time.h" |
22 #include "content/common/gpu/client/gl_helper.h" | 22 #include "content/common/gpu/client/gl_helper.h" |
23 #include "content/common/gpu/client/gl_helper_scaling.h" | 23 #include "content/common/gpu/client/gl_helper_scaling.h" |
24 #include "content/public/test/unittest_test_suite.h" | 24 #include "content/public/test/unittest_test_suite.h" |
25 #include "content/test/content_test_suite.h" | 25 #include "content/test/content_test_suite.h" |
26 #include "media/base/video_frame.h" | 26 #include "media/base/video_frame.h" |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
28 #include "third_party/skia/include/core/SkBitmap.h" | 28 #include "third_party/skia/include/core/SkBitmap.h" |
29 #include "third_party/skia/include/core/SkTypes.h" | 29 #include "third_party/skia/include/core/SkTypes.h" |
30 #include "ui/gl/gl_surface.h" | 30 #include "ui/gl/gl_surface.h" |
31 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.
h" | 31 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.
h" |
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 #endif | 1245 #endif |
1246 #if defined(TOOLKIT_GTK) | 1246 #if defined(TOOLKIT_GTK) |
1247 gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess()); | 1247 gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess()); |
1248 #endif | 1248 #endif |
1249 gfx::GLSurface::InitializeOneOff(); | 1249 gfx::GLSurface::InitializeOneOff(); |
1250 | 1250 |
1251 content::UnitTestTestSuite runner(suite); | 1251 content::UnitTestTestSuite runner(suite); |
1252 base::MessageLoop message_loop; | 1252 base::MessageLoop message_loop; |
1253 return runner.Run(); | 1253 return runner.Run(); |
1254 } | 1254 } |
OLD | NEW |