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_process_observer
.h" | 5 #include "content/shell/renderer/layout_test/layout_test_render_process_observer
.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "components/test_runner/test_interfaces.h" | 8 #include "components/test_runner/test_interfaces.h" |
9 #include "components/test_runner/web_test_interfaces.h" | 9 #include "components/test_runner/web_test_interfaces.h" |
10 #include "components/test_runner/web_test_runner.h" | 10 #include "components/test_runner/web_test_runner.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 void LayoutTestRenderProcessObserver::OnRenderProcessShutdown() { | 78 void LayoutTestRenderProcessObserver::OnRenderProcessShutdown() { |
79 test_interfaces_.reset(); | 79 test_interfaces_.reset(); |
80 } | 80 } |
81 | 81 |
82 bool LayoutTestRenderProcessObserver::OnControlMessageReceived( | 82 bool LayoutTestRenderProcessObserver::OnControlMessageReceived( |
83 const IPC::Message& message) { | 83 const IPC::Message& message) { |
84 bool handled = true; | 84 bool handled = true; |
85 IPC_BEGIN_MESSAGE_MAP(LayoutTestRenderProcessObserver, message) | 85 IPC_BEGIN_MESSAGE_MAP(LayoutTestRenderProcessObserver, message) |
86 IPC_MESSAGE_HANDLER(ShellViewMsg_SetWebKitSourceDir, OnSetWebKitSourceDir) | 86 IPC_MESSAGE_HANDLER(ShellViewMsg_SetWebKitSourceDir, OnSetWebKitSourceDir) |
| 87 IPC_MESSAGE_HANDLER(LayoutTestMsg_ReplicateLayoutTestRuntimeFlagsChanges, |
| 88 OnReplicateLayoutTestRuntimeFlagsChanges) |
87 IPC_MESSAGE_UNHANDLED(handled = false) | 89 IPC_MESSAGE_UNHANDLED(handled = false) |
88 IPC_END_MESSAGE_MAP() | 90 IPC_END_MESSAGE_MAP() |
89 | 91 |
90 return handled; | 92 return handled; |
91 } | 93 } |
92 | 94 |
93 void LayoutTestRenderProcessObserver::OnSetWebKitSourceDir( | 95 void LayoutTestRenderProcessObserver::OnSetWebKitSourceDir( |
94 const base::FilePath& webkit_source_dir) { | 96 const base::FilePath& webkit_source_dir) { |
95 webkit_source_dir_ = webkit_source_dir; | 97 webkit_source_dir_ = webkit_source_dir; |
96 } | 98 } |
97 | 99 |
| 100 void LayoutTestRenderProcessObserver::OnReplicateLayoutTestRuntimeFlagsChanges( |
| 101 const base::DictionaryValue& changed_layout_test_runtime_flags) { |
| 102 test_interfaces()->TestRunner()->ReplicateLayoutTestRuntimeFlagsChanges( |
| 103 changed_layout_test_runtime_flags); |
| 104 } |
| 105 |
98 } // namespace content | 106 } // namespace content |
OLD | NEW |