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

Unified Diff: dbus/test_service.cc

Issue 1541193002: Switch to standard integer types in dbus/. (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 | « dbus/string_util.cc ('k') | dbus/values_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/test_service.cc
diff --git a/dbus/test_service.cc b/dbus/test_service.cc
index 2c148697d23be05c577835f16a5c5247a916ec76..804bb2adb56814384e0992e7b308a77cd7a954da 100644
--- a/dbus/test_service.cc
+++ b/dbus/test_service.cc
@@ -4,6 +4,8 @@
#include "dbus/test_service.h"
+#include <stdint.h>
+
#include <string>
#include <vector>
@@ -428,7 +430,7 @@ void TestService::GetProperty(MethodCall* method_call,
MessageWriter variant_array_writer(NULL);
writer.OpenVariant("ay", &variant_writer);
- const uint8 bytes[] = { 0x54, 0x65, 0x73, 0x74 };
+ const uint8_t bytes[] = {0x54, 0x65, 0x73, 0x74};
variant_writer.AppendArrayOfBytes(bytes, sizeof(bytes));
writer.CloseContainer(&variant_writer);
@@ -630,7 +632,7 @@ void TestService::AddPropertiesToWriter(MessageWriter* writer) {
array_writer.OpenDictEntry(&dict_entry_writer);
dict_entry_writer.AppendString("Bytes");
dict_entry_writer.OpenVariant("ay", &variant_writer);
- const uint8 bytes[] = { 0x54, 0x65, 0x73, 0x74 };
+ const uint8_t bytes[] = {0x54, 0x65, 0x73, 0x74};
variant_writer.AppendArrayOfBytes(bytes, sizeof(bytes));
dict_entry_writer.CloseContainer(&variant_writer);
array_writer.CloseContainer(&dict_entry_writer);
« no previous file with comments | « dbus/string_util.cc ('k') | dbus/values_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698