| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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/shell/renderer/layout_test/layout_test_content_renderer_client
.h" | 5 #include "content/shell/renderer/layout_test/layout_test_content_renderer_client
.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/debugger.h" | 9 #include "base/debug/debugger.h" |
| 10 #include "base/memory/ptr_util.h" |
| 10 #include "components/test_runner/mock_credential_manager_client.h" | 11 #include "components/test_runner/mock_credential_manager_client.h" |
| 11 #include "components/test_runner/web_frame_test_proxy.h" | 12 #include "components/test_runner/web_frame_test_proxy.h" |
| 12 #include "components/test_runner/web_test_interfaces.h" | 13 #include "components/test_runner/web_test_interfaces.h" |
| 13 #include "components/test_runner/web_test_runner.h" | 14 #include "components/test_runner/web_test_runner.h" |
| 14 #include "components/test_runner/web_view_test_proxy.h" | 15 #include "components/test_runner/web_view_test_proxy.h" |
| 15 #include "components/web_cache/renderer/web_cache_impl.h" | 16 #include "components/web_cache/renderer/web_cache_impl.h" |
| 16 #include "content/public/common/content_constants.h" | 17 #include "content/public/common/content_constants.h" |
| 17 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
| 18 #include "content/public/renderer/render_frame.h" | 19 #include "content/public/renderer/render_frame.h" |
| 19 #include "content/public/renderer/render_thread.h" | 20 #include "content/public/renderer/render_thread.h" |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 switches::kStableReleaseMode)) { | 281 switches::kStableReleaseMode)) { |
| 281 blink::WebRuntimeFeatures::enableTestOnlyFeatures(true); | 282 blink::WebRuntimeFeatures::enableTestOnlyFeatures(true); |
| 282 } | 283 } |
| 283 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 284 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 284 switches::kEnableFontAntialiasing)) { | 285 switches::kEnableFontAntialiasing)) { |
| 285 blink::setFontAntialiasingEnabledForTest(true); | 286 blink::setFontAntialiasingEnabledForTest(true); |
| 286 } | 287 } |
| 287 } | 288 } |
| 288 | 289 |
| 289 } // namespace content | 290 } // namespace content |
| OLD | NEW |