OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_watcher.h" | 5 #include "remoting/host/policy_watcher.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/json/json_writer.h" | 8 #include "base/json/json_writer.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/synchronization/waitable_event.h" | 14 #include "base/synchronization/waitable_event.h" |
15 #include "base/test/mock_log.h" | 15 #include "base/test/mock_log.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "components/policy/core/common/fake_async_policy_loader.h" | 18 #include "components/policy/core/common/fake_async_policy_loader.h" |
19 #include "policy/policy_constants.h" | 19 #include "policy/policy_constants.h" |
20 #include "remoting/host/dns_blackhole_checker.h" | 20 #include "remoting/host/dns_blackhole_checker.h" |
21 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 namespace remoting { | 24 namespace remoting { |
25 | 25 |
26 namespace key = ::policy::key; | 26 namespace key = ::policy::key; |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 | 647 |
648 // And check one, random "boolean" policy to see if the type propagated | 648 // And check one, random "boolean" policy to see if the type propagated |
649 // correctly from policy_templates.json file. | 649 // correctly from policy_templates.json file. |
650 const policy::Schema boolean_schema = | 650 const policy::Schema boolean_schema = |
651 schema->GetKnownProperty("RemoteAccessHostRequireCurtain"); | 651 schema->GetKnownProperty("RemoteAccessHostRequireCurtain"); |
652 EXPECT_TRUE(boolean_schema.valid()); | 652 EXPECT_TRUE(boolean_schema.valid()); |
653 EXPECT_EQ(boolean_schema.type(), base::Value::Type::TYPE_BOOLEAN); | 653 EXPECT_EQ(boolean_schema.type(), base::Value::Type::TYPE_BOOLEAN); |
654 } | 654 } |
655 | 655 |
656 } // namespace remoting | 656 } // namespace remoting |
OLD | NEW |