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

Unified Diff: ipc/mojo/ipc_channel_mojo_unittest.cc

Issue 1322253003: ipc: Convert int types from basictypes.h to the ones from stdint.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 3 months 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 | « ipc/message_filter_router.cc ('k') | ipc/mojo/ipc_message_pipe_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/mojo/ipc_channel_mojo_unittest.cc
diff --git a/ipc/mojo/ipc_channel_mojo_unittest.cc b/ipc/mojo/ipc_channel_mojo_unittest.cc
index c82e0119d4177a265ed18bb71a9b66244a9ac987..02bdcf17975626d4235b83b1f5b98a25d46246db 100644
--- a/ipc/mojo/ipc_channel_mojo_unittest.cc
+++ b/ipc/mojo/ipc_channel_mojo_unittest.cc
@@ -4,6 +4,8 @@
#include "ipc/mojo/ipc_channel_mojo.h"
+#include <stdint.h>
+
#include "base/base_paths.h"
#include "base/files/file.h"
#include "base/location.h"
@@ -133,7 +135,7 @@ class TestChannelListenerWithExtraExpectations
: is_connected_called_(false) {
}
- void OnChannelConnected(int32 peer_pid) override {
+ void OnChannelConnected(int32_t peer_pid) override {
IPC::TestChannelListener::OnChannelConnected(peer_pid);
EXPECT_TRUE(base::kNullProcessId != peer_pid);
is_connected_called_ = true;
@@ -200,7 +202,7 @@ class ListenerExpectingErrors : public IPC::Listener {
: has_error_(false) {
}
- void OnChannelConnected(int32 peer_pid) override {
+ void OnChannelConnected(int32_t peer_pid) override {
base::MessageLoop::current()->Quit();
}
@@ -243,7 +245,7 @@ class ListenerThatQuits : public IPC::Listener {
return true;
}
- void OnChannelConnected(int32 peer_pid) override {
+ void OnChannelConnected(int32_t peer_pid) override {
base::MessageLoop::current()->Quit();
}
};
@@ -595,7 +597,7 @@ class ListenerSendingOneOk : public IPC::Listener {
return true;
}
- void OnChannelConnected(int32 peer_pid) override {
+ void OnChannelConnected(int32_t peer_pid) override {
ListenerThatExpectsOK::SendOK(sender_);
base::MessageLoop::current()->Quit();
}
@@ -815,7 +817,7 @@ const base::ProcessId kMagicChildId = 54321;
class ListenerThatVerifiesPeerPid : public IPC::Listener {
public:
- void OnChannelConnected(int32 peer_pid) override {
+ void OnChannelConnected(int32_t peer_pid) override {
EXPECT_EQ(peer_pid, kMagicChildId);
base::MessageLoop::current()->Quit();
}
« no previous file with comments | « ipc/message_filter_router.cc ('k') | ipc/mojo/ipc_message_pipe_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698