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

Unified Diff: ipc/ipc_test_sink.cc

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_sink.h ('k') | win8/viewer/metro_viewer_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_test_sink.cc
diff --git a/ipc/ipc_test_sink.cc b/ipc/ipc_test_sink.cc
index 070fe1235d138a90554ffa87c7e5caab5d94e126..65951fb621f6bd12bc21fc26d21e67f3ab5e0dd8 100644
--- a/ipc/ipc_test_sink.cc
+++ b/ipc/ipc_test_sink.cc
@@ -21,6 +21,21 @@ bool TestSink::Send(Message* message) {
return true;
}
+bool TestSink::Connect() {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+void TestSink::Close() {
+ NOTIMPLEMENTED();
+}
+
+base::ProcessId TestSink::GetPeerPID() const {
+ NOTIMPLEMENTED();
+ return base::ProcessId();
+}
+
+
bool TestSink::OnMessageReceived(const Message& msg) {
ObserverListBase<Listener>::Iterator it(filter_list_);
Listener* observer;
@@ -74,4 +89,37 @@ void TestSink::RemoveFilter(Listener* filter) {
filter_list_.RemoveObserver(filter);
}
+#if defined(OS_POSIX) && !defined(OS_NACL)
+
+int TestSink::GetClientFileDescriptor() const {
+ NOTREACHED();
+ return -1;
+}
+
+int TestSink::TakeClientFileDescriptor() {
+ NOTREACHED();
+ return -1;
+}
+
+bool TestSink::AcceptsConnections() const {
+ NOTREACHED();
+ return false;
+}
+
+bool TestSink::HasAcceptedConnection() const {
+ NOTREACHED();
+ return false;
+}
+
+bool TestSink::GetPeerEuid(uid_t* peer_euid) const {
+ NOTREACHED();
+ return false;
+}
+
+void TestSink::ResetToAcceptingConnectionState() {
+ NOTREACHED();
+}
+
+#endif // defined(OS_POSIX) && !defined(OS_NACL)
+
} // namespace IPC
« no previous file with comments | « ipc/ipc_test_sink.h ('k') | win8/viewer/metro_viewer_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698