summaryrefslogtreecommitdiffstats
path: root/remoting/jingle_glue/mock_objects.h
blob: aad9697ae639f201ba472700165b940b9fd342e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/memory/scoped_ptr.h"
#include "remoting/jingle_glue/iq_sender.h"
#include "remoting/jingle_glue/signal_strategy.h"
#include "testing/gmock/include/gmock/gmock.h"

namespace remoting {

class MockSignalStrategy : public SignalStrategy {
 public:
  MockSignalStrategy();
  virtual ~MockSignalStrategy();

  MOCK_METHOD1(Init, void(StatusObserver*));
  MOCK_METHOD0(Close, void());
  MOCK_METHOD1(AddListener, void(Listener* listener));
  MOCK_METHOD1(RemoveListener, void(Listener* listener));
  MOCK_METHOD1(SendStanza, bool(buzz::XmlElement* stanza));
  MOCK_METHOD0(GetNextId, std::string());
  MOCK_METHOD0(CreateIqRequest, IqRequest*());
};

}  // namespace remoting