OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/path_service.h" | 6 #include "base/path_service.h" |
7 #include "content/browser/gpu/gpu_process_host.h" | 7 #include "content/browser/gpu/gpu_process_host.h" |
8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
9 #include "content/public/common/content_paths.h" | 9 #include "content/public/common/content_paths.h" |
10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
11 #include "content/public/common/url_constants.h" | 11 #include "content/public/common/url_constants.h" |
12 #include "content/public/test/browser_test_utils.h" | 12 #include "content/public/test/browser_test_utils.h" |
13 #include "content/shell/shell.h" | 13 #include "content/shell/browser/shell.h" |
14 #include "content/test/content_browser_test.h" | 14 #include "content/test/content_browser_test.h" |
15 #include "content/test/content_browser_test_utils.h" | 15 #include "content/test/content_browser_test_utils.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 namespace { | 19 namespace { |
20 void VerifyGPUProcessLaunch(bool* result) { | 20 void VerifyGPUProcessLaunch(bool* result) { |
21 GpuProcessHost* host = | 21 GpuProcessHost* host = |
22 GpuProcessHost::Get(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED, | 22 GpuProcessHost::Get(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED, |
23 content::CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH); | 23 content::CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 #define MANUAL_TestGpuWithVideo DISABLED_TestGpuWithVideo | 134 #define MANUAL_TestGpuWithVideo DISABLED_TestGpuWithVideo |
135 #endif | 135 #endif |
136 | 136 |
137 // Verify that gpu process is started when viewing video. | 137 // Verify that gpu process is started when viewing video. |
138 IN_PROC_BROWSER_TEST_F(GpuFunctionalTest, | 138 IN_PROC_BROWSER_TEST_F(GpuFunctionalTest, |
139 MANUAL_TestGpuWithVideo) { | 139 MANUAL_TestGpuWithVideo) { |
140 VerifyGPUProcessOnPage("functional_video.html", true); | 140 VerifyGPUProcessOnPage("functional_video.html", true); |
141 } | 141 } |
142 | 142 |
143 } // namespace content | 143 } // namespace content |
OLD | NEW |