summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/resources/serial_service.js
diff options
context:
space:
mode:
authorjuncai <juncai@chromium.org>2015-07-16 17:07:32 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-17 00:08:00 +0000
commitc41a003c834c0605e271aa6061b046a776940b86 (patch)
tree270b519fe35009affb85709e4e12bbb0b1e2d739 /extensions/renderer/resources/serial_service.js
parent628f0c1e9e7faef3bf3acf573aac5cdc82d87261 (diff)
downloadchromium_src-c41a003c834c0605e271aa6061b046a776940b86.zip
chromium_src-c41a003c834c0605e271aa6061b046a776940b86.tar.gz
chromium_src-c41a003c834c0605e271aa6061b046a776940b86.tar.bz2
Add unit tests for new added ReceiveError
This patch added unit tests for new added ReceiveError enums. BUG=414105 Review URL: https://codereview.chromium.org/1242523002 Cr-Commit-Position: refs/heads/master@{#339181}
Diffstat (limited to 'extensions/renderer/resources/serial_service.js')
-rw-r--r--extensions/renderer/resources/serial_service.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/renderer/resources/serial_service.js b/extensions/renderer/resources/serial_service.js
index e5d909d..015a742 100644
--- a/extensions/renderer/resources/serial_service.js
+++ b/extensions/renderer/resources/serial_service.js
@@ -75,6 +75,11 @@ define('serial_service', [
'disconnected': serialMojom.ReceiveError.DISCONNECTED,
'device_lost': serialMojom.ReceiveError.DEVICE_LOST,
'timeout': serialMojom.ReceiveError.TIMEOUT,
+ 'break': serialMojom.ReceiveError.BREAK,
+ 'frame_error': serialMojom.ReceiveError.FRAME_ERROR,
+ 'overrun': serialMojom.ReceiveError.OVERRUN,
+ 'buffer_overflow': serialMojom.ReceiveError.BUFFER_OVERFLOW,
+ 'parity_error': serialMojom.ReceiveError.PARITY_ERROR,
'system_error': serialMojom.ReceiveError.SYSTEM_ERROR,
};