OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/policy/profile_policy_connector.h" | 5 #include "chrome/browser/policy/profile_policy_connector.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
9 #include "base/values.h" | 10 #include "base/values.h" |
10 #include "build/build_config.h" | 11 #include "build/build_config.h" |
11 #include "chrome/test/base/testing_browser_process.h" | 12 #include "chrome/test/base/testing_browser_process.h" |
12 #include "components/autofill/core/common/autofill_pref_names.h" | 13 #include "components/autofill/core/common/autofill_pref_names.h" |
13 #include "components/policy/core/browser/browser_policy_connector.h" | 14 #include "components/policy/core/browser/browser_policy_connector.h" |
14 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 15 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
15 #include "components/policy/core/common/cloud/cloud_policy_manager.h" | 16 #include "components/policy/core/common/cloud/cloud_policy_manager.h" |
16 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" | 17 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" |
17 #include "components/policy/core/common/mock_configuration_policy_provider.h" | 18 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 value = connector.policy_service()->GetPolicies(chrome_ns).GetValue( | 113 value = connector.policy_service()->GetPolicies(chrome_ns).GetValue( |
113 key::kAutoFillEnabled); | 114 key::kAutoFillEnabled); |
114 ASSERT_TRUE(value); | 115 ASSERT_TRUE(value); |
115 EXPECT_TRUE(base::Value(true).Equals(value)); | 116 EXPECT_TRUE(base::Value(true).Equals(value)); |
116 | 117 |
117 // Cleanup. | 118 // Cleanup. |
118 connector.Shutdown(); | 119 connector.Shutdown(); |
119 } | 120 } |
120 | 121 |
121 } // namespace policy | 122 } // namespace policy |
OLD | NEW |