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

Unified Diff: device/test/usb_test_gadget_impl.cc

Issue 1542163002: Switch to standard integer types in device/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 5 years 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/test/test_device_client.cc ('k') | device/udev_linux/udev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/test/usb_test_gadget_impl.cc
diff --git a/device/test/usb_test_gadget_impl.cc b/device/test/usb_test_gadget_impl.cc
index f9ccf2c1971188d487ad48cba854f0748f199185..be3b795049ee717139caba9c864a2ff82d8fb750 100644
--- a/device/test/usb_test_gadget_impl.cc
+++ b/device/test/usb_test_gadget_impl.cc
@@ -4,6 +4,9 @@
#include "device/test/usb_test_gadget.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <string>
#include <vector>
@@ -69,7 +72,7 @@ static const int kReenumeratePeriod = 100; // 0.1 seconds
struct UsbTestGadgetConfiguration {
UsbTestGadget::Type type;
const char* http_resource;
- uint16 product_id;
+ uint16_t product_id;
};
static const struct UsbTestGadgetConfiguration kConfigurations[] = {
@@ -201,7 +204,7 @@ class UsbGadgetFactory : public UsbService::Observer,
usb_service_ = DeviceClient::Get()->GetUsbService();
request_context_getter_ = new URLRequestContextGetter(io_task_runner);
- static uint32 next_session_id;
+ static uint32_t next_session_id;
base::ProcessId process_id = base::GetCurrentProcId();
session_id_ = base::StringPrintf("%d-%d", process_id, next_session_id++);
@@ -424,7 +427,7 @@ class DeviceAddListener : public UsbService::Observer {
void OnDeviceAdded(scoped_refptr<UsbDevice> device) override {
if (device->vendor_id() == 0x18D1 && !device->serial_number().empty()) {
- const uint16 product_id = device->product_id();
+ const uint16_t product_id = device->product_id();
if (product_id_ == -1) {
bool found = false;
for (size_t i = 0; i < arraysize(kConfigurations); ++i) {
« no previous file with comments | « device/test/test_device_client.cc ('k') | device/udev_linux/udev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698