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

Issue 11471027: Added more tests for IncognitoModeAvailability. (Closed)

Created:
8 years ago by rustema
Modified:
7 years, 11 months ago
Reviewers:
brettw, sky, xot
CC:
chromium-reviews, sadrul, Avi (use Gerrit), ben+watch_chromium.org, creis+watch_chromium.org, ajwong+watch_chromium.org, scottc
Visibility:
Public.

Description

Added more tests for IncognitoModeAvailability. The user should not be able to open Incognito windows from link and launcher context menus when the Incognito mode is disabled (e.g. by a policy). This CL should help automate http://google-testcasemanager.appspot.com/home#!view=test&ti=16954266 BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176991

Patch Set 1 #

Patch Set 2 : Switch off aura tests for win. #

Patch Set 3 : Sync #

Patch Set 4 : browsertests -> unittests #

Patch Set 5 : Small fix for NULL aura root window controller. #

Patch Set 6 : Fix build problems. #

Patch Set 7 : Add render_view_context_menu_test_util.cc #

Patch Set 8 : Add render_view_context_menu_test_util to unit_test and browser_tests. #

Total comments: 28

Patch Set 9 : Style issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -20 lines) Patch
M chrome/browser/tab_contents/render_view_context_menu.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu_browsertest.cc View 1 2 3 2 chunks +1 line, -19 lines 0 comments Download
A chrome/browser/tab_contents/render_view_context_menu_test_util.h View 1 2 3 4 5 6 7 8 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/tab_contents/render_view_context_menu_test_util.cc View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +57 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
A chrome/browser/ui/ash/launcher/launcher_context_menu_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +115 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
sky
Why do these tests need to be browser tests and not unit tests?
8 years ago (2012-12-13 22:55:33 UTC) #1
rustema
On 2012/12/13 22:55:33, sky wrote: > Why do these tests need to be browser tests ...
8 years ago (2012-12-14 03:03:45 UTC) #2
rustema
8 years ago (2012-12-14 03:04:05 UTC) #3
sky
You can still use prefs in unit tests. -Scott On Thu, Dec 13, 2012 at ...
8 years ago (2012-12-14 17:11:41 UTC) #4
xot
Will unit test be able to verify the behavior of the right-click (or Ctrl+click) pop-up ...
8 years ago (2012-12-14 18:09:07 UTC) #5
rustema
Originally these tests were supposed to be integration tests. So we made them browser tests. ...
8 years ago (2012-12-17 03:58:49 UTC) #6
sky
On Fri, Dec 14, 2012 at 10:08 AM, Scott Cunningham <scunningham@google.com> wrote: > Will unit ...
8 years ago (2012-12-17 17:10:18 UTC) #7
sky
Unit tests are preferable as they are focused tests, orders of magnitude faster that browser_tests ...
8 years ago (2012-12-17 17:13:42 UTC) #8
rustema
Hi Scott, Sorry for not replying earlier: just came back from vacation. I see your ...
7 years, 11 months ago (2013-01-13 21:51:54 UTC) #9
sky
https://codereview.chromium.org/11471027/diff/36003/chrome/browser/tab_contents/render_view_context_menu_test_util.cc File chrome/browser/tab_contents/render_view_context_menu_test_util.cc (right): https://codereview.chromium.org/11471027/diff/36003/chrome/browser/tab_contents/render_view_context_menu_test_util.cc#newcode8 chrome/browser/tab_contents/render_view_context_menu_test_util.cc:8: content::WebContents* web_contents, content::ContextMenuParams params) same comment agbout each param ...
7 years, 11 months ago (2013-01-14 16:03:36 UTC) #10
rustema
https://codereview.chromium.org/11471027/diff/36003/chrome/browser/tab_contents/render_view_context_menu_test_util.cc File chrome/browser/tab_contents/render_view_context_menu_test_util.cc (right): https://codereview.chromium.org/11471027/diff/36003/chrome/browser/tab_contents/render_view_context_menu_test_util.cc#newcode8 chrome/browser/tab_contents/render_view_context_menu_test_util.cc:8: content::WebContents* web_contents, content::ContextMenuParams params) On 2013/01/14 16:03:37, sky wrote: ...
7 years, 11 months ago (2013-01-15 07:37:40 UTC) #11
sky
LGTM
7 years, 11 months ago (2013-01-15 16:49:32 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rustema@google.com/11471027/32007
7 years, 11 months ago (2013-01-15 20:06:24 UTC) #13
commit-bot: I haz the power
7 years, 11 months ago (2013-01-15 22:32:32 UTC) #14
Message was sent while issue was closed.
Change committed as 176991

Powered by Google App Engine
This is Rietveld 408576698