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

Side by Side Diff: device/serial/test_serial_io_handler.cc

Issue 1128943005: Implement break signal for serial api. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: histogram, VLOG Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « device/serial/test_serial_io_handler.h ('k') | extensions/browser/api/serial/serial_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/serial/test_serial_io_handler.h" 5 #include "device/serial/test_serial_io_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "device/serial/serial.mojom.h" 10 #include "device/serial/serial.mojom.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 bool TestSerialIoHandler::SetControlSignals( 95 bool TestSerialIoHandler::SetControlSignals(
96 const serial::HostControlSignals& signals) { 96 const serial::HostControlSignals& signals) {
97 if (signals.has_dtr) 97 if (signals.has_dtr)
98 dtr_ = signals.dtr; 98 dtr_ = signals.dtr;
99 if (signals.has_rts) 99 if (signals.has_rts)
100 rts_ = signals.rts; 100 rts_ = signals.rts;
101 return true; 101 return true;
102 } 102 }
103 103
104 bool TestSerialIoHandler::SetBreak() {
105 return true;
106 }
107
108 bool TestSerialIoHandler::ClearBreak() {
109 return true;
110 }
111
104 TestSerialIoHandler::~TestSerialIoHandler() { 112 TestSerialIoHandler::~TestSerialIoHandler() {
105 } 113 }
106 114
107 } // namespace device 115 } // namespace device
OLDNEW
« no previous file with comments | « device/serial/test_serial_io_handler.h ('k') | extensions/browser/api/serial/serial_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698