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

Side by Side Diff: remoting/signaling/mock_signal_strategy.h

Issue 2443903004: Add xmllite and xmpp sources to third_party/ (Closed)
Patch Set: Explicitly use webrtc_overrides/webrtc/base/logging.h Created 3 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
« no previous file with comments | « remoting/signaling/log_to_server.cc ('k') | remoting/signaling/push_notification_subscriber.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <memory> 5 #include <memory>
6 6
7 #include "remoting/signaling/iq_sender.h" 7 #include "remoting/signaling/iq_sender.h"
8 #include "remoting/signaling/signal_strategy.h" 8 #include "remoting/signaling/signal_strategy.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 10 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 class MockSignalStrategy : public SignalStrategy { 14 class MockSignalStrategy : public SignalStrategy {
15 public: 15 public:
16 MockSignalStrategy(); 16 MockSignalStrategy();
17 ~MockSignalStrategy() override; 17 ~MockSignalStrategy() override;
18 18
19 MOCK_METHOD0(Connect, void()); 19 MOCK_METHOD0(Connect, void());
20 MOCK_METHOD0(Disconnect, void()); 20 MOCK_METHOD0(Disconnect, void());
21 MOCK_CONST_METHOD0(GetState, State()); 21 MOCK_CONST_METHOD0(GetState, State());
22 MOCK_CONST_METHOD0(GetError, Error()); 22 MOCK_CONST_METHOD0(GetError, Error());
23 MOCK_CONST_METHOD0(GetLocalJid, std::string()); 23 MOCK_CONST_METHOD0(GetLocalJid, std::string());
24 MOCK_METHOD1(AddListener, void(Listener* listener)); 24 MOCK_METHOD1(AddListener, void(Listener* listener));
25 MOCK_METHOD1(RemoveListener, void(Listener* listener)); 25 MOCK_METHOD1(RemoveListener, void(Listener* listener));
26 MOCK_METHOD0(GetNextId, std::string()); 26 MOCK_METHOD0(GetNextId, std::string());
27 27
28 // GMock currently doesn't support move-only arguments, so we have 28 // GMock currently doesn't support move-only arguments, so we have
29 // to use this hack here. 29 // to use this hack here.
30 MOCK_METHOD1(SendStanzaPtr, bool(buzz::XmlElement* stanza)); 30 MOCK_METHOD1(SendStanzaPtr, bool(buzz::XmlElement* stanza));
31 bool SendStanza(std::unique_ptr<buzz::XmlElement> stanza) override { 31 bool SendStanza(std::unique_ptr<buzz::XmlElement> stanza) override {
32 return SendStanzaPtr(stanza.release()); 32 return SendStanzaPtr(stanza.release());
33 } 33 }
34 }; 34 };
35 35
36 } // namespace remoting 36 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/signaling/log_to_server.cc ('k') | remoting/signaling/push_notification_subscriber.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698