blob: 05ab8c68606f2277a4a7be5522ef95278777ef94 (
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
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright (c) 2010 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.
//
// A stand-in for stuff that expects a weak pointer to a BaseTask for
// testing.
#ifndef JINGLE_NOTIFIER_FAKE_XMPP_CLIENT_H_
#define JINGLE_NOTIFIER_FAKE_XMPP_CLIENT_H_
#pragma once
#include "base/basictypes.h"
#include "base/weak_ptr.h"
#include "jingle/notifier/base/task_pump.h"
namespace talk_base {
class Task;
} // namespace talk_base
namespace notifier {
class FakeBaseTask {
public:
FakeBaseTask();
~FakeBaseTask();
base::WeakPtr<talk_base::Task> AsWeakPtr();
private:
notifier::TaskPump task_pump_;
base::WeakPtr<talk_base::Task> base_task_;
DISALLOW_COPY_AND_ASSIGN(FakeBaseTask);
};
} // namespace notifier
#endif // JINGLE_NOTIFIER_FAKE_XMPP_CLIENT_H_
|