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

Unified Diff: remoting/host/host_mock_objects.h

Issue 9288010: More plumbing for logging connection IP addresses (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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
Index: remoting/host/host_mock_objects.h
diff --git a/remoting/host/host_mock_objects.h b/remoting/host/host_mock_objects.h
index 7548775a2934eb5545770b005a63d014f8066dc4..8351420ee02b481344aea85a27e59469a2956b6f 100644
--- a/remoting/host/host_mock_objects.h
+++ b/remoting/host/host_mock_objects.h
@@ -5,6 +5,8 @@
#ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_
#define REMOTING_HOST_HOST_MOCK_OBJECTS_H_
+#include <string>
+
#include "remoting/host/capturer.h"
#include "remoting/host/curtain.h"
#include "remoting/host/chromoting_host_context.h"
@@ -16,6 +18,10 @@
#include "remoting/host/user_authenticator.h"
#include "testing/gmock/include/gmock/gmock.h"
+namespace net {
+class IpEndPoint;
Sergey Ulanov 2012/01/25 01:56:48 remove this
Lambros 2012/01/25 19:27:10 Done.
+} // namespace net
+
namespace remoting {
class MockCapturer : public Capturer {
@@ -103,6 +109,10 @@ class MockClientSessionEventHandler : public ClientSession::EventHandler {
MOCK_METHOD1(OnSessionFailed, void(ClientSession* client));
MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client,
int64 sequence_number));
+ MOCK_METHOD3(OnSessionIpEndPoint, void(ClientSession* client,
+ const std::string& channel_name,
+ const net::IPEndPoint& end_point));
+
private:
DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler);
};

Powered by Google App Engine
This is Rietveld 408576698