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

Unified Diff: remoting/host/native_messaging/native_messaging_writer_unittest.cc

Issue 1547473005: Switch to standard integer types in remoting/host/. (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
Index: remoting/host/native_messaging/native_messaging_writer_unittest.cc
diff --git a/remoting/host/native_messaging/native_messaging_writer_unittest.cc b/remoting/host/native_messaging/native_messaging_writer_unittest.cc
index 49e5dbd2992dd6f305bff37547db0802f82dc490..88dbb2147b0de52666a0ead4e2cc1218d62bd202 100644
--- a/remoting/host/native_messaging/native_messaging_writer_unittest.cc
+++ b/remoting/host/native_messaging/native_messaging_writer_unittest.cc
@@ -4,7 +4,8 @@
#include "remoting/host/native_messaging/native_messaging_writer.h"
-#include "base/basictypes.h"
+#include <stdint.h>
+
#include "base/json/json_reader.h"
#include "base/memory/scoped_ptr.h"
#include "base/stl_util.h"
@@ -42,7 +43,7 @@ TEST_F(NativeMessagingWriterTest, GoodMessage) {
EXPECT_TRUE(writer_->WriteMessage(message));
// Read from the pipe and verify the content.
- uint32 length;
+ uint32_t length;
int read = read_file_.ReadAtCurrentPos(reinterpret_cast<char*>(&length), 4);
EXPECT_EQ(4, read);
std::string content(length, '\0');
@@ -70,7 +71,7 @@ TEST_F(NativeMessagingWriterTest, SecondMessage) {
writer_.reset(nullptr);
// Read two messages.
- uint32 length;
+ uint32_t length;
int read;
std::string content;
for (int i = 0; i < 2; i++) {
« no previous file with comments | « remoting/host/native_messaging/native_messaging_writer.cc ('k') | remoting/host/native_messaging/pipe_messaging_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698