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

Issue 10007043: Attempt to fix ChromeFrameTestWithWebServer tests. (Closed)

Created:
8 years, 8 months ago by grt (UTC plus 2)
Modified:
8 years, 8 months ago
CC:
chromium-reviews, grt+watch_chromium.org, amit
Visibility:
Public.

Description

Attempt to fix ChromeFrameTestWithWebServer tests. - Use a single MockWebServer (HTTPTestServer) instance for the whole test case rather than one per instance. - Run pending tasks and the end of each test. - Try even harder to keep the browser from caching. - Re-enable all previously disabled tests. - Save a snapshot of the screen to the desktop (ChromiumSnapshotYYYYMMDDHHMMSS.png) when tests timeout. - Use a local IPv4 address assigned to a NIC rather than the loopback address. - Retry tests that timeout a single time. BUG=112599, 96449, 37088, 32321, 111074 TEST=chrome_frame_tests.exe --gtest_filter=ChromeFrameTestWithWebServer.* becomes less flaky Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132637

Patch Set 1 #

Total comments: 2

Patch Set 2 : take snapshots on timeout #

Total comments: 1

Patch Set 3 : i heart compilers #

Patch Set 4 : no loopback #

Patch Set 5 : retry tests that timeout #

Patch Set 6 : Added retry logic for WidgetModeIE_Version. #

Total comments: 14

Patch Set 7 : addressed robert's excellent nits #

Patch Set 8 : TimeDelta change landed at r131813 #

Total comments: 2

Patch Set 9 : move snapshot fn into ui_test_utils_win.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+327 lines, -95 lines) Patch
M chrome/browser/ui/window_snapshot/window_snapshot.h View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/window_snapshot/window_snapshot_win.cc View 1 2 3 4 5 6 3 chunks +13 lines, -4 lines 0 comments Download
M chrome/test/base/ui_test_utils.h View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/test/base/ui_test_utils_win.cc View 1 2 3 4 5 6 7 8 2 chunks +72 lines, -0 lines 0 comments Download
M chrome_frame/chrome_frame.gyp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome_frame/test/chrome_frame_test_utils.h View 1 2 3 4 5 6 7 5 chunks +46 lines, -2 lines 0 comments Download
M chrome_frame/test/chrome_frame_test_utils.cc View 1 2 3 4 5 6 7 3 chunks +36 lines, -0 lines 0 comments Download
M chrome_frame/test/mock_ie_event_sink_test.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome_frame/test/net/fake_external_tab.cc View 1 2 3 4 5 6 1 chunk +3 lines, -26 lines 0 comments Download
M chrome_frame/test/test_with_web_server.h View 1 2 3 4 5 6 7 8 chunks +55 lines, -8 lines 0 comments Download
M chrome_frame/test/test_with_web_server.cc View 1 2 3 4 5 6 7 21 chunks +83 lines, -53 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
grt (UTC plus 2)
I wonder if this will make any difference whatsoever...
8 years, 8 months ago (2012-04-06 18:44:21 UTC) #1
robertshield
Change LGTM, see comment below https://chromiumcodereview.appspot.com/10007043/diff/1/chrome_frame/test/test_with_web_server.cc File chrome_frame/test/test_with_web_server.cc (right): https://chromiumcodereview.appspot.com/10007043/diff/1/chrome_frame/test/test_with_web_server.cc#newcode115 chrome_frame/test/test_with_web_server.cc:115: 1337, L"127.0.0.1", chrome_frame_test::GetTestDataFolder()); I ...
8 years, 8 months ago (2012-04-06 21:16:14 UTC) #2
grt (UTC plus 2)
I'll give it a shot, as this doesn't seem to have helped. On Apr 6, ...
8 years, 8 months ago (2012-04-06 23:00:33 UTC) #3
grt (UTC plus 2)
https://chromiumcodereview.appspot.com/10007043/diff/1/chrome_frame/test/test_with_web_server.cc File chrome_frame/test/test_with_web_server.cc (right): https://chromiumcodereview.appspot.com/10007043/diff/1/chrome_frame/test/test_with_web_server.cc#newcode115 chrome_frame/test/test_with_web_server.cc:115: 1337, L"127.0.0.1", chrome_frame_test::GetTestDataFolder()); On 2012/04/06 21:16:14, robertshield wrote: > ...
8 years, 8 months ago (2012-04-09 14:02:39 UTC) #4
grt (UTC plus 2)
This CL currently contains the TimeDelta change in https://chromiumcodereview.appspot.com/10053004/. I'll remove it from here once ...
8 years, 8 months ago (2012-04-11 03:23:30 UTC) #5
robertshield
LGTM, with the obligatory nits, moaning and complaining to keep you happy. https://chromiumcodereview.appspot.com/10007043/diff/25005/chrome/browser/ui/window_snapshot/window_snapshot.h File chrome/browser/ui/window_snapshot/window_snapshot.h ...
8 years, 8 months ago (2012-04-11 17:03:36 UTC) #6
grt (UTC plus 2)
I'm so happy. Thanks. PTAL. https://chromiumcodereview.appspot.com/10007043/diff/25005/chrome/browser/ui/window_snapshot/window_snapshot_win.cc File chrome/browser/ui/window_snapshot/window_snapshot_win.cc (right): https://chromiumcodereview.appspot.com/10007043/diff/25005/chrome/browser/ui/window_snapshot/window_snapshot_win.cc#newcode19 chrome/browser/ui/window_snapshot/window_snapshot_win.cc:19: if (window_handle) { On ...
8 years, 8 months ago (2012-04-11 17:33:08 UTC) #7
robertshield
On 2012/04/11 17:33:08, grt wrote: > I'm so happy. Thanks. PTAL. > > https://chromiumcodereview.appspot.com/10007043/diff/25005/chrome/browser/ui/window_snapshot/window_snapshot_win.cc > ...
8 years, 8 months ago (2012-04-11 17:46:07 UTC) #8
grt (UTC plus 2)
OWNERS time. please let me know if someone else is better suited to review these ...
8 years, 8 months ago (2012-04-11 20:21:59 UTC) #9
Ben Goodger (Google)
LGTM for browser/ui
8 years, 8 months ago (2012-04-11 21:10:26 UTC) #10
grt (UTC plus 2)
Pawel: ping.
8 years, 8 months ago (2012-04-13 15:25:03 UTC) #11
Paweł Hajdan Jr.
Sorry for late response. How do you prevent those on-disk snapshots from filling up disk ...
8 years, 8 months ago (2012-04-14 10:42:56 UTC) #12
grt (UTC plus 2)
Thanks, Pawel. See https://chromiumcodereview.appspot.com/9972002/ for The Disks Are Too Damn Full. https://chromiumcodereview.appspot.com/10007043/diff/25009/chrome/test/base/ui_test_utils.cc File chrome/test/base/ui_test_utils.cc (right): ...
8 years, 8 months ago (2012-04-14 23:18:04 UTC) #13
Paweł Hajdan Jr.
LGTM
8 years, 8 months ago (2012-04-17 06:27:54 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/10007043/32001
8 years, 8 months ago (2012-04-17 17:35:05 UTC) #15
commit-bot: I haz the power
Try job failure for 10007043-32001 on linux_clang for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_clang&number=15297 Step "update" is always ...
8 years, 8 months ago (2012-04-17 18:53:48 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/10007043/32001
8 years, 8 months ago (2012-04-17 18:58:31 UTC) #17
commit-bot: I haz the power
8 years, 8 months ago (2012-04-17 20:34:34 UTC) #18
Change committed as 132637

Powered by Google App Engine
This is Rietveld 408576698