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 "chrome/browser/policy/configuration_policy_provider_test.h" | 5 #include "chrome/browser/policy/configuration_policy_provider_test.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/policy/configuration_policy_provider.h" | 10 #include "chrome/browser/policy/configuration_policy_provider.h" |
11 #include "chrome/browser/policy/mock_configuration_policy_provider.h" | 11 #include "chrome/browser/policy/mock_configuration_policy_provider.h" |
12 #include "chrome/browser/policy/policy_bundle.h" | 12 #include "chrome/browser/policy/policy_bundle.h" |
13 #include "chrome/browser/policy/policy_map.h" | 13 #include "chrome/browser/policy/policy_map.h" |
| 14 #include "chrome/browser/policy/policy_namespace.h" |
14 #include "policy/policy_constants.h" | 15 #include "policy/policy_constants.h" |
15 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
16 | 17 |
17 using content::BrowserThread; | 18 using content::BrowserThread; |
18 using ::testing::Mock; | 19 using ::testing::Mock; |
19 using ::testing::_; | 20 using ::testing::_; |
20 | 21 |
21 namespace policy { | 22 namespace policy { |
22 | 23 |
23 namespace test_policy_definitions { | 24 namespace test_policy_definitions { |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, | 325 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, |
325 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")) | 326 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")) |
326 .CopyFrom(expected_policy); | 327 .CopyFrom(expected_policy); |
327 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, | 328 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, |
328 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb")) | 329 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb")) |
329 .CopyFrom(expected_policy); | 330 .CopyFrom(expected_policy); |
330 EXPECT_TRUE(provider_->policies().Equals(expected_bundle)); | 331 EXPECT_TRUE(provider_->policies().Equals(expected_bundle)); |
331 } | 332 } |
332 | 333 |
333 } // namespace policy | 334 } // namespace policy |
OLD | NEW |