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

Unified Diff: chrome/browser/chromeos/printer_detector/printer_detector_unittest.cc

Issue 1468423003: Construct USB descriptors over explicit values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Android code. Created 4 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 | « no previous file | chrome/browser/devtools/device/usb/android_usb_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/printer_detector/printer_detector_unittest.cc
diff --git a/chrome/browser/chromeos/printer_detector/printer_detector_unittest.cc b/chrome/browser/chromeos/printer_detector/printer_detector_unittest.cc
index 42c76cbdb4e61f83fb8a8c9ac67d56cc30a363c0..b7d5ad63c6c46157d9ae4b28d4375a3527c17edf 100644
--- a/chrome/browser/chromeos/printer_detector/printer_detector_unittest.cc
+++ b/chrome/browser/chromeos/printer_detector/printer_detector_unittest.cc
@@ -121,11 +121,8 @@ class PrinterDetectorAppSearchEnabledTest : public testing::Test {
void InvokeUsbAdded(uint16_t vendor_id,
uint16_t product_id,
uint8_t interface_class) {
- device::UsbInterfaceDescriptor interface;
- interface.interface_number = 1;
- interface.interface_class = interface_class;
- device::UsbConfigDescriptor config;
- config.interfaces.push_back(interface);
+ device::UsbConfigDescriptor config(1, false, false, 0);
+ config.interfaces.emplace_back(1, 0, interface_class, 0, 0);
usb_service_.AddDevice(
new device::MockUsbDevice(vendor_id, product_id, config));
}
« no previous file with comments | « no previous file | chrome/browser/devtools/device/usb/android_usb_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698