OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/files/file_path_watcher.h" | 5 #include "base/files/file_path_watcher.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_POSIX) |
8 #include <windows.h> | |
9 #include <aclapi.h> | |
10 #elif defined(OS_POSIX) | |
11 #include <sys/stat.h> | 8 #include <sys/stat.h> |
12 #endif | 9 #endif |
13 | 10 |
14 #include <set> | 11 #include <set> |
15 | 12 |
16 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
17 #include "base/bind.h" | 14 #include "base/bind.h" |
18 #include "base/bind_helpers.h" | 15 #include "base/bind_helpers.h" |
19 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
20 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 ASSERT_TRUE(ChangeFilePermissions(test_dir1, Execute, false)); | 896 ASSERT_TRUE(ChangeFilePermissions(test_dir1, Execute, false)); |
900 ASSERT_TRUE(WaitForEvents()); | 897 ASSERT_TRUE(WaitForEvents()); |
901 ASSERT_TRUE(ChangeFilePermissions(test_dir1, Execute, true)); | 898 ASSERT_TRUE(ChangeFilePermissions(test_dir1, Execute, true)); |
902 DeleteDelegateOnFileThread(delegate.release()); | 899 DeleteDelegateOnFileThread(delegate.release()); |
903 } | 900 } |
904 | 901 |
905 #endif // OS_MACOSX | 902 #endif // OS_MACOSX |
906 } // namespace | 903 } // namespace |
907 | 904 |
908 } // namespace base | 905 } // namespace base |
OLD | NEW |