| 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 "chrome/browser/policy/cloud/cloud_policy_invalidator.h" | 5 #include "chrome/browser/policy/cloud/cloud_policy_invalidator.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator.h" | 25 #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator.h" |
| 26 #include "components/invalidation/impl/fake_invalidation_service.h" | 26 #include "components/invalidation/impl/fake_invalidation_service.h" |
| 27 #include "components/invalidation/public/invalidation_util.h" | 27 #include "components/invalidation/public/invalidation_util.h" |
| 28 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 28 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 29 #include "components/policy/core/common/cloud/cloud_policy_core.h" | 29 #include "components/policy/core/common/cloud/cloud_policy_core.h" |
| 30 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" | 30 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" |
| 31 #include "components/policy/core/common/cloud/enterprise_metrics.h" | 31 #include "components/policy/core/common/cloud/enterprise_metrics.h" |
| 32 #include "components/policy/core/common/cloud/mock_cloud_policy_client.h" | 32 #include "components/policy/core/common/cloud/mock_cloud_policy_client.h" |
| 33 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" | 33 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" |
| 34 #include "components/policy/core/common/policy_types.h" | 34 #include "components/policy/core/common/policy_types.h" |
| 35 #include "policy/policy_constants.h" | 35 #include "components/policy/policy_constants.h" |
| 36 #include "testing/gmock/include/gmock/gmock.h" | 36 #include "testing/gmock/include/gmock/gmock.h" |
| 37 #include "testing/gtest/include/gtest/gtest.h" | 37 #include "testing/gtest/include/gtest/gtest.h" |
| 38 | 38 |
| 39 namespace em = enterprise_management; | 39 namespace em = enterprise_management; |
| 40 | 40 |
| 41 namespace policy { | 41 namespace policy { |
| 42 | 42 |
| 43 class CloudPolicyInvalidatorTest : public testing::Test { | 43 class CloudPolicyInvalidatorTest : public testing::Test { |
| 44 protected: | 44 protected: |
| 45 // Policy objects which can be used in tests. | 45 // Policy objects which can be used in tests. |
| (...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 CloudPolicyInvalidatorUserTypedTest, | 1095 CloudPolicyInvalidatorUserTypedTest, |
| 1096 testing::Values(em::DeviceRegisterRequest::ANDROID_BROWSER)); | 1096 testing::Values(em::DeviceRegisterRequest::ANDROID_BROWSER)); |
| 1097 #else | 1097 #else |
| 1098 INSTANTIATE_TEST_CASE_P( | 1098 INSTANTIATE_TEST_CASE_P( |
| 1099 CloudPolicyInvalidatorUserTypedTestInstance, | 1099 CloudPolicyInvalidatorUserTypedTestInstance, |
| 1100 CloudPolicyInvalidatorUserTypedTest, | 1100 CloudPolicyInvalidatorUserTypedTest, |
| 1101 testing::Values(em::DeviceRegisterRequest::BROWSER)); | 1101 testing::Values(em::DeviceRegisterRequest::BROWSER)); |
| 1102 #endif | 1102 #endif |
| 1103 | 1103 |
| 1104 } // namespace policy | 1104 } // namespace policy |
| OLD | NEW |