Index: components/policy.gypi |
diff --git a/components/policy.gypi b/components/policy.gypi |
index 4580dea617873439d4aa7c4318557f4810383054..17b5cf93cda15a37fa6ecc820928b7b523a1a456 100644 |
--- a/components/policy.gypi |
+++ b/components/policy.gypi |
@@ -21,11 +21,13 @@ |
'conditions': [ |
['configuration_policy==1', { |
'sources': [ |
- 'policy/core/common/policy_bundle.cc', |
- 'policy/core/common/policy_bundle.h', |
+ 'policy/core/common/configuration_policy_provider.cc', |
+ 'policy/core/common/configuration_policy_provider.h', |
'policy/core/common/external_data_fetcher.cc', |
'policy/core/common/external_data_fetcher.h', |
'policy/core/common/external_data_manager.h', |
+ 'policy/core/common/policy_bundle.cc', |
+ 'policy/core/common/policy_bundle.h', |
'policy/core/common/policy_details.h', |
'policy/core/common/policy_namespace.cc', |
'policy/core/common/policy_namespace.h', |
@@ -64,4 +66,33 @@ |
], |
}, |
], |
+ 'conditions': [ |
+ ['configuration_policy==1', { |
+ 'targets': [ |
+ { |
+ 'target_name': 'policy_test_support', |
+ 'type': 'static_library', |
+ # This must be undefined so that POLICY_EXPORT works correctly in |
+ # the static_library build. |
+ 'defines!': [ |
+ 'POLICY_COMPONENT_IMPLEMENTATION', |
+ ], |
+ 'dependencies': [ |
+ 'policy_component', |
+ '../testing/gmock.gyp:gmock', |
+ '../testing/gtest.gyp:gtest', |
+ ], |
+ 'include_dirs': [ |
+ '..', |
+ ], |
+ 'sources': [ |
+ 'policy/core/common/configuration_policy_provider_test.cc', |
+ 'policy/core/common/configuration_policy_provider_test.h', |
+ 'policy/core/common/mock_configuration_policy_provider.cc', |
+ 'policy/core/common/mock_configuration_policy_provider.h', |
+ ], |
+ }, |
+ ], |
+ }], |
+ ], |
} |