Chromium Code Reviews| 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..e85dc19294bc354275ab0f29e2a37016ab720249 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) { |
|
byungchul
2014/08/04 22:18:02
wrong indentation
SeRya
2014/08/05 10:32:27
Done.
|
| // 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; |
| } |