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

Issue 574703002: Creating mixin-supporting InProcessBrowserTests (Closed)

Created:
6 years, 3 months ago by Lisa Ignatyeva
Modified:
6 years, 3 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Class MixinBasedBrowserTest was added. This class expands its base class, InProcessBrowserTest, by supporting adding mixins. Mixins can be used to add some features not related directly to the testing process in order not to make the test class too complicated and to set up them in a proper time (at the same time when the corresponding set ups for the main test are run). A mixin should be a class inherited from MixinBasedBrowserTest::Mixin. Test which wants to use some mixin should call AddMixin(mixin_) from its constructor, where mixin_ should be an instance of e.g. MixinYouWantToUse. Also, now LoginManagerTest is inherited from MixinBasedBrowserTest. BUG=395653 Committed: https://crrev.com/dbd9c9b2ea5ab7163e42e0fce071805329bb11c5 Cr-Commit-Position: refs/heads/master@{#295954}

Patch Set 1 #

Patch Set 2 : added calls to parent setups and teardowns to loginmanagertest #

Patch Set 3 : fixed a typo #

Total comments: 6

Patch Set 4 : comments, renaming MixinInProcessBrowserTest to MixinBasedTest & some minor improvements #

Patch Set 5 : bug in MixinBasedBT constructor #

Patch Set 6 : style fixed #

Total comments: 1

Patch Set 7 : edited .gypi so that it links correctly everywhere where LoginManagerTest appears #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -4 lines) Patch
M chrome/browser/chromeos/login/login_manager_test.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/login_manager_test.cc View 1 2 3 4 chunks +4 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/mixin_based_browser_test.h View 1 2 3 1 chunk +85 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/mixin_based_browser_test.cc View 1 2 3 4 5 1 chunk +65 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
Lisa Ignatyeva
6 years, 3 months ago (2014-09-16 12:21:38 UTC) #2
Denis Kuznetsov (DE-MUC)
https://codereview.chromium.org/574703002/diff/40001/chrome/browser/chromeos/login/mixin_in_process_browser_test.cc File chrome/browser/chromeos/login/mixin_in_process_browser_test.cc (right): https://codereview.chromium.org/574703002/diff/40001/chrome/browser/chromeos/login/mixin_in_process_browser_test.cc#newcode58 chrome/browser/chromeos/login/mixin_in_process_browser_test.cc:58: mixins_.push_back(mixin); Maybe add some check that AddMixin can not ...
6 years, 3 months ago (2014-09-16 14:08:34 UTC) #4
Lisa Ignatyeva
https://codereview.chromium.org/574703002/diff/40001/chrome/browser/chromeos/login/mixin_in_process_browser_test.cc File chrome/browser/chromeos/login/mixin_in_process_browser_test.cc (right): https://codereview.chromium.org/574703002/diff/40001/chrome/browser/chromeos/login/mixin_in_process_browser_test.cc#newcode58 chrome/browser/chromeos/login/mixin_in_process_browser_test.cc:58: mixins_.push_back(mixin); On 2014/09/16 14:08:34, Denis Kuznetsov wrote: > Maybe ...
6 years, 3 months ago (2014-09-17 10:39:37 UTC) #5
Nikita (slow)
Liza, which parts do you expect me to review? I think if you need another ...
6 years, 3 months ago (2014-09-17 18:14:26 UTC) #6
Denis Kuznetsov (DE-MUC)
On 2014/09/17 18:14:26, Nikita Kostylev wrote: > Liza, which parts do you expect me to ...
6 years, 3 months ago (2014-09-17 19:25:40 UTC) #7
Denis Kuznetsov (DE-MUC)
lgtm with nit https://chromiumcodereview.appspot.com/574703002/diff/100001/chrome/browser/chromeos/login/mixin_based_browser_test.cc File chrome/browser/chromeos/login/mixin_based_browser_test.cc (right): https://chromiumcodereview.appspot.com/574703002/diff/100001/chrome/browser/chromeos/login/mixin_based_browser_test.cc#newcode61 chrome/browser/chromeos/login/mixin_based_browser_test.cc:61: << "You are trying to add ...
6 years, 3 months ago (2014-09-17 19:27:58 UTC) #8
Nikita (slow)
On 2014/09/17 19:25:40, Denis Kuznetsov wrote: > On 2014/09/17 18:14:26, Nikita Kostylev wrote: > > ...
6 years, 3 months ago (2014-09-17 20:41:04 UTC) #9
Denis Kuznetsov (DE-MUC)
On 2014/09/17 20:41:04, Nikita Kostylev wrote: > On 2014/09/17 19:25:40, Denis Kuznetsov wrote: > > ...
6 years, 3 months ago (2014-09-18 13:54:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/574703002/100001
6 years, 3 months ago (2014-09-22 10:47:52 UTC) #12
Nikita (slow)
On 2014/09/18 13:54:03, Denis Kuznetsov wrote: > On 2014/09/17 20:41:04, Nikita Kostylev wrote: > > ...
6 years, 3 months ago (2014-09-22 10:57:15 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/16523)
6 years, 3 months ago (2014-09-22 11:05:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/574703002/120001
6 years, 3 months ago (2014-09-22 12:11:17 UTC) #17
commit-bot: I haz the power
Committed patchset #7 (id:120001) as bab7932a7402d433821baf60d1e7c0c0b6a1e0ed
6 years, 3 months ago (2014-09-22 12:46:16 UTC) #18
commit-bot: I haz the power
6 years, 3 months ago (2014-09-22 12:46:55 UTC) #19
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/dbd9c9b2ea5ab7163e42e0fce071805329bb11c5
Cr-Commit-Position: refs/heads/master@{#295954}

Powered by Google App Engine
This is Rietveld 408576698