bluetooth: Move testing IPC from BluetoothDispatcher to BlinkTestRunner
commit3f7142d0acf5e930743cbe5d754084c464ac3c85
authorortuno <ortuno@chromium.org>
Tue, 19 May 2015 22:55:39 +0000 (19 15:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 19 May 2015 22:56:00 +0000 (19 22:56 +0000)
tree3b779e332980afbfd75918223cd513d2efcb086f
parent7047d54ccbc2b42383c744b2547d61c35eb24e01
bluetooth: Move testing IPC from BluetoothDispatcher to BlinkTestRunner

This patch removes the testing IPC from BluetoothDispatcher and
BluetoothDispatcherHost.

This patch also changes the way the mock BluetoothAdapter was set in
BluetoothDispatcherHost. Instead of receiving an IPC to set the adapter,
BluetoothDispatcherHost exposes a function to directly set the adapter.
This function is used by LayoutTestSupport to set the adapter.

Mock adapter flow before:
BlinkTestRunner -> LayoutTestSupport -> BluetoothDispatcher --IPC-->
BluetoothDispatcherHost (Mock constructed here)

After:
BlinkTestRunner --IPC--> LayoutTestMessages(Mock constructed here) ->
LayoutTestSupport -> BluetoothDispatcherHost

This is the first of two patches to remove testing from BluetoothDispatcher
and BluetoothDispatcherHost:

 [1] This patch.
 [2] http://crrev.com/1132943002

BUG=436284

Review URL: https://codereview.chromium.org/1125133005

Cr-Commit-Position: refs/heads/master@{#330647}
16 files changed:
content/browser/bluetooth/bluetooth_dispatcher_host.cc
content/browser/bluetooth/bluetooth_dispatcher_host.h
content/browser/renderer_host/render_process_host_impl.cc
content/browser/renderer_host/render_process_host_impl.h
content/child/blink_platform_impl.h
content/child/bluetooth/bluetooth_dispatcher.cc
content/child/bluetooth/bluetooth_dispatcher.h
content/child/bluetooth/web_bluetooth_impl.cc
content/child/bluetooth/web_bluetooth_impl.h
content/common/bluetooth/bluetooth_messages.h
content/public/test/layouttest_support.h
content/shell/browser/layout_test/layout_test_message_filter.cc
content/shell/browser/layout_test/layout_test_message_filter.h
content/shell/common/layout_test/layout_test_messages.h
content/shell/renderer/layout_test/blink_test_runner.cc
content/test/layouttest_support.cc