Index: components/policy/core/common/configuration_policy_provider_test.h |
diff --git a/components/policy/core/common/configuration_policy_provider_test.h b/components/policy/core/common/configuration_policy_provider_test.h |
index 4a1a630b71ba4c266c79a983db3c3e83747b0117..80bdd9d282654886fe565335be97b44d5e2a8b30 100644 |
--- a/components/policy/core/common/configuration_policy_provider_test.h |
+++ b/components/policy/core/common/configuration_policy_provider_test.h |
@@ -12,11 +12,16 @@ |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
#include "base/message_loop/message_loop.h" |
+#include "build/build_config.h" |
#include "components/policy/core/common/policy_types.h" |
#include "components/policy/core/common/schema.h" |
#include "components/policy/core/common/schema_registry.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#if defined(OS_POSIX) |
+#include "base/files/file_descriptor_watcher_posix.h" |
+#endif |
+ |
namespace base { |
class DictionaryValue; |
class ListValue; |
@@ -54,8 +59,12 @@ class PolicyTestBase : public testing::Test { |
SchemaRegistry schema_registry_; |
- // Create an actual IO loop (needed by FilePathWatcher). |
+ // Needed by FilePathWatcher, which is used by ConfigDirPolicyLoader and |
+ // PolicyLoaderMac. |
base::MessageLoopForIO loop_; |
+#if defined(OS_POSIX) |
+ base::FileDescriptorWatcher file_descriptor_watcher_; |
+#endif |
private: |
DISALLOW_COPY_AND_ASSIGN(PolicyTestBase); |