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

Unified Diff: content/test/mock_google_streaming_server.cc

Issue 1544273002: Switch to standard integer types in content/. (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 | « content/test/mock_google_streaming_server.h ('k') | content/test/mock_keyboard.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/mock_google_streaming_server.cc
diff --git a/content/test/mock_google_streaming_server.cc b/content/test/mock_google_streaming_server.cc
index ad9937aae7654471a1dda37099a866a7e3c32f0e..3484ca3fba003108933d84a373f1b1966ea0cad5 100644
--- a/content/test/mock_google_streaming_server.cc
+++ b/content/test/mock_google_streaming_server.cc
@@ -4,6 +4,9 @@
#include "content/test/mock_google_streaming_server.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/numerics/safe_conversions.h"
#include "base/strings/string_split.h"
@@ -102,7 +105,7 @@ void MockGoogleStreamingServer::SimulateResult(
// Prepend 4 byte prefix length indication to the protobuf message as
// envisaged by the google streaming recognition webservice protocol.
- uint32 prefix = HostToNet32(checked_cast<uint32>(msg_string.size()));
+ uint32_t prefix = HostToNet32(checked_cast<uint32_t>(msg_string.size()));
msg_string.insert(0, reinterpret_cast<char*>(&prefix), sizeof(prefix));
SimulateServerResponse(true, msg_string);
« no previous file with comments | « content/test/mock_google_streaming_server.h ('k') | content/test/mock_keyboard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698