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

Side by Side Diff: ipc/ipc_channel_mojo_unittest.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ipc/ipc_channel_mojo.h" 5 #include "ipc/ipc_channel_mojo.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 } 1295 }
1296 }; 1296 };
1297 1297
1298 TEST_F(IPCChannelMojoTest, VerifyGlobalPid) { 1298 TEST_F(IPCChannelMojoTest, VerifyGlobalPid) {
1299 InitWithMojo("IPCChannelMojoTestVerifyGlobalPidClient"); 1299 InitWithMojo("IPCChannelMojoTestVerifyGlobalPidClient");
1300 1300
1301 ListenerThatVerifiesPeerPid listener; 1301 ListenerThatVerifiesPeerPid listener;
1302 CreateChannel(&listener); 1302 CreateChannel(&listener);
1303 ASSERT_TRUE(ConnectChannel()); 1303 ASSERT_TRUE(ConnectChannel());
1304 1304
1305 base::MessageLoop::current()->Run(); 1305 base::RunLoop().Run();
1306 channel()->Close(); 1306 channel()->Close();
1307 1307
1308 EXPECT_TRUE(WaitForClientShutdown()); 1308 EXPECT_TRUE(WaitForClientShutdown());
1309 DestroyChannel(); 1309 DestroyChannel();
1310 } 1310 }
1311 1311
1312 DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(IPCChannelMojoTestVerifyGlobalPidClient, 1312 DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(IPCChannelMojoTestVerifyGlobalPidClient,
1313 ChannelClient) { 1313 ChannelClient) {
1314 IPC::Channel::SetGlobalPid(kMagicChildId); 1314 IPC::Channel::SetGlobalPid(kMagicChildId);
1315 ListenerThatQuits listener; 1315 ListenerThatQuits listener;
1316 Connect(&listener); 1316 Connect(&listener);
1317 1317
1318 base::MessageLoop::current()->Run(); 1318 base::RunLoop().Run();
1319 1319
1320 Close(); 1320 Close();
1321 } 1321 }
1322 1322
1323 #endif // OS_LINUX 1323 #endif // OS_LINUX
1324 1324
1325 } // namespace 1325 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698