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_render_thread_observer.
h" | 5 #include "content/shell/renderer/layout_test/layout_test_render_thread_observer.
h" |
6 | 6 |
7 #include "components/test_runner/test_interfaces.h" | |
8 #include "components/test_runner/web_test_interfaces.h" | |
9 #include "components/test_runner/web_test_runner.h" | |
10 #include "content/public/common/content_client.h" | 7 #include "content/public/common/content_client.h" |
11 #include "content/public/renderer/render_thread.h" | 8 #include "content/public/renderer/render_thread.h" |
12 #include "content/public/test/layouttest_support.h" | 9 #include "content/public/test/layouttest_support.h" |
13 #include "content/shell/common/layout_test/layout_test_messages.h" | 10 #include "content/shell/common/layout_test/layout_test_messages.h" |
14 #include "content/shell/common/layout_test/layout_test_switches.h" | 11 #include "content/shell/common/layout_test/layout_test_switches.h" |
15 #include "content/shell/common/shell_messages.h" | 12 #include "content/shell/common/shell_messages.h" |
| 13 #include "content/shell/test_runner/test_interfaces.h" |
| 14 #include "content/shell/test_runner/web_test_interfaces.h" |
| 15 #include "content/shell/test_runner/web_test_runner.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 namespace { | 19 namespace { |
20 LayoutTestRenderThreadObserver* g_instance = NULL; | 20 LayoutTestRenderThreadObserver* g_instance = NULL; |
21 } | 21 } |
22 | 22 |
23 // static | 23 // static |
24 LayoutTestRenderThreadObserver* | 24 LayoutTestRenderThreadObserver* |
25 LayoutTestRenderThreadObserver::GetInstance() { | 25 LayoutTestRenderThreadObserver::GetInstance() { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 webkit_source_dir_ = webkit_source_dir; | 63 webkit_source_dir_ = webkit_source_dir; |
64 } | 64 } |
65 | 65 |
66 void LayoutTestRenderThreadObserver::OnReplicateLayoutTestRuntimeFlagsChanges( | 66 void LayoutTestRenderThreadObserver::OnReplicateLayoutTestRuntimeFlagsChanges( |
67 const base::DictionaryValue& changed_layout_test_runtime_flags) { | 67 const base::DictionaryValue& changed_layout_test_runtime_flags) { |
68 test_interfaces()->TestRunner()->ReplicateLayoutTestRuntimeFlagsChanges( | 68 test_interfaces()->TestRunner()->ReplicateLayoutTestRuntimeFlagsChanges( |
69 changed_layout_test_runtime_flags); | 69 changed_layout_test_runtime_flags); |
70 } | 70 } |
71 | 71 |
72 } // namespace content | 72 } // namespace content |
OLD | NEW |