Implement chrome.bluetoothSocket.connect()
commit56b6aea5628a80636e5499ab4c838e16f9d463c0
authorkeybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 8 May 2014 05:15:52 +0000 (8 05:15 +0000)
committerkeybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 8 May 2014 05:15:52 +0000 (8 05:15 +0000)
treeefe3cdfda539d4818e925a111e6c0271cff3e740
parentcc8ba566dc2ae5e07de5caf5104875413163c488
Implement chrome.bluetoothSocket.connect()

Includes the C++ BluetoothDevice API, but does not include
platform-specific implementations. Tests are included since there is
sufficient mock code to drive a test.

BUG=349475,364581,366892
TEST=browser_tests --gtest_filter=BluetoothSocketApiTest.Connect
R=armansito@chromium.org, isherman@chromium.org, rpaquay@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269037 0039d316-1c4b-4281-b951-d872f2087c98
23 files changed:
chrome/browser/extensions/api/bluetooth/bluetooth_api_socket.cc
chrome/browser/extensions/api/bluetooth/bluetooth_api_socket.h
chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.cc
chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_api.h
chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_apitest.cc [new file with mode: 0644]
chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc
chrome/browser/extensions/api/bluetooth_socket/bluetooth_socket_event_dispatcher.h
chrome/chrome_tests.gypi
chrome/test/data/extensions/api_test/bluetooth_socket/connect/manifest.json [new file with mode: 0644]
chrome/test/data/extensions/api_test/bluetooth_socket/connect/runtest.js [new file with mode: 0644]
device/bluetooth/bluetooth_adapter.cc
device/bluetooth/bluetooth_adapter.h
device/bluetooth/bluetooth_adapter_factory.cc
device/bluetooth/bluetooth_adapter_factory.h
device/bluetooth/bluetooth_device.h
device/bluetooth/bluetooth_device_chromeos.cc
device/bluetooth/bluetooth_device_chromeos.h
device/bluetooth/bluetooth_device_mac.h
device/bluetooth/bluetooth_device_mac.mm
device/bluetooth/bluetooth_device_win.cc
device/bluetooth/bluetooth_device_win.h
device/bluetooth/test/mock_bluetooth_adapter.h
device/bluetooth/test/mock_bluetooth_device.h