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

Side by Side Diff: remoting/jingle_glue/mock_objects.h

Issue 9005034: Refactor SignalStrategy so that it can be reused for multiple connections. (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "remoting/jingle_glue/iq_sender.h" 6 #include "remoting/jingle_glue/iq_sender.h"
7 #include "remoting/jingle_glue/signal_strategy.h" 7 #include "remoting/jingle_glue/signal_strategy.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 9
10 namespace remoting { 10 namespace remoting {
11 11
12 class MockSignalStrategy : public SignalStrategy { 12 class MockSignalStrategy : public SignalStrategy {
13 public: 13 public:
14 MockSignalStrategy(); 14 MockSignalStrategy();
15 virtual ~MockSignalStrategy(); 15 virtual ~MockSignalStrategy();
16 16
17 MOCK_METHOD1(Init, void(StatusObserver*)); 17 MOCK_METHOD0(Connect, void());
18 MOCK_METHOD0(Close, void()); 18 MOCK_METHOD0(Disconnect, void());
19 MOCK_CONST_METHOD0(GetState, State());
20 MOCK_CONST_METHOD0(GetLocalJid, std::string());
19 MOCK_METHOD1(AddListener, void(Listener* listener)); 21 MOCK_METHOD1(AddListener, void(Listener* listener));
20 MOCK_METHOD1(RemoveListener, void(Listener* listener)); 22 MOCK_METHOD1(RemoveListener, void(Listener* listener));
21 MOCK_METHOD1(SendStanza, bool(buzz::XmlElement* stanza)); 23 MOCK_METHOD1(SendStanza, bool(buzz::XmlElement* stanza));
22 MOCK_METHOD0(GetNextId, std::string()); 24 MOCK_METHOD0(GetNextId, std::string());
23 MOCK_METHOD0(CreateIqRequest, IqRequest*());
24 }; 25 };
25 26
26 } // namespace remoting 27 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/jingle_glue/jingle_signaling_connector.cc ('k') | remoting/jingle_glue/signal_strategy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698