Lines Matching full:watcher
89 // reset expectations while the file watcher is running. In order to allow this,
119 FilePathWatcher* watcher,
124 watcher_(watcher),
176 FilePathWatcher* watcher,
182 watcher,
206 FilePathWatcher watcher;
208 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get()));
218 FilePathWatcher watcher;
220 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get()));
232 FilePathWatcher watcher;
234 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get()));
244 FilePathWatcher watcher;
246 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get()));
257 Deleter(FilePathWatcher* watcher, MessageLoop* loop)
258 : watcher_(watcher),
271 // Verify that deleting a watcher during the callback doesn't crash.
273 FilePathWatcher* watcher = new FilePathWatcher;
274 // Takes ownership of watcher.
275 scoped_refptr<Deleter> deleter(new Deleter(watcher, &loop_));
276 ASSERT_TRUE(SetupWatch(test_file(), watcher, deleter.get()));
286 // Verify that deleting the watcher works even if there is a pending
290 FilePathWatcher* watcher = new FilePathWatcher;
291 ASSERT_TRUE(SetupWatch(test_file(), watcher, delegate.get()));
293 file_thread_.message_loop_proxy()->DeleteSoon(FROM_HERE, watcher);
310 FilePathWatcher watcher;
314 ASSERT_TRUE(SetupWatch(file, &watcher, delegate.get()));
343 FilePathWatcher watcher;
346 ASSERT_TRUE(SetupWatch(file, &watcher, delegate.get()));
365 FilePathWatcher watcher;
371 ASSERT_TRUE(SetupWatch(file, &watcher, delegate.get()));
380 FilePathWatcher watcher;
382 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get()));
394 FilePathWatcher watcher;
399 ASSERT_TRUE(SetupWatch(dir, &watcher, delegate.get()));
480 FilePathWatcher watcher;
482 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get()));
598 FilePathWatcher watcher;
600 ASSERT_TRUE(SetupWatch(test_file, &watcher, delegate.get()));