| Index: net/socket/unix_domain_client_socket_posix_unittest.cc
|
| diff --git a/net/socket/unix_domain_client_socket_posix_unittest.cc b/net/socket/unix_domain_client_socket_posix_unittest.cc
|
| index d79112249291d04ea9a69d428eeddc68359484ea..d22aaf6ba53f8b5d5b66baeef4e1056d491d6c60 100644
|
| --- a/net/socket/unix_domain_client_socket_posix_unittest.cc
|
| +++ b/net/socket/unix_domain_client_socket_posix_unittest.cc
|
| @@ -21,10 +21,14 @@ namespace {
|
|
|
| const char kSocketFilename[] = "socket_for_testing";
|
|
|
| -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;
|
| }
|
|
|
|
|