DescriptionClass 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 #
Messages
Total messages: 19 (5 generated)
|