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

Unified Diff: ipc/ipc_test_sink.h

Issue 310293002: Make IPC::Channel polymorphic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another attempt to fix build breakage Created 6 years, 6 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 | « ipc/ipc_test_base.cc ('k') | ipc/ipc_test_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_test_sink.h
diff --git a/ipc/ipc_test_sink.h b/ipc/ipc_test_sink.h
index 78be9e752699f7111d273beb9089c969a37890d7..10ace558586a60cb4b69d2a72341689a832655b9 100644
--- a/ipc/ipc_test_sink.h
+++ b/ipc/ipc_test_sink.h
@@ -78,6 +78,18 @@ class TestSink : public Channel {
// Interface in IPC::Channel. This copies the message to the sink and then
// deletes it.
virtual bool Send(IPC::Message* message) OVERRIDE;
+ virtual bool Connect() WARN_UNUSED_RESULT OVERRIDE;
+ virtual void Close() OVERRIDE;
+ virtual base::ProcessId GetPeerPID() const OVERRIDE;
+
+#if defined(OS_POSIX) && !defined(OS_NACL)
+ virtual int GetClientFileDescriptor() const OVERRIDE;
+ virtual int TakeClientFileDescriptor() OVERRIDE;
+ virtual bool AcceptsConnections() const OVERRIDE;
+ virtual bool HasAcceptedConnection() const OVERRIDE;
+ virtual bool GetPeerEuid(uid_t* peer_euid) const OVERRIDE;
+ virtual void ResetToAcceptingConnectionState() OVERRIDE;
+#endif // defined(OS_POSIX) && !defined(OS_NACL)
// Used by the source of the messages to send the message to the sink. This
// will make a copy of the message and store it in the list.
« no previous file with comments | « ipc/ipc_test_base.cc ('k') | ipc/ipc_test_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698