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

Side by Side Diff: shell/domain_socket/unix_domain_client_socket_posix_unittest.cc

Issue 775343004: Move //mojo/shell to //shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
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 "mojo/shell/domain_socket/unix_domain_client_socket_posix.h" 5 #include "shell/domain_socket/unix_domain_client_socket_posix.h"
6 6
7 #include <unistd.h> 7 #include <unistd.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
14 #include "base/posix/eintr_wrapper.h" 14 #include "base/posix/eintr_wrapper.h"
15 #include "mojo/shell/domain_socket/net_errors.h" 15 #include "shell/domain_socket/net_errors.h"
16 #include "mojo/shell/domain_socket/socket_libevent.h" 16 #include "shell/domain_socket/socket_libevent.h"
17 #include "mojo/shell/domain_socket/test_completion_callback.h" 17 #include "shell/domain_socket/test_completion_callback.h"
18 #include "mojo/shell/domain_socket/unix_domain_server_socket_posix.h" 18 #include "shell/domain_socket/unix_domain_server_socket_posix.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 namespace mojo { 21 namespace mojo {
22 namespace shell { 22 namespace shell {
23 namespace { 23 namespace {
24 24
25 const char kSocketFilename[] = "socket_for_testing"; 25 const char kSocketFilename[] = "socket_for_testing";
26 26
27 bool UserCanConnectCallback( 27 bool UserCanConnectCallback(
28 bool allow_user, 28 bool allow_user,
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 UnixDomainClientSocket client_socket(socket_path_, kUseAbstractNamespace); 143 UnixDomainClientSocket client_socket(socket_path_, kUseAbstractNamespace);
144 EXPECT_FALSE(client_socket.IsConnected()); 144 EXPECT_FALSE(client_socket.IsConnected());
145 145
146 TestCompletionCallback connect_callback; 146 TestCompletionCallback connect_callback;
147 EXPECT_EQ(net::ERR_CONNECTION_REFUSED, ConnectSynchronously(&client_socket)); 147 EXPECT_EQ(net::ERR_CONNECTION_REFUSED, ConnectSynchronously(&client_socket));
148 } 148 }
149 149
150 } // namespace shell 150 } // namespace shell
151 } // namespace mojo 151 } // namespace mojo
OLDNEW
« no previous file with comments | « shell/domain_socket/unix_domain_client_socket_posix.cc ('k') | shell/domain_socket/unix_domain_server_socket_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698