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

Side by Side Diff: ipc/ipc_channel_posix_unittest.cc

Issue 1546533002: Switch to standard integer types in ipc/. (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 unified diff | Download patch
« no previous file with comments | « ipc/ipc_channel_posix.cc ('k') | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // These tests are POSIX only. 5 // These tests are POSIX only.
6 6
7 #include "ipc/ipc_channel_posix.h" 7 #include "ipc/ipc_channel_posix.h"
8 8
9 #include <errno.h> 9 #include <errno.h>
10 #include <fcntl.h> 10 #include <fcntl.h>
11 #include <stddef.h>
11 #include <stdint.h> 12 #include <stdint.h>
12 #include <string.h> 13 #include <string.h>
13 #include <sys/socket.h> 14 #include <sys/socket.h>
14 #include <sys/un.h> 15 #include <sys/un.h>
15 #include <unistd.h> 16 #include <unistd.h>
16 17
17 #include "base/files/file_path.h" 18 #include "base/files/file_path.h"
18 #include "base/files/file_util.h" 19 #include "base/files/file_util.h"
19 #include "base/location.h" 20 #include "base/location.h"
20 #include "base/memory/scoped_ptr.h" 21 #include "base/memory/scoped_ptr.h"
21 #include "base/path_service.h" 22 #include "base/path_service.h"
22 #include "base/posix/eintr_wrapper.h" 23 #include "base/posix/eintr_wrapper.h"
23 #include "base/process/process.h" 24 #include "base/process/process.h"
24 #include "base/single_thread_task_runner.h" 25 #include "base/single_thread_task_runner.h"
25 #include "base/test/multiprocess_test.h" 26 #include "base/test/multiprocess_test.h"
26 #include "base/test/test_timeouts.h" 27 #include "base/test/test_timeouts.h"
28 #include "build/build_config.h"
27 #include "ipc/ipc_listener.h" 29 #include "ipc/ipc_listener.h"
28 #include "ipc/unix_domain_socket_util.h" 30 #include "ipc/unix_domain_socket_util.h"
29 #include "testing/multiprocess_func_list.h" 31 #include "testing/multiprocess_func_list.h"
30 32
31 namespace { 33 namespace {
32 34
33 static const uint32_t kQuitMessage = 47; 35 static const uint32_t kQuitMessage = 47;
34 36
35 class IPCChannelPosixTestListener : public IPC::Listener { 37 class IPCChannelPosixTestListener : public IPC::Listener {
36 public: 38 public:
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 if (connected) { 499 if (connected) {
498 IPCChannelPosixTest::SpinRunLoop(TestTimeouts::action_max_timeout()); 500 IPCChannelPosixTest::SpinRunLoop(TestTimeouts::action_max_timeout());
499 EXPECT_EQ(IPCChannelPosixTestListener::CHANNEL_ERROR, listener.status()); 501 EXPECT_EQ(IPCChannelPosixTestListener::CHANNEL_ERROR, listener.status());
500 } else { 502 } else {
501 EXPECT_EQ(IPCChannelPosixTestListener::DISCONNECTED, listener.status()); 503 EXPECT_EQ(IPCChannelPosixTestListener::DISCONNECTED, listener.status());
502 } 504 }
503 return 0; 505 return 0;
504 } 506 }
505 507
506 } // namespace 508 } // namespace
OLDNEW
« no previous file with comments | « ipc/ipc_channel_posix.cc ('k') | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698