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

Unified Diff: extensions/browser/api/hid/hid_apitest.cc

Issue 943783003: Pad HID output reports on Windows to the maximum output report size. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added "size" to comment. Created 5 years, 10 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/hid/hid_connection_win.cc ('k') | extensions/test/data/api_test/hid/api/background.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/hid/hid_apitest.cc
diff --git a/extensions/browser/api/hid/hid_apitest.cc b/extensions/browser/api/hid/hid_apitest.cc
index c29c42195ecfcf6eee516c67359922c0e1e3d375..63012a10663c01d282df1dd9b4fa00678bc371e5 100644
--- a/extensions/browser/api/hid/hid_apitest.cc
+++ b/extensions/browser/api/hid/hid_apitest.cc
@@ -58,7 +58,7 @@ class MockHidConnection : public HidConnection {
void PlatformWrite(scoped_refptr<net::IOBuffer> buffer,
size_t size,
const WriteCallback& callback) override {
- const char kExpected[] = "This is a HID output report.";
+ const char kExpected[] = "o-report"; // 8 bytes
bool result = false;
if (size == sizeof(kExpected)) {
uint8_t report_id = buffer->data()[0];
« no previous file with comments | « device/hid/hid_connection_win.cc ('k') | extensions/test/data/api_test/hid/api/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698