|
|
Chromium Code Reviews
Description[Download Notification] Add tests of incognito download
BUG=480489
TEST=run newly added tests
Committed: https://crrev.com/c42c4385549232d293c8aa7bb4b7248af6aafba0
Cr-Commit-Position: refs/heads/master@{#329695}
Patch Set 1 #
Total comments: 2
Patch Set 2 : fix build failure and test failure on debug build #Messages
Total messages: 17 (9 generated)
yoshiki@chromium.org changed reviewers: + asanka@chromium.org
Asanka, PTAL. Thanks.
lgtm https://codereview.chromium.org/1139963004/diff/1/chrome/browser/download/not... File chrome/browser/download/notification/download_notification_browsertest.cc (right): https://codereview.chromium.org/1139963004/diff/1/chrome/browser/download/not... chrome/browser/download/notification/download_notification_browsertest.cc:590: download_change_notification_observer.Wait(); Remind me again why we aren't using something like DownloadTestObserverTerminal?
https://codereview.chromium.org/1139963004/diff/1/chrome/browser/download/not... File chrome/browser/download/notification/download_notification_browsertest.cc (right): https://codereview.chromium.org/1139963004/diff/1/chrome/browser/download/not... chrome/browser/download/notification/download_notification_browsertest.cc:590: download_change_notification_observer.Wait(); On 2015/05/13 15:10:30, asanka wrote: > Remind me again why we aren't using something like DownloadTestObserverTerminal? I thought we can write it with DownloadTestObserverTerminal as following: 1 DownloadTestObserverTerminal download_observer; 2 NotificationUpdateObserver notification_change_observer; 3 /* Request to complete the download here. */ 4 download_observer.WaitForFinished(); 5 notification_change_observer.Wait(); 6 /* further checks */ But it has a timing issue. The update of the notification progress (eg. 80% -> 90%) may be occurred between the installation of observer (line #2) and download completion (initiated in line #3). As result, the notification change after completion (eg. 90% -> completed) can't be waited for in line #5, and the test may proceed to line #6 without notification change. This is a problem and causes flakiness.
The CQ bit was checked by yoshiki@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1139963004/1
The CQ bit was unchecked by yoshiki@chromium.org
The CQ bit was checked by yoshiki@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from asanka@chromium.org Link to the patchset: https://codereview.chromium.org/1139963004/#ps20001 (title: "fix build failure")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1139963004/20001
The CQ bit was unchecked by yoshiki@chromium.org
Patchset #2 (id:20001) has been deleted
The CQ bit was checked by yoshiki@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from asanka@chromium.org Link to the patchset: https://codereview.chromium.org/1139963004/#ps40001 (title: "fix build failure and test failure on debug build")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1139963004/40001
Message was sent while issue was closed.
Committed patchset #2 (id:40001)
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/c42c4385549232d293c8aa7bb4b7248af6aafba0 Cr-Commit-Position: refs/heads/master@{#329695} |
