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

Issue 2630683003: Revert of Convert more test helpers to base::RunLoop, fix page title checks. (Closed)

Created:
3 years, 11 months ago by xlai (Olivia)
Modified:
3 years, 11 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Convert more test helpers to base::RunLoop, fix page title checks. (patchset #5 id:80001 of https://codereview.chromium.org/2601843002/ ) Reason for revert: ClickModifierTest.WindowOpenBasicClickTest and ClickModifierTest.WindowOpenControlShiftClickTest become very flaky recently. Example builds are all recorded at crbug.com/681035. By looking at the error log file (https://build.chromium.org/p/chromium.win/builders/Win%207%20Tests%20x64%20%281%29/builds/19997/steps/browser_tests/logs/stdio), I notice that the error comes from src\chrome\browser\ui\browser_browsertest.cc(2451) which is recently modified by this CL. Therefore the revert. Original issue's description: > Convert more test helpers to base::RunLoop, fix page title checks. > > This CL removes the "deferred quit" from most of the touched helpers. > > The exclusions are UrlCommitObserver and TestFrameNavigationObserver. > They were already using immediate quit mode, so there is no change in > their behavior, just cleanup. > > Regarding title checks in browser_browsertest.cc: in these tests there > is no guarantee on when the new tab will start and stop loading. It > can start loading after WindowedNotificationObserver::Wait returns; also > it can stop loading while we're still inside it. We can explicitly wait > for the title to handle all these cases, and this makes the call to > WaitForLoadStop unnecessary. > > > BUG=668707 > CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation > > Review-Url: https://codereview.chromium.org/2601843002 > Cr-Commit-Position: refs/heads/master@{#443395} > Committed: https://chromium.googlesource.com/chromium/src/+/e7469132628fa7bd530d68c134e4159d2cfc1804 TBR=nasko@chromium.org,pkasting@chromium.org,ahest@yandex-team.ru # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=668707, 681035 Review-Url: https://codereview.chromium.org/2630683003 Cr-Commit-Position: refs/heads/master@{#443671} Committed: https://chromium.googlesource.com/chromium/src/+/0fe6b1a44d65f685dc90aa7ef6c2b44dca2c9667

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -65 lines) Patch
M chrome/browser/ui/browser_browsertest.cc View 3 chunks +6 lines, -9 lines 0 comments Download
M content/public/test/browser_test_base.cc View 1 chunk +1 line, -8 lines 0 comments Download
M content/public/test/browser_test_utils.h View 3 chunks +3 lines, -9 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 4 chunks +13 lines, -14 lines 0 comments Download
M content/public/test/test_frame_navigation_observer.h View 2 chunks +2 lines, -3 lines 0 comments Download
M content/public/test/test_frame_navigation_observer.cc View 5 chunks +7 lines, -5 lines 0 comments Download
M content/public/test/test_utils.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/test/test_utils.cc View 3 chunks +9 lines, -9 lines 0 comments Download
M content/test/content_browser_test_utils_internal.h View 3 chunks +3 lines, -3 lines 0 comments Download
M content/test/content_browser_test_utils_internal.cc View 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (4 generated)
xlai (Olivia)
Created Revert of Convert more test helpers to base::RunLoop, fix page title checks.
3 years, 11 months ago (2017-01-13 21:16:05 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2630683003/1
3 years, 11 months ago (2017-01-13 21:17:22 UTC) #4
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 21:18:51 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/0fe6b1a44d65f685dc90aa7ef6c2...

Powered by Google App Engine
This is Rietveld 408576698