| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/file_path_watcher.h" | 5 #include "chrome/browser/file_path_watcher/file_path_watcher.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "base/message_loop_proxy.h" | 13 #include "base/message_loop_proxy.h" |
| 14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 15 #include "base/platform_thread.h" | 15 #include "base/platform_thread.h" |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 SetupWatch(dest_file, &file_watcher, file_delegate.get()); | 446 SetupWatch(dest_file, &file_watcher, file_delegate.get()); |
| 447 scoped_refptr<TestDelegate> subdir_delegate(new TestDelegate(collector())); | 447 scoped_refptr<TestDelegate> subdir_delegate(new TestDelegate(collector())); |
| 448 SetupWatch(dest_subdir, &subdir_watcher, subdir_delegate.get()); | 448 SetupWatch(dest_subdir, &subdir_watcher, subdir_delegate.get()); |
| 449 | 449 |
| 450 // Move the directory into place, s.t. the watched file appears. | 450 // Move the directory into place, s.t. the watched file appears. |
| 451 ASSERT_TRUE(file_util::Move(source_dir, dest_dir)); | 451 ASSERT_TRUE(file_util::Move(source_dir, dest_dir)); |
| 452 WaitForEvents(); | 452 WaitForEvents(); |
| 453 } | 453 } |
| 454 | 454 |
| 455 } // namespace | 455 } // namespace |
| OLD | NEW |