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

Side by Side Diff: shell/domain_socket/unix_domain_server_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_server_socket_posix.h" 5 #include "shell/domain_socket/unix_domain_server_socket_posix.h"
6 6
7 #include <vector> 7 #include <vector>
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/run_loop.h" 14 #include "base/run_loop.h"
15 #include "base/stl_util.h" 15 #include "base/stl_util.h"
16 #include "mojo/shell/domain_socket/net_errors.h" 16 #include "shell/domain_socket/net_errors.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_client_socket_posix.h" 18 #include "shell/domain_socket/unix_domain_client_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 const char kInvalidSocketPath[] = "/invalid/path"; 26 const char kInvalidSocketPath[] = "/invalid/path";
27 27
28 bool UserCanConnectCallback( 28 bool UserCanConnectCallback(
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // The server socket should not have called |accept_callback| or modified 108 // The server socket should not have called |accept_callback| or modified
109 // |accepted_socket|. 109 // |accepted_socket|.
110 EXPECT_FALSE(accept_callback.have_result()); 110 EXPECT_FALSE(accept_callback.have_result());
111 EXPECT_EQ(accepted_socket, kInvalidSocket); 111 EXPECT_EQ(accepted_socket, kInvalidSocket);
112 } 112 }
113 113
114 // Normal cases including read/write are tested by UnixDomainClientSocketTest. 114 // Normal cases including read/write are tested by UnixDomainClientSocketTest.
115 115
116 } // namespace shell 116 } // namespace shell
117 } // namespace mojo 117 } // namespace mojo
OLDNEW
« no previous file with comments | « shell/domain_socket/unix_domain_server_socket_posix.cc ('k') | shell/dynamic_application_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698