For example, WidgetTestInteractive subclasses from WidgetTest (which subclasses from ViewTestBase)
There are some common works for the setup.
gl::GLSurfaceTestSupport::InitializeOneOff();
ui::RegisterPathProvider();
base::FilePath ui_test_pak_path;
ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path));
ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path);
If we can extract the common setup work to a new subclass, which can save the duplicate code lines and make writing interactive_ui_tests better.
See also,
src/ui/views/widget/desktop_aura/x11_topmost_window_finder_interactive_uitest.cc
src/ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc
src/ui/views/corewm/desktop_capture_controller_unittest.cc
Comment 1 by bugdroid1@chromium.org
, Oct 25 2016