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

Unified Diff: chrome/common/local_discovery/service_discovery_client_unittest.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « chrome/common/local_discovery/service_discovery_client_impl.cc ('k') | chrome/common/localized_error.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/local_discovery/service_discovery_client_unittest.cc
diff --git a/chrome/common/local_discovery/service_discovery_client_unittest.cc b/chrome/common/local_discovery/service_discovery_client_unittest.cc
index 0b77410372fa9b51046e891082da129ad99fe2c3..18e43b71f2c73d65968ab22f2fbfc075ab57b451 100644
--- a/chrome/common/local_discovery/service_discovery_client_unittest.cc
+++ b/chrome/common/local_discovery/service_discovery_client_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdint.h>
+
#include "base/location.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
@@ -29,7 +31,7 @@ namespace local_discovery {
namespace {
-const uint8 kSamplePacketPTR[] = {
+const uint8_t kSamplePacketPTR[] = {
// Header
0x00, 0x00, // ID is zeroed out
0x81, 0x80, // Standard query response, RA, no error
@@ -51,7 +53,7 @@ const uint8 kSamplePacketPTR[] = {
0xc0, 0x0c
};
-const uint8 kSamplePacketSRV[] = {
+const uint8_t kSamplePacketSRV[] = {
// Header
0x00, 0x00, // ID is zeroed out
0x81, 0x80, // Standard query response, RA, no error
@@ -78,7 +80,7 @@ const uint8 kSamplePacketSRV[] = {
0x00,
};
-const uint8 kSamplePacketTXT[] = {
+const uint8_t kSamplePacketTXT[] = {
// Header
0x00, 0x00, // ID is zeroed out
0x81, 0x80, // Standard query response, RA, no error
@@ -100,7 +102,7 @@ const uint8 kSamplePacketTXT[] = {
0x05, 'h', 'e', 'l', 'l', 'o'
};
-const uint8 kSamplePacketSRVA[] = {
+const uint8_t kSamplePacketSRVA[] = {
// Header
0x00, 0x00, // ID is zeroed out
0x81, 0x80, // Standard query response, RA, no error
@@ -138,7 +140,7 @@ const uint8 kSamplePacketSRVA[] = {
0x03, 0x04,
};
-const uint8 kSamplePacketPTR2[] = {
+const uint8_t kSamplePacketPTR2[] = {
// Header
0x00, 0x00, // ID is zeroed out
0x81, 0x80, // Standard query response, RA, no error
@@ -172,7 +174,7 @@ const uint8 kSamplePacketPTR2[] = {
0xc0, 0x0c
};
-const uint8 kSamplePacketQuerySRV[] = {
+const uint8_t kSamplePacketQuerySRV[] = {
// Header
0x00, 0x00, // ID is zeroed out
0x00, 0x00, // No flags.
« no previous file with comments | « chrome/common/local_discovery/service_discovery_client_impl.cc ('k') | chrome/common/localized_error.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698