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

Side by Side Diff: mojo/system/channel_unittest.cc

Issue 277083003: Mojo: (Theoretically) implement the read side of platform handle passing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: asdf Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/system/channel.cc ('k') | mojo/system/message_in_transit.h » ('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 "mojo/system/channel.h" 5 #include "mojo/system/channel.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "mojo/embedder/platform_channel_pair.h" 10 #include "mojo/embedder/platform_channel_pair.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 private: 132 private:
133 // |RawChannel| protected methods: 133 // |RawChannel| protected methods:
134 virtual IOResult Read(size_t*) OVERRIDE { 134 virtual IOResult Read(size_t*) OVERRIDE {
135 CHECK(false); 135 CHECK(false);
136 return IO_FAILED; 136 return IO_FAILED;
137 } 137 }
138 virtual IOResult ScheduleRead() OVERRIDE { 138 virtual IOResult ScheduleRead() OVERRIDE {
139 CHECK(false); 139 CHECK(false);
140 return IO_FAILED; 140 return IO_FAILED;
141 } 141 }
142 virtual scoped_ptr<embedder::PlatformHandleVector> GetReadPlatformHandles(
143 size_t, const void*) OVERRIDE {
144 CHECK(false);
145 return scoped_ptr<embedder::PlatformHandleVector>();
146 }
142 virtual IOResult WriteNoLock(size_t*, size_t*) OVERRIDE { 147 virtual IOResult WriteNoLock(size_t*, size_t*) OVERRIDE {
143 CHECK(false); 148 CHECK(false);
144 return IO_FAILED; 149 return IO_FAILED;
145 } 150 }
146 virtual IOResult ScheduleWriteNoLock() OVERRIDE { 151 virtual IOResult ScheduleWriteNoLock() OVERRIDE {
147 CHECK(false); 152 CHECK(false);
148 return IO_FAILED; 153 return IO_FAILED;
149 } 154 }
150 virtual bool OnInit() OVERRIDE { 155 virtual bool OnInit() OVERRIDE {
151 EXPECT_FALSE(on_init_called_); 156 EXPECT_FALSE(on_init_called_);
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 mp->Close(0); 320 mp->Close(0);
316 321
317 EXPECT_TRUE(channel()->HasOneRef()); 322 EXPECT_TRUE(channel()->HasOneRef());
318 } 323 }
319 324
320 // TODO(vtl): More. ------------------------------------------------------------ 325 // TODO(vtl): More. ------------------------------------------------------------
321 326
322 } // namespace 327 } // namespace
323 } // namespace system 328 } // namespace system
324 } // namespace mojo 329 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/system/channel.cc ('k') | mojo/system/message_in_transit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698