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

Side by Side Diff: shell/domain_socket/test_completion_callback.h

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
« no previous file with comments | « shell/domain_socket/socket_libevent.cc ('k') | shell/domain_socket/test_completion_callback.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef MOJO_SHELL_DOMAIN_SOCKET_TEST_COMPLETION_CALLBACK_H_ 5 #ifndef SHELL_DOMAIN_SOCKET_TEST_COMPLETION_CALLBACK_H_
6 #define MOJO_SHELL_DOMAIN_SOCKET_TEST_COMPLETION_CALLBACK_H_ 6 #define SHELL_DOMAIN_SOCKET_TEST_COMPLETION_CALLBACK_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/tuple.h" 9 #include "base/tuple.h"
10 #include "mojo/shell/domain_socket/completion_callback.h" 10 #include "shell/domain_socket/completion_callback.h"
11 #include "mojo/shell/domain_socket/net_errors.h" 11 #include "shell/domain_socket/net_errors.h"
12 12
13 //----------------------------------------------------------------------------- 13 //-----------------------------------------------------------------------------
14 // completion callback helper 14 // completion callback helper
15 15
16 // A helper class for completion callbacks, designed to make it easy to run 16 // A helper class for completion callbacks, designed to make it easy to run
17 // tests involving asynchronous operations. Just call WaitForResult to wait 17 // tests involving asynchronous operations. Just call WaitForResult to wait
18 // for the asynchronous operation to complete. 18 // for the asynchronous operation to complete.
19 // 19 //
20 // NOTE: Since this runs a message loop to wait for the completion callback, 20 // NOTE: Since this runs a message loop to wait for the completion callback,
21 // there could be other side-effects resulting from WaitForResult. For this 21 // there could be other side-effects resulting from WaitForResult. For this
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 private: 106 private:
107 const Int64CompletionCallback callback_; 107 const Int64CompletionCallback callback_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(TestInt64CompletionCallback); 109 DISALLOW_COPY_AND_ASSIGN(TestInt64CompletionCallback);
110 }; 110 };
111 111
112 } // namespace shell 112 } // namespace shell
113 } // namespace mojo 113 } // namespace mojo
114 114
115 #endif // NET_BASE_TEST_COMPLETION_CALLBACK_H_ 115 #endif // SHELL_DOMAIN_SOCKET_TEST_COMPLETION_CALLBACK_H_
OLDNEW
« no previous file with comments | « shell/domain_socket/socket_libevent.cc ('k') | shell/domain_socket/test_completion_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698