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

Side by Side Diff: chrome/browser/file_path_watcher/file_path_watcher_browsertest.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/file_path_watcher/file_path_watcher.cc ('k') | chrome/browser/file_path_watcher/file_path_watcher_inotify.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698