diff options
author | sammc <sammc@chromium.org> | 2014-08-26 23:41:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-27 06:43:14 +0000 |
commit | d96dc3e6fe8023ee49e9facbc42cc600ee127a34 (patch) | |
tree | e297c3c9d3b93dc140e014c66c92468d6576099b /extensions/renderer/api | |
parent | 3f0a6c825a02f72c9bde6d2f074010d090590b7a (diff) | |
download | chromium_src-d96dc3e6fe8023ee49e9facbc42cc600ee127a34.zip chromium_src-d96dc3e6fe8023ee49e9facbc42cc600ee127a34.tar.gz chromium_src-d96dc3e6fe8023ee49e9facbc42cc600ee127a34.tar.bz2 |
Implement the host side of serial connection I/O on data pipe.
This change adds DataSource and DataSink interface request parameters to
SerialService::Connect, passes them through to SerialConnection
instances via SerialConnectionFactory; the SerialConnection now uses a
DataSourceSender and a DataSinkReceiver for implementing serial receive
and send, respectively.
BUG=389016
Review URL: https://codereview.chromium.org/488363002
Cr-Commit-Position: refs/heads/master@{#292104}
Diffstat (limited to 'extensions/renderer/api')
-rw-r--r-- | extensions/renderer/api/serial/serial_api_unittest.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/renderer/api/serial/serial_api_unittest.cc b/extensions/renderer/api/serial/serial_api_unittest.cc index 799ecbb..14e3156 100644 --- a/extensions/renderer/api/serial/serial_api_unittest.cc +++ b/extensions/renderer/api/serial/serial_api_unittest.cc @@ -308,6 +308,8 @@ class SerialApiTest : public ApiTestBase { ApiTestBase::SetUp(); env()->RegisterModule("serial", IDR_SERIAL_CUSTOM_BINDINGS_JS); env()->RegisterModule("serial_service", IDR_SERIAL_SERVICE_JS); + env()->RegisterModule("device/serial/data_stream.mojom", + IDR_DATA_STREAM_MOJOM_JS); env()->RegisterModule("device/serial/serial.mojom", IDR_SERIAL_MOJOM_JS); service_provider()->AddService<device::serial::SerialService>(base::Bind( &SerialApiTest::CreateSerialService, base::Unretained(this))); |