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

Side by Side Diff: mojo/shell/incoming_connection_listener_unittest.cc

Issue 623883002: Revert "Move mojo edk into mojo/edk" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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
« no previous file with comments | « mojo/shell/external_application_test_main.cc ('k') | mojo/system/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/files/file_util.h" 6 #include "base/files/file_util.h"
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "mojo/edk/embedder/channel_init.h" 10 #include "mojo/embedder/channel_init.h"
11 #include "mojo/edk/embedder/platform_channel_pair.h" 11 #include "mojo/embedder/platform_channel_pair.h"
12 #include "mojo/shell/external_application_registrar_connection.h" 12 #include "mojo/shell/external_application_registrar_connection.h"
13 #include "mojo/shell/incoming_connection_listener_posix.h" 13 #include "mojo/shell/incoming_connection_listener_posix.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 #include "net/base/test_completion_callback.h" 15 #include "net/base/test_completion_callback.h"
16 #include "net/socket/socket_descriptor.h" 16 #include "net/socket/socket_descriptor.h"
17 #include "net/socket/unix_domain_client_socket_posix.h" 17 #include "net/socket/unix_domain_client_socket_posix.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 namespace mojo { 20 namespace mojo {
21 namespace shell { 21 namespace shell {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 ListeningFailsDelegate fail_delegate(net::ERR_FILE_NOT_FOUND); 141 ListeningFailsDelegate fail_delegate(net::ERR_FILE_NOT_FOUND);
142 IncomingConnectionListenerPosix listener(nonexistent_dir, &fail_delegate); 142 IncomingConnectionListenerPosix listener(nonexistent_dir, &fail_delegate);
143 143
144 // The listener should fail to start up. 144 // The listener should fail to start up.
145 listener.StartListening(); 145 listener.StartListening();
146 } 146 }
147 147
148 } // namespace shell 148 } // namespace shell
149 } // namespace mojo 149 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/external_application_test_main.cc ('k') | mojo/system/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698