| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/strings/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
| 7 #include "base/test/trace_event_analyzer.h" | 7 #include "base/test/trace_event_analyzer.h" |
| 8 #include "base/win/windows_version.h" | |
| 9 #include "chrome/browser/extensions/extension_apitest.h" | 8 #include "chrome/browser/extensions/extension_apitest.h" |
| 10 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
| 11 #include "chrome/browser/extensions/tab_helper.h" | 10 #include "chrome/browser/extensions/tab_helper.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" | 12 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" |
| 14 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
| 15 #include "chrome/test/base/test_launcher_utils.h" | 14 #include "chrome/test/base/test_launcher_utils.h" |
| 16 #include "chrome/test/base/test_switches.h" | 15 #include "chrome/test/base/test_switches.h" |
| 17 #include "chrome/test/base/tracing.h" | 16 #include "chrome/test/base/tracing.h" |
| 18 #include "content/public/common/content_switches.h" | 17 #include "content/public/common/content_switches.h" |
| 19 #include "extensions/common/feature_switch.h" | 18 #include "extensions/common/feature_switch.h" |
| 20 #include "extensions/common/features/base_feature_provider.h" | 19 #include "extensions/common/features/base_feature_provider.h" |
| 21 #include "extensions/common/features/complex_feature.h" | 20 #include "extensions/common/features/complex_feature.h" |
| 22 #include "extensions/common/features/feature.h" | 21 #include "extensions/common/features/feature.h" |
| 23 #include "extensions/common/features/simple_feature.h" | 22 #include "extensions/common/features/simple_feature.h" |
| 24 #include "extensions/common/switches.h" | 23 #include "extensions/common/switches.h" |
| 25 #include "extensions/test/extension_test_message_listener.h" | 24 #include "extensions/test/extension_test_message_listener.h" |
| 26 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 27 #include "testing/perf/perf_test.h" | 26 #include "testing/perf/perf_test.h" |
| 28 #include "ui/compositor/compositor_switches.h" | 27 #include "ui/compositor/compositor_switches.h" |
| 29 #include "ui/gl/gl_switches.h" | 28 #include "ui/gl/gl_switches.h" |
| 30 | 29 |
| 30 #if defined(OS_WIN) |
| 31 #include "base/win/windows_version.h" |
| 32 #endif |
| 33 |
| 31 namespace { | 34 namespace { |
| 32 | 35 |
| 33 const char kExtensionId[] = "ddchlicdkolnonkihahngkmmmjnjlkkf"; | 36 const char kExtensionId[] = "ddchlicdkolnonkihahngkmmmjnjlkkf"; |
| 34 | 37 |
| 35 enum TestFlags { | 38 enum TestFlags { |
| 36 kUseGpu = 1 << 0, // Only execute test if --enable-gpu was given | 39 kUseGpu = 1 << 0, // Only execute test if --enable-gpu was given |
| 37 // on the command line. This is required for | 40 // on the command line. This is required for |
| 38 // tests that run on GPU. | 41 // tests that run on GPU. |
| 39 kForceGpuComposited = 1 << 1, // Force the test to use the compositor. | 42 kForceGpuComposited = 1 << 1, // Force the test to use the compositor. |
| 40 kDisableVsync = 1 << 2, // Do not limit framerate to vertical refresh. | 43 kDisableVsync = 1 << 2, // Do not limit framerate to vertical refresh. |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 testing::Values( | 207 testing::Values( |
| 205 0, | 208 0, |
| 206 kUseGpu | kForceGpuComposited, | 209 kUseGpu | kForceGpuComposited, |
| 207 kDisableVsync, | 210 kDisableVsync, |
| 208 kDisableVsync | kUseGpu | kForceGpuComposited, | 211 kDisableVsync | kUseGpu | kForceGpuComposited, |
| 209 kTestThroughWebRTC, | 212 kTestThroughWebRTC, |
| 210 kTestThroughWebRTC | kUseGpu | kForceGpuComposited, | 213 kTestThroughWebRTC | kUseGpu | kForceGpuComposited, |
| 211 kTestThroughWebRTC | kDisableVsync, | 214 kTestThroughWebRTC | kDisableVsync, |
| 212 kTestThroughWebRTC | kDisableVsync | kUseGpu | kForceGpuComposited)); | 215 kTestThroughWebRTC | kDisableVsync | kUseGpu | kForceGpuComposited)); |
| 213 | 216 |
| OLD | NEW |