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

Issue 13255: Properly fix DirWatcherTest.SubDir on Vista. (Closed)

Created:
12 years ago by please use my chromium address
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Properly fix DirWatcherTest.SubDir on Vista. BUG=5072

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -18 lines) Patch
M base/directory_watcher.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M base/directory_watcher_unittest.cc View 1 2 4 chunks +21 lines, -14 lines 0 comments Download
M base/directory_watcher_win.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
please use my chromium address
Tested compile & base_unittests on XP. I'm not sure it fixes issue on Vista, but ...
12 years ago (2008-12-08 20:57:26 UTC) #1
Mark Mentovai
Defer to M-A on Windowsisms, but the code looks good - this will need to ...
12 years ago (2008-12-08 21:02:07 UTC) #2
please use my chromium address
http://codereview.chromium.org/13255/diff/1/4 File base/directory_watcher.h (right): http://codereview.chromium.org/13255/diff/1/4#newcode19 Line 19: // is created, deleted or rename in the ...
12 years ago (2008-12-08 21:22:52 UTC) #3
M-A Ruel
lgtm
12 years ago (2008-12-09 00:53:53 UTC) #4
M-A Ruel
12 years ago (2008-12-09 17:16:29 UTC) #5
http://codereview.chromium.org/13255/diff/206/208
File base/directory_watcher_unittest.cc (right):

http://codereview.chromium.org/13255/diff/206/208#newcode41
Line 41: ++directory_mods_;
Add this:
  EXPECT_EQ(path.value(), test_dir_.value());

http://codereview.chromium.org/13255/diff/206/208#newcode149
Line 149: 
The test was passing on Windows XP because of a timing issue. For an unknown
reason, it's very long for the second notification to come in (~1 sec). So you
need to add the following line:
  LoopUntilModsEqual(2);

I don't know how this relates to the other platforms. Maybe some work needs to
be done on the DirectoryWatcher class.

http://codereview.chromium.org/13255/diff/206/208#newcode156
Line 156: // We shouldn't have been notified (except for creating SubDir),
fix comment, that's not what is happening.

http://codereview.chromium.org/13255/diff/206/208#newcode158
Line 158: ASSERT_EQ(1, directory_mods_);
  ASSERT_EQ(2, directory_mods_);

Powered by Google App Engine
This is Rietveld 408576698