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

Unified Diff: mojo/system/core_test_base.cc

Issue 66963005: Mojo: Implement local passing of MessagePipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 1 month 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/system/core_impl_unittest.cc ('k') | mojo/system/dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/core_test_base.cc
diff --git a/mojo/system/core_test_base.cc b/mojo/system/core_test_base.cc
index 15b9f02849b35e1eaece6f34e2f1e52118edbc1c..a0b0ed4388d44ce31ffd476253a88482f3fdf130 100644
--- a/mojo/system/core_test_base.cc
+++ b/mojo/system/core_test_base.cc
@@ -64,8 +64,8 @@ class MockDispatcher : public Dispatcher {
virtual MojoResult ReadMessageImplNoLock(
void* bytes, uint32_t* num_bytes,
- uint32_t /*max_num_dispatchers*/,
std::vector<scoped_refptr<Dispatcher> >* /*dispatchers*/,
+ uint32_t* /*num_dispatchers*/,
MojoReadMessageFlags /*flags*/) OVERRIDE {
info_->IncrementReadMessageCallCount();
lock().AssertAcquired();
@@ -94,6 +94,11 @@ class MockDispatcher : public Dispatcher {
lock().AssertAcquired();
}
+ virtual scoped_refptr<Dispatcher>
+ CreateEquivalentDispatcherAndCloseImplNoLock() OVERRIDE {
+ return scoped_refptr<Dispatcher>(new MockDispatcher(info_));
+ }
+
CoreTestBase::MockHandleInfo* const info_;
DISALLOW_COPY_AND_ASSIGN(MockDispatcher);
« no previous file with comments | « mojo/system/core_impl_unittest.cc ('k') | mojo/system/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698