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

Unified Diff: mojo/edk/system/mock_simple_dispatcher.cc

Issue 2001673003: EDK: Add Core::DuplicateHandleWithReducedRights(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/system/mock_simple_dispatcher.h ('k') | mojo/edk/system/shared_buffer_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/mock_simple_dispatcher.cc
diff --git a/mojo/edk/system/mock_simple_dispatcher.cc b/mojo/edk/system/mock_simple_dispatcher.cc
index 1c96f229890b1c6ac57079267af0270dba50e17c..58243c106e8c7988ec4f2ed3e01f2612c8a965b8 100644
--- a/mojo/edk/system/mock_simple_dispatcher.cc
+++ b/mojo/edk/system/mock_simple_dispatcher.cc
@@ -65,6 +65,12 @@ MockSimpleDispatcher::MockSimpleDispatcher(const HandleSignalsState& state)
MockSimpleDispatcher::~MockSimpleDispatcher() {}
+MojoResult MockSimpleDispatcher::DuplicateDispatcherImplNoLock(
+ util::RefPtr<Dispatcher>* new_dispatcher) {
+ *new_dispatcher = MakeRefCounted<MockSimpleDispatcher>(state_);
+ return MOJO_RESULT_OK;
+}
+
RefPtr<Dispatcher>
MockSimpleDispatcher::CreateEquivalentDispatcherAndCloseImplNoLock(
MessagePipe* /*message_pipe*/,
« no previous file with comments | « mojo/edk/system/mock_simple_dispatcher.h ('k') | mojo/edk/system/shared_buffer_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698