Index: components/policy/core/common/configuration_policy_provider_test.h |
diff --git a/chrome/browser/policy/configuration_policy_provider_test.h b/components/policy/core/common/configuration_policy_provider_test.h |
similarity index 90% |
rename from chrome/browser/policy/configuration_policy_provider_test.h |
rename to components/policy/core/common/configuration_policy_provider_test.h |
index ce22b2ecd2ea74e3af94ba42701c32cf0f164d01..9ba195418b86d4201a4163ebfbf47bfe051819ef 100644 |
--- a/chrome/browser/policy/configuration_policy_provider_test.h |
+++ b/components/policy/core/common/configuration_policy_provider_test.h |
@@ -2,8 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_ |
-#define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_ |
+#ifndef COMPONENTS_POLICY_CORE_COMMON_CONFIGURATION_POLICY_PROVIDER_TEST_H_ |
+#define COMPONENTS_POLICY_CORE_COMMON_CONFIGURATION_POLICY_PROVIDER_TEST_H_ |
#include <string> |
@@ -15,6 +15,7 @@ |
#include "components/policy/core/common/policy_types.h" |
#include "components/policy/core/common/schema.h" |
#include "components/policy/core/common/schema_registry.h" |
+#include "components/policy/policy_export.h" |
#include "testing/gtest/include/gtest/gtest.h" |
namespace base { |
@@ -38,7 +39,7 @@ extern const char kKeyDictionary[]; |
} // namespace test_keys |
-class PolicyTestBase : public testing::Test { |
+class POLICY_EXPORT PolicyTestBase : public testing::Test { |
public: |
PolicyTestBase(); |
virtual ~PolicyTestBase(); |
@@ -61,7 +62,7 @@ class PolicyTestBase : public testing::Test { |
// An interface for creating a test policy provider and creating a policy |
// provider instance for testing. Used as the parameter to the abstract |
// ConfigurationPolicyProviderTest below. |
-class PolicyProviderTestHarness { |
+class POLICY_EXPORT PolicyProviderTestHarness { |
public: |
// |level| and |scope| are the level and scope of the policies returned by |
// the providers from CreateProvider(). |
@@ -111,7 +112,7 @@ typedef PolicyProviderTestHarness* (*CreatePolicyProviderTestHarness)(); |
// Abstract policy provider test. This is meant to be instantiated for each |
// policy provider implementation, passing in a suitable harness factory |
// function as the test parameter. |
-class ConfigurationPolicyProviderTest |
+class POLICY_EXPORT ConfigurationPolicyProviderTest |
: public PolicyTestBase, |
public testing::WithParamInterface<CreatePolicyProviderTestHarness> { |
protected: |
@@ -137,7 +138,7 @@ class ConfigurationPolicyProviderTest |
// An extension of ConfigurationPolicyProviderTest that also tests loading of |
// 3rd party policy. Policy provider implementations that support loading of |
// 3rd party policy should also instantiate these tests. |
-class Configuration3rdPartyPolicyProviderTest |
+class POLICY_EXPORT Configuration3rdPartyPolicyProviderTest |
: public ConfigurationPolicyProviderTest { |
protected: |
Configuration3rdPartyPolicyProviderTest(); |
@@ -149,4 +150,4 @@ class Configuration3rdPartyPolicyProviderTest |
} // namespace policy |
-#endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_ |
+#endif // COMPONENTS_POLICY_CORE_COMMON_CONFIGURATION_POLICY_PROVIDER_TEST_H_ |