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

Unified Diff: net/base/address_tracker_linux_unittest.cc

Issue 1158923005: Use the exact-width integer types defined in <stdint.h> rather than (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweak comments. Exclude mime_sniffer*. Rebase. Created 5 years, 7 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
Index: net/base/address_tracker_linux_unittest.cc
diff --git a/net/base/address_tracker_linux_unittest.cc b/net/base/address_tracker_linux_unittest.cc
index 2e853ae4cc03c4f03095507f26cd7b04abd59344..ad81517124c14394a921c95d1ef39c0974e8827a 100644
--- a/net/base/address_tracker_linux_unittest.cc
+++ b/net/base/address_tracker_linux_unittest.cc
@@ -113,7 +113,7 @@ namespace {
class NetlinkMessage {
public:
- explicit NetlinkMessage(uint16 type) : buffer_(NLMSG_HDRLEN) {
+ explicit NetlinkMessage(uint16_t type) : buffer_(NLMSG_HDRLEN) {
header()->nlmsg_type = type;
Align();
}
@@ -125,7 +125,7 @@ class NetlinkMessage {
Align();
}
- void AddAttribute(uint16 type, const void* data, size_t length) {
+ void AddAttribute(uint16_t type, const void* data, size_t length) {
struct nlattr attr;
attr.nla_len = NLA_HDRLEN + length;
attr.nla_type = type;
@@ -163,13 +163,13 @@ class NetlinkMessage {
#define INFINITY_LIFE_TIME 0xFFFFFFFF
-void MakeAddrMessageWithCacheInfo(uint16 type,
- uint8 flags,
- uint8 family,
+void MakeAddrMessageWithCacheInfo(uint16_t type,
+ uint8_t flags,
+ uint8_t family,
int index,
const IPAddressNumber& address,
const IPAddressNumber& local,
- uint32 preferred_lifetime,
+ uint32_t preferred_lifetime,
Buffer* output) {
NetlinkMessage nlmsg(type);
struct ifaddrmsg msg = {};
@@ -188,9 +188,9 @@ void MakeAddrMessageWithCacheInfo(uint16 type,
nlmsg.AppendTo(output);
}
-void MakeAddrMessage(uint16 type,
- uint8 flags,
- uint8 family,
+void MakeAddrMessage(uint16_t type,
+ uint8_t flags,
+ uint8_t family,
int index,
const IPAddressNumber& address,
const IPAddressNumber& local,
@@ -199,7 +199,10 @@ void MakeAddrMessage(uint16 type,
INFINITY_LIFE_TIME, output);
}
-void MakeLinkMessage(uint16 type, uint32 flags, uint32 index, Buffer* output) {
+void MakeLinkMessage(uint16_t type,
+ uint32_t flags,
+ uint32_t index,
+ Buffer* output) {
NetlinkMessage nlmsg(type);
struct ifinfomsg msg = {};
msg.ifi_index = index;

Powered by Google App Engine
This is Rietveld 408576698