OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "components/policy/core/common/configuration_policy_provider_test.h" | 5 #include "components/policy/core/common/configuration_policy_provider_test.h" |
6 | 6 |
7 #include <memory> | |
8 #include <utility> | 7 #include <utility> |
9 | 8 |
10 #include "base/bind.h" | 9 #include "base/bind.h" |
11 #include "base/callback.h" | 10 #include "base/callback.h" |
12 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
13 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
14 #include "base/values.h" | 13 #include "base/values.h" |
15 #include "components/policy/core/common/configuration_policy_provider.h" | 14 #include "components/policy/core/common/configuration_policy_provider.h" |
16 #include "components/policy/core/common/external_data_fetcher.h" | 15 #include "components/policy/core/common/external_data_fetcher.h" |
17 #include "components/policy/core/common/mock_configuration_policy_provider.h" | 16 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, | 419 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, |
421 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")) | 420 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")) |
422 .CopyFrom(expected_policy); | 421 .CopyFrom(expected_policy); |
423 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, | 422 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, |
424 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb")) | 423 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb")) |
425 .CopyFrom(expected_policy); | 424 .CopyFrom(expected_policy); |
426 EXPECT_TRUE(provider_->policies().Equals(expected_bundle)); | 425 EXPECT_TRUE(provider_->policies().Equals(expected_bundle)); |
427 } | 426 } |
428 | 427 |
429 } // namespace policy | 428 } // namespace policy |
OLD | NEW |