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

Unified Diff: content/browser/geolocation/wifi_data_provider_linux_unittest.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
Index: content/browser/geolocation/wifi_data_provider_linux_unittest.cc
diff --git a/content/browser/geolocation/wifi_data_provider_linux_unittest.cc b/content/browser/geolocation/wifi_data_provider_linux_unittest.cc
index 5a4b546a0827b44f0830e9c60e20e0400db8f920..3ca35d114b408f840aaefb82849b51f06472befd 100644
--- a/content/browser/geolocation/wifi_data_provider_linux_unittest.cc
+++ b/content/browser/geolocation/wifi_data_provider_linux_unittest.cc
@@ -4,6 +4,9 @@
#include "content/browser/geolocation/wifi_data_provider_linux.h"
+#include <stdint.h>
+
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
@@ -186,7 +189,7 @@ class GeolocationWifiDataProviderLinuxTest : public testing::Test {
dbus::MessageWriter writer(response.get());
if (property_name == "Ssid") {
- const uint8 kSsid[] = {0x74, 0x65, 0x73, 0x74}; // "test"
+ const uint8_t kSsid[] = {0x74, 0x65, 0x73, 0x74}; // "test"
dbus::MessageWriter variant_writer(response.get());
writer.OpenVariant("ay", &variant_writer);
variant_writer.AppendArrayOfBytes(kSsid, arraysize(kSsid));
@@ -197,11 +200,11 @@ class GeolocationWifiDataProviderLinuxTest : public testing::Test {
writer.AppendVariantOfString(kMacAddress);
} else if (property_name == "Strength") {
// This will be converted to -50.
- const uint8 kStrength = 100;
+ const uint8_t kStrength = 100;
writer.AppendVariantOfByte(kStrength);
} else if (property_name == "Frequency") {
// This will be converted to channel 4.
- const uint32 kFrequency = 2427;
+ const uint32_t kFrequency = 2427;
writer.AppendVariantOfUint32(kFrequency);
}
return response.release();
« no previous file with comments | « content/browser/geolocation/wifi_data_provider_linux.cc ('k') | content/browser/geolocation/wifi_data_provider_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698