| 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "base/synchronization/waitable_event.h" | 8 #include "base/synchronization/waitable_event.h" |
| 9 #include "remoting/host/dns_blackhole_checker.h" | 9 #include "remoting/host/dns_blackhole_checker.h" |
| 10 #include "remoting/host/policy_hack/fake_policy_watcher.h" | 10 #include "remoting/host/policy_hack/fake_policy_watcher.h" |
| 11 #include "remoting/host/policy_hack/mock_policy_callback.h" | 11 #include "remoting/host/policy_hack/mock_policy_callback.h" |
| 12 #include "remoting/host/policy_hack/policy_watcher.h" | 12 #include "remoting/host/policy_hack/policy_watcher.h" |
| 13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 namespace remoting { | 16 namespace remoting { |
| 17 namespace policy_hack { | 17 namespace policy_hack { |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 OnPolicyUpdatePtr(IsPolicies(&nat_true_others_default_))); | 303 OnPolicyUpdatePtr(IsPolicies(&nat_true_others_default_))); |
| 304 #endif | 304 #endif |
| 305 | 305 |
| 306 StartWatching(); | 306 StartWatching(); |
| 307 policy_watcher_->SetPolicies(&nat_true_and_overridden_); | 307 policy_watcher_->SetPolicies(&nat_true_and_overridden_); |
| 308 StopWatching(); | 308 StopWatching(); |
| 309 } | 309 } |
| 310 | 310 |
| 311 } // namespace policy_hack | 311 } // namespace policy_hack |
| 312 } // namespace remoting | 312 } // namespace remoting |
| OLD | NEW |