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/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/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" |
(...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1253 #endif | 1253 #endif |
1254 #if defined(TOOLKIT_GTK) | 1254 #if defined(TOOLKIT_GTK) |
1255 gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess()); | 1255 gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess()); |
1256 #endif | 1256 #endif |
1257 gfx::GLSurface::InitializeOneOff(); | 1257 gfx::GLSurface::InitializeOneOff(); |
1258 | 1258 |
1259 content::UnitTestTestSuite runner(suite); | 1259 content::UnitTestTestSuite runner(suite); |
1260 base::MessageLoop message_loop; | 1260 base::MessageLoop message_loop; |
1261 return runner.Run(); | 1261 return runner.Run(); |
1262 } | 1262 } |
OLD | NEW |