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

Issue 16022003: Base for Ash browser_tests on Win8. (Closed)

Created:
7 years, 7 months ago by gab
Modified:
7 years, 6 months ago
Reviewers:
jam, grt (UTC plus 2)
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Base for Ash browser_tests on Win8. For now, although the --ash-browsertests switch will launch browser_tests in Ash in Metro, most tests are still hardcoded to open browsers on the native desktop (HOST_DESKTOP_TYPE_NATIVE) -- follow-up CLs will be required to have all tests use GetActiveDesktop() instead and then add some checks to make sure no browsers are left on the wrong desktop when tests complete. I'm not making this the default browser_tests on Windows 8 because regular Desktop browser_tests should still be runnable, testable, debuggable, etc. on Win8 machines. BUG=179830 TEST="browser_tests.exe --ash-browsertests" should launch Ash in Metro for every test, each test should pass and exit (although most tests will no open browsers in Ash itself for now -- no checks is currently added to make sure of that so they should pass). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207936

Patch Set 1 : #

Patch Set 2 : Move implementation out of content/ into chrome/ #

Patch Set 3 : cleanup #

Total comments: 10

Patch Set 4 : Use SetUpTestCase instead of SetUp #

Patch Set 5 : raw ptr for com_initializer_ #

Patch Set 6 : merge https://codereview.chromium.org/15731003/ and don't depend on test code in chrome #

Patch Set 7 : Make --ash-browsertests implicitly add --disable-test-compositor #

Patch Set 8 : merge up to r207242 #

Patch Set 9 : add missing ifdefs #

Total comments: 6

Patch Set 10 : nits #

Patch Set 11 : add missing header #

Patch Set 12 : Call ui::DisableTestCompositor() in InProcessBrowserTest::SetUpTestCase #

Total comments: 2

