| Index: net/socket/unix_domain_server_socket_posix_unittest.cc
|
| diff --git a/net/socket/unix_domain_server_socket_posix_unittest.cc b/net/socket/unix_domain_server_socket_posix_unittest.cc
|
| index 07209f6605657757cd97378615cefb8d4de6f4ac..d8a52812c4e403973aceb40e0abc4002f8f22715 100644
|
| --- a/net/socket/unix_domain_server_socket_posix_unittest.cc
|
| +++ b/net/socket/unix_domain_server_socket_posix_unittest.cc
|
| @@ -24,10 +24,14 @@ namespace {
|
| const char kSocketFilename[] = "socket_for_testing";
|
| const char kInvalidSocketPath[] = "/invalid/path";
|
|
|
| -bool UserCanConnectCallback(bool allow_user, uid_t uid, gid_t gid) {
|
| +bool UserCanConnectCallback(bool allow_user,
|
| + const UnixDomainServerSocket::Credentials& credentials) {
|
| // Here peers are running in same process.
|
| - EXPECT_EQ(getuid(), uid);
|
| - EXPECT_EQ(getgid(), gid);
|
| +#if defined(OS_LINUX) || defined(OS_ANDROID)
|
| + EXPECT_EQ(getpid(), credentials.process_id);
|
| +#endif
|
| + EXPECT_EQ(getuid(), credentials.user_id);
|
| + EXPECT_EQ(getgid(), credentials.group_id);
|
| return allow_user;
|
| }
|
|
|
|
|