OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/public/test/browser_test_base.h" | 5 #include "content/public/test/browser_test_base.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/debug/stack_trace.h" | 9 #include "base/debug/stack_trace.h" |
10 #include "base/i18n/icu_util.h" | 10 #include "base/i18n/icu_util.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/sys_info.h" | 13 #include "base/sys_info.h" |
14 #include "base/test/test_timeouts.h" | 14 #include "base/test/test_timeouts.h" |
15 #include "content/browser/renderer_host/render_process_host_impl.h" | 15 #include "content/browser/renderer_host/render_process_host_impl.h" |
16 #include "content/browser/tracing/tracing_controller_impl.h" | 16 #include "content/browser/tracing/tracing_controller_impl.h" |
17 #include "content/public/app/content_main.h" | 17 #include "content/public/app/content_main.h" |
18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/common/content_switches.h" | 19 #include "content/public/common/content_switches.h" |
20 #include "content/public/common/main_function_params.h" | 20 #include "content/public/common/main_function_params.h" |
21 #include "content/public/test/content_browser_sanity_checker.h" | |
22 #include "content/public/test/test_launcher.h" | 21 #include "content/public/test/test_launcher.h" |
23 #include "content/public/test/test_utils.h" | 22 #include "content/public/test/test_utils.h" |
| 23 #include "content/test/content_browser_sanity_checker.h" |
24 #include "net/base/net_errors.h" | 24 #include "net/base/net_errors.h" |
25 #include "net/dns/mock_host_resolver.h" | 25 #include "net/dns/mock_host_resolver.h" |
26 #include "net/test/embedded_test_server/embedded_test_server.h" | 26 #include "net/test/embedded_test_server/embedded_test_server.h" |
27 #include "ui/compositor/compositor_switches.h" | 27 #include "ui/compositor/compositor_switches.h" |
28 #include "ui/gl/gl_implementation.h" | 28 #include "ui/gl/gl_implementation.h" |
29 #include "ui/gl/gl_switches.h" | 29 #include "ui/gl/gl_switches.h" |
30 | 30 |
31 #if defined(OS_POSIX) | 31 #if defined(OS_POSIX) |
32 #include "base/process/process_handle.h" | 32 #include "base/process/process_handle.h" |
33 #endif | 33 #endif |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 use_software_compositing_ = true; | 347 use_software_compositing_ = true; |
348 } | 348 } |
349 | 349 |
350 bool BrowserTestBase::UsingOSMesa() const { | 350 bool BrowserTestBase::UsingOSMesa() const { |
351 base::CommandLine* cmd = base::CommandLine::ForCurrentProcess(); | 351 base::CommandLine* cmd = base::CommandLine::ForCurrentProcess(); |
352 return cmd->GetSwitchValueASCII(switches::kUseGL) == | 352 return cmd->GetSwitchValueASCII(switches::kUseGL) == |
353 gfx::kGLImplementationOSMesaName; | 353 gfx::kGLImplementationOSMesaName; |
354 } | 354 } |
355 | 355 |
356 } // namespace content | 356 } // namespace content |
OLD | NEW |