Patch Set 13 : Do not use SetUp/TearDownTestCase() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -13 lines) Patch
M chrome/browser/browser_process_platform_part_aurawin.cc View 1 2 3 4 5 1 chunk +17 lines, -5 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/in_process_browser_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +12 lines, -2 lines 0 comments Download
M chrome/test/base/in_process_browser_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +32 lines, -0 lines 0 comments Download
M chrome/test/base/test_switches.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/test/base/test_switches.cc View 1 2 3 4 5 1 chunk +14 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
gab
Sir, please take a look. Thanks, Gab
7 years, 6 months ago (2013-05-28 17:23:18 UTC) #1
jam
drive-by: content doesn't know about ash. it seems all this code needs to be in ...
7 years, 6 months ago (2013-05-28 17:35:17 UTC) #2
gab
Thanks, moved everything into chrome/. The only difference in the new patch set as far ...
7 years, 6 months ago (2013-05-28 22:03:35 UTC) #3
jam
On 2013/05/28 22:03:35, gab wrote: > Thanks, moved everything into chrome/. > > The only ...
7 years, 6 months ago (2013-05-28 23:08:13 UTC) #4
gab
On 2013/05/28 23:08:13, jam wrote: > On 2013/05/28 22:03:35, gab wrote: > > Thanks, moved ...
7 years, 6 months ago (2013-05-28 23:12:11 UTC) #5
jam
On 2013/05/28 23:12:11, gab wrote: > On 2013/05/28 23:08:13, jam wrote: > > On 2013/05/28 ...
7 years, 6 months ago (2013-05-28 23:14:05 UTC) #6
grt (UTC plus 2)
https://codereview.chromium.org/16022003/diff/55001/chrome/browser/browser_process_platform_part_aurawin.cc File chrome/browser/browser_process_platform_part_aurawin.cc (right): https://codereview.chromium.org/16022003/diff/55001/chrome/browser/browser_process_platform_part_aurawin.cc#newcode38 chrome/browser/browser_process_platform_part_aurawin.cc:38: } else if (command_line.HasSwitch(switches::kAshBrowserTests)) { i'm a little uncomfortable ...
7 years, 6 months ago (2013-05-29 02:22:51 UTC) #7
gab
Partially addressed + comments below. Cheers, Gab https://codereview.chromium.org/16022003/diff/55001/chrome/browser/browser_process_platform_part_aurawin.cc File chrome/browser/browser_process_platform_part_aurawin.cc (right): https://codereview.chromium.org/16022003/diff/55001/chrome/browser/browser_process_platform_part_aurawin.cc#newcode38 chrome/browser/browser_process_platform_part_aurawin.cc:38: } else ...
7 years, 6 months ago (2013-05-29 14:52:20 UTC) #8
gab
Partially addressed + comments below. Cheers, Gab
7 years, 6 months ago (2013-05-29 14:55:17 UTC) #9
grt (UTC plus 2)
https://codereview.chromium.org/16022003/diff/55001/chrome/browser/browser_process_platform_part_aurawin.cc File chrome/browser/browser_process_platform_part_aurawin.cc (right): https://codereview.chromium.org/16022003/diff/55001/chrome/browser/browser_process_platform_part_aurawin.cc#newcode38 chrome/browser/browser_process_platform_part_aurawin.cc:38: } else if (command_line.HasSwitch(switches::kAshBrowserTests)) { On 2013/05/29 14:52:20, gab ...
7 years, 6 months ago (2013-05-29 15:51:03 UTC) #10
gab
Please take another look, see reply below. Cheers! Gab https://codereview.chromium.org/16022003/diff/55001/chrome/browser/browser_process_platform_part_aurawin.cc File chrome/browser/browser_process_platform_part_aurawin.cc (right): https://codereview.chromium.org/16022003/diff/55001/chrome/browser/browser_process_platform_part_aurawin.cc#newcode38 chrome/browser/browser_process_platform_part_aurawin.cc:38: ...
7 years, 6 months ago (2013-05-29 23:09:42 UTC) #11
jam
On 2013/05/29 23:09:42, gab wrote: > Please take another look, see reply below. > > ...
7 years, 6 months ago (2013-06-11 20:36:18 UTC) #12
jam
On 2013/05/29 23:09:42, gab wrote: > Please take another look, see reply below. who is ...
7 years, 6 months ago (2013-06-11 20:36:36 UTC) #13
gab
Just back from vacation, grt PTAL. Thanks! Gab
7 years, 6 months ago (2013-06-18 19:58:24 UTC) #14
gab
@grt: ping Thanks, Gab
7 years, 6 months ago (2013-06-20 21:56:49 UTC) #15
grt (UTC plus 2)
lgtm with the modifications below. thanks! https://codereview.chromium.org/16022003/diff/120001/chrome/test/base/in_process_browser_test.cc File chrome/test/base/in_process_browser_test.cc (right): https://codereview.chromium.org/16022003/diff/120001/chrome/test/base/in_process_browser_test.cc#newcode123 chrome/test/base/in_process_browser_test.cc:123: delete com_initializer_; com_initializer_ ...
7 years, 6 months ago (2013-06-20 23:10:06 UTC) #16
gab
Thanks, @jam: still LGTY? https://codereview.chromium.org/16022003/diff/120001/chrome/test/base/in_process_browser_test.cc File chrome/test/base/in_process_browser_test.cc (right): https://codereview.chromium.org/16022003/diff/120001/chrome/test/base/in_process_browser_test.cc#newcode123 chrome/test/base/in_process_browser_test.cc:123: delete com_initializer_; On 2013/06/20 23:10:06, ...
7 years, 6 months ago (2013-06-20 23:47:21 UTC) #17
grt (UTC plus 2)
lgtm++
7 years, 6 months ago (2013-06-21 01:16:47 UTC) #18
gab
Slight tweak: instead of adding switches::kDisableTestCompositor in InProcessBrowserTest::PrepareTestCommandLine(), call ui::DisableTestCompositor() in InProcessBrowserTest::SetUpTestCase(). Otherwise ContentTestSuiteBase::Initialize() calls ...
7 years, 6 months ago (2013-06-21 15:37:54 UTC) #19
gab
@jam: Please take another look (this no longer touches content/ so I technically could ask ...
7 years, 6 months ago (2013-06-21 15:40:20 UTC) #20
jam
https://codereview.chromium.org/16022003/diff/159001/chrome/test/base/in_process_browser_test.cc File chrome/test/base/in_process_browser_test.cc (right): https://codereview.chromium.org/16022003/diff/159001/chrome/test/base/in_process_browser_test.cc#newcode113 chrome/test/base/in_process_browser_test.cc:113: void InProcessBrowserTest::SetUpTestCase() { I'm not sure I understand the ...
7 years, 6 months ago (2013-06-21 16:32:05 UTC) #21
gab
Thanks, PTAL. https://codereview.chromium.org/16022003/diff/159001/chrome/test/base/in_process_browser_test.cc File chrome/test/base/in_process_browser_test.cc (right): https://codereview.chromium.org/16022003/diff/159001/chrome/test/base/in_process_browser_test.cc#newcode113 chrome/test/base/in_process_browser_test.cc:113: void InProcessBrowserTest::SetUpTestCase() { On 2013/06/21 16:32:05, jam ...
7 years, 6 months ago (2013-06-21 16:47:00 UTC) #22
jam
lgtm
7 years, 6 months ago (2013-06-21 16:58:13 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/16022003/155003
7 years, 6 months ago (2013-06-21 17:03:11 UTC) #24
commit-bot: I haz the power
7 years, 6 months ago (2013-06-21 22:31:33 UTC) #25
Message was sent while issue was closed.
Change committed as 207936

Powered by Google App Engine
This is Rietveld 408576698