| 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 "android_webview/browser/deferred_gpu_command_service.h" | 5 #include "android_webview/browser/deferred_gpu_command_service.h" |
| 6 #include "android_webview/native/android_webview_jni_registrar.h" | 6 #include "android_webview/native/android_webview_jni_registrar.h" |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/test/test_suite.h" | 9 #include "base/test/test_suite.h" |
| 10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
| 11 #include "ui/gl/gl_surface.h" | 11 #include "ui/gl/gl_surface.h" |
| 12 #include "ui/gl/test/gl_surface_test_support.h" | 12 #include "ui/gl/test/gl_surface_test_support.h" |
| 13 | 13 |
| 14 int main(int argc, char** argv) { | 14 int main(int argc, char** argv) { |
| 15 android_webview::RegisterJni(base::android::AttachCurrentThread()); | 15 android_webview::RegisterJni(base::android::AttachCurrentThread()); |
| 16 base::CommandLine::ForCurrentProcess()->AppendSwitch( | 16 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
| 17 switches::kSingleProcess); | 17 switches::kSingleProcess); |
| 18 gfx::GLSurfaceTestSupport::InitializeOneOff(); | 18 gl::GLSurfaceTestSupport::InitializeOneOff(); |
| 19 android_webview::DeferredGpuCommandService::SetInstance(); | 19 android_webview::DeferredGpuCommandService::SetInstance(); |
| 20 return base::TestSuite(argc, argv).Run(); | 20 return base::TestSuite(argc, argv).Run(); |
| 21 } | 21 } |
| OLD | NEW |