| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "remoting/host/policy_hack/fake_policy_watcher.h" | 5 #include "remoting/host/policy_hack/fake_policy_watcher.h" |
| 6 | 6 |
| 7 #include "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
| 8 | 8 |
| 9 namespace remoting { | 9 namespace remoting { |
| 10 namespace policy_hack { | 10 namespace policy_hack { |
| 11 | 11 |
| 12 FakePolicyWatcher::FakePolicyWatcher( | 12 FakePolicyWatcher::FakePolicyWatcher( |
| 13 scoped_refptr<base::SingleThreadTaskRunner> task_runner) | 13 scoped_refptr<base::SingleThreadTaskRunner> task_runner) |
| 14 : PolicyWatcher(task_runner) { | 14 : PolicyWatcher(task_runner) { |
| 15 } | 15 } |
| 16 | 16 |
| 17 FakePolicyWatcher::~FakePolicyWatcher() { | 17 FakePolicyWatcher::~FakePolicyWatcher() { |
| 18 } | 18 } |
| 19 | 19 |
| 20 void FakePolicyWatcher::SetPolicies(const base::DictionaryValue* policies) { | 20 void FakePolicyWatcher::SetPolicies(const base::DictionaryValue* policies) { |
| 21 UpdatePolicies(policies); | 21 UpdatePolicies(policies); |
| 22 } | 22 } |
| 23 | 23 |
| 24 void FakePolicyWatcher::SignalTransientErrorForTest() { |
| 25 SignalTransientPolicyError(); |
| 26 } |
| 27 |
| 24 void FakePolicyWatcher::StartWatchingInternal() { | 28 void FakePolicyWatcher::StartWatchingInternal() { |
| 25 } | 29 } |
| 26 | 30 |
| 27 void FakePolicyWatcher::StopWatchingInternal() { | 31 void FakePolicyWatcher::StopWatchingInternal() { |
| 28 } | 32 } |
| 29 | 33 |
| 30 void FakePolicyWatcher::Reload() { | 34 void FakePolicyWatcher::Reload() { |
| 31 } | 35 } |
| 32 | 36 |
| 33 } // namespace policy_hack | 37 } // namespace policy_hack |
| 34 } // namespace remoting | 38 } // namespace remoting |
| OLD | NEW |