OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef REMOTING_HOST_FAKE_HOST_STATUS_MONITOR_H_ | 5 #ifndef REMOTING_HOST_FAKE_HOST_STATUS_MONITOR_H_ |
6 #define REMOTING_HOST_FAKE_HOST_STATUS_MONITOR_H_ | 6 #define REMOTING_HOST_FAKE_HOST_STATUS_MONITOR_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "remoting/host/host_status_monitor.h" | 9 #include "remoting/host/host_status_monitor.h" |
10 | 10 |
11 namespace remoting { | 11 namespace remoting { |
12 | 12 |
13 // An implementation of HostStatusMonitor that does nothing. | 13 // An implementation of HostStatusMonitor that does nothing. |
14 class FakeHostStatusMonitor | 14 class FakeHostStatusMonitor |
15 : public base::SupportsWeakPtr<FakeHostStatusMonitor>, | 15 : public base::SupportsWeakPtr<FakeHostStatusMonitor>, |
16 public HostStatusMonitor { | 16 public HostStatusMonitor { |
17 public: | 17 public: |
18 virtual ~FakeHostStatusMonitor() {} | 18 ~FakeHostStatusMonitor() override {} |
19 | 19 |
20 // HostStatusMonitor interface. | 20 // HostStatusMonitor interface. |
21 virtual void AddStatusObserver(HostStatusObserver* observer) override {} | 21 void AddStatusObserver(HostStatusObserver* observer) override {} |
22 virtual void RemoveStatusObserver(HostStatusObserver* observer) override {} | 22 void RemoveStatusObserver(HostStatusObserver* observer) override {} |
23 }; | 23 }; |
24 | 24 |
25 } // namespace remoting | 25 } // namespace remoting |
26 | 26 |
27 #endif // REMOTING_HOST_FAKE_HOST_STATUS_MONITOR_H_ | 27 #endif // REMOTING_HOST_FAKE_HOST_STATUS_MONITOR_H_ |
OLD | NEW |