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

Unified Diff: remoting/protocol/protocol_mock_objects.h

Issue 8116021: Switch remoting/protocol to new callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 2 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 | « remoting/protocol/protobuf_video_writer.cc ('k') | remoting/protocol/protocol_test_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/protocol_mock_objects.h
diff --git a/remoting/protocol/protocol_mock_objects.h b/remoting/protocol/protocol_mock_objects.h
index 814e61be2003ea49daa07824c9adba281fd9223c..6bc97d67f10c1a2106fd550a3fa16dc7763e421b 100644
--- a/remoting/protocol/protocol_mock_objects.h
+++ b/remoting/protocol/protocol_mock_objects.h
@@ -70,7 +70,8 @@ class MockHostStub : public HostStub {
~MockHostStub();
MOCK_METHOD2(BeginSessionRequest,
- void(const LocalLoginCredentials* credentials, Task* done));
+ void(const LocalLoginCredentials* credentials,
+ const base::Closure& done));
private:
DISALLOW_COPY_AND_ASSIGN(MockHostStub);
@@ -82,9 +83,9 @@ class MockClientStub : public ClientStub {
virtual ~MockClientStub();
MOCK_METHOD2(NotifyResolution, void(const NotifyResolutionRequest* msg,
- Task* done));
+ const base::Closure& done));
MOCK_METHOD2(BeginSessionResponse, void(const LocalLoginStatus* msg,
- Task* done));
+ const base::Closure& done));
private:
DISALLOW_COPY_AND_ASSIGN(MockClientStub);
@@ -96,7 +97,7 @@ class MockVideoStub : public VideoStub {
virtual ~MockVideoStub();
MOCK_METHOD2(ProcessVideoPacket, void(const VideoPacket* video_packet,
- Task* done));
+ const base::Closure& done));
MOCK_METHOD0(GetPendingPackets, int());
private:
@@ -108,7 +109,8 @@ class MockSession : public Session {
MockSession();
virtual ~MockSession();
- MOCK_METHOD1(SetStateChangeCallback, void(StateChangeCallback* callback));
+ MOCK_METHOD1(SetStateChangeCallback,
+ void(const StateChangeCallback& callback));
MOCK_METHOD0(error, Session::Error());
MOCK_METHOD2(CreateStreamChannel, void(
const std::string& name, const StreamChannelCallback& callback));
« no previous file with comments | « remoting/protocol/protobuf_video_writer.cc ('k') | remoting/protocol/protocol_test_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698