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

Issue 22743002: Convert OneClickSigninBubbleViewTest to browser_tests. (Closed)

Created:
7 years, 4 months ago by fdoray
Modified:
6 years, 9 months ago
CC:
chromium-reviews, tim+watch_chromium.org, tfarina, haitaol+watch_chromium.org, timurrrr+watch_chromium.org, rsimha+watch_chromium.org, glider+watch_chromium.org, bruening+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Convert OneClickSigninBubbleViewTest to browser_tests. When a blur event occurs during the execution of OneClickSigninBubbleViewTest, the bubble is dismissed and some assertions fail. For that reason, this CL adds a set_close_on_deactivate_for_testing() method to OneClickSigninBubbleView to prevent it from being affected by focus during tests. OneClickSigninBubbleViewTest has also been converted to browser_tests, which is more appropriate for a test that handles focus events. There is no need to move the test to interactive_ui_tests, because it doesn't fail even if focus events occur during the execution. TEST=Run browser_tests:OneClickSigninBubbleViewTest.* BUG=266972 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221130

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rename set_close_on_deactivate_ -> set_close_on_deactivate_for_testing_ #

Patch Set 3 : Rebase #

Patch Set 4 : Move to interactive_ui_tests #

Patch Set 5 : Remove set_close_on_deactivate_for_testing #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Patch Set 8 : Prevent the bubble from being closed during tests #

Patch Set 9 : Remove tabs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -373 lines) Patch
M chrome/browser/ui/views/sync/one_click_signin_bubble_view.h View 1 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc View 1 2 3 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
A + chrome/browser/ui/views/sync/one_click_signin_bubble_view_browsertest.cc View 1 2 3 4 5 6 7 15 chunks +26 lines, -40 lines 0 comments Download
D chrome/browser/ui/views/sync/one_click_signin_bubble_view_unittest.cc View 1 2 3 1 chunk +0 lines, -328 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -2 lines 0 comments Download
M tools/valgrind/gtest_exclude/unit_tests.gtest-drmemory_win32.txt View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
fdoray
Could you review this CL? Thanks. https://codereview.chromium.org/22743002/diff/1/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h File chrome/browser/ui/views/sync/one_click_signin_bubble_view.h (right): https://codereview.chromium.org/22743002/diff/1/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h#newcode60 chrome/browser/ui/views/sync/one_click_signin_bubble_view.h:60: static void set_close_on_deactivate_for_testing(bool ...
7 years, 4 months ago (2013-08-09 18:22:42 UTC) #1
Roger Tawa OOO till Jul 10th
lgtm, with comment below. https://codereview.chromium.org/22743002/diff/1/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h File chrome/browser/ui/views/sync/one_click_signin_bubble_view.h (right): https://codereview.chromium.org/22743002/diff/1/chrome/browser/ui/views/sync/one_click_signin_bubble_view.h#newcode159 chrome/browser/ui/views/sync/one_click_signin_bubble_view.h:159: static bool close_on_deactivate_; Better to ...
7 years, 4 months ago (2013-08-09 18:55:10 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/22743002/7001
7 years, 4 months ago (2013-08-09 19:22:09 UTC) #3
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=19878
7 years, 4 months ago (2013-08-09 20:31:46 UTC) #4
fdoray
+pkasting@chromium.org Owner. Can you review this CL? Thanks.
7 years, 4 months ago (2013-08-09 20:44:43 UTC) #5
fdoray
Peter: Can you review this CL?
7 years, 4 months ago (2013-08-15 22:30:47 UTC) #6
Peter Kasting
Is this an interactive_uitest? If not, it needs to be made one. That's the correct ...
7 years, 4 months ago (2013-08-15 22:33:56 UTC) #7
fdoray
On 2013/08/15 22:33:56, Peter Kasting wrote: > Is this an interactive_uitest? If not, it needs ...
7 years, 4 months ago (2013-08-19 16:01:31 UTC) #8
Peter Kasting
On 2013/08/19 16:01:31, fdoray wrote: > Do you have any idea about what caused the ...
7 years, 4 months ago (2013-08-19 18:41:30 UTC) #9
sky
If this test relies on native focus, then Peter is right, it should be an ...
7 years, 4 months ago (2013-08-19 22:43:09 UTC) #10
fdoray
I moved the test to interactive_ui_tests and it seems stable. Could you review the CL? ...
7 years, 3 months ago (2013-09-03 00:10:31 UTC) #11
sky
LGTM
7 years, 3 months ago (2013-09-03 16:18:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/22743002/42006
7 years, 3 months ago (2013-09-03 23:36:59 UTC) #13
commit-bot: I haz the power
Change committed as 221130
7 years, 3 months ago (2013-09-04 03:11:20 UTC) #14
fdoray
My change was reverted because it made the test flaky (http://build.chromium.org/p/chromium.win/builders/Win%207%20Tests%20x64%20%281%29/builds/7638). It seems that some ...
7 years, 3 months ago (2013-09-08 20:31:42 UTC) #15
sky
Interactive ui tests should run serially with no other tests running. So, I'm not sure ...
7 years, 3 months ago (2013-09-09 15:35:35 UTC) #16
Peter Kasting
7 years, 2 months ago (2013-10-08 00:24:45 UTC) #17
On 2013/09/09 15:35:35, sky wrote:
> Interactive ui tests should run serially with no other tests running. So, I'm
> not sure why you would see flakiness. Do you understand what was causing the
> flake?

Ping fdoray (this change seems to have gone silent)

Powered by Google App Engine
This is Rietveld 408576698