Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1653)

Unified Diff: components/policy/core/common/configuration_policy_provider_test.h

Issue 2353103002: Use FileDescriptorWatcher in FilePathWatcherKQueue. (Closed)
Patch Set: fix windows build error Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « base/files/file_path_watcher_kqueue.cc ('k') | components/policy/core/common/configuration_policy_provider_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698