Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(599)

Unified Diff: device/serial/test_serial_io_handler.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/serial/serial_io_handler_win.cc ('k') | extensions/browser/api/serial/serial_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/test_serial_io_handler.cc
diff --git a/device/serial/test_serial_io_handler.cc b/device/serial/test_serial_io_handler.cc
index b112462b49c5c73174981266dd6b4ebc882d849f..d0b4ee6704e30accd639604c76eba1a79c66f4cf 100644
--- a/device/serial/test_serial_io_handler.cc
+++ b/device/serial/test_serial_io_handler.cc
@@ -45,7 +45,7 @@ void TestSerialIoHandler::ReadImpl() {
std::min(buffer_.size(), static_cast<size_t>(pending_read_buffer_len()));
memcpy(pending_read_buffer(), buffer_.c_str(), num_bytes);
buffer_ = buffer_.substr(num_bytes);
- ReadCompleted(static_cast<uint32_t>(num_bytes), serial::RECEIVE_ERROR_NONE);
+ ReadCompleted(static_cast<uint32_t>(num_bytes), serial::ReceiveError::NONE);
}
void TestSerialIoHandler::CancelReadImpl() {
@@ -60,7 +60,7 @@ void TestSerialIoHandler::WriteImpl() {
return;
}
buffer_ += std::string(pending_write_buffer(), pending_write_buffer_len());
- WriteCompleted(pending_write_buffer_len(), serial::SEND_ERROR_NONE);
+ WriteCompleted(pending_write_buffer_len(), serial::SendError::NONE);
if (pending_read_buffer())
ReadImpl();
}
« no previous file with comments | « device/serial/serial_io_handler_win.cc ('k') | extensions/browser/api/serial/serial_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698