Home | History | Annotate | Download | only in base
      1 // Copyright 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "chrome/test/base/chrome_test_launcher.h"
      6 
      7 #include "ui/base/test/ui_controls.h"
      8 
      9 #if defined(USE_AURA)
     10 #include "ui/aura/test/ui_controls_factory_aura.h"
     11 #include "ui/base/test/ui_controls_aura.h"
     12 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
     13 #include "ui/views/test/ui_controls_factory_desktop_aurax11.h"
     14 #endif
     15 #endif
     16 
     17 #if defined(OS_CHROMEOS)
     18 #include "ash/test/ui_controls_factory_ash.h"
     19 #endif
     20 
     21 int main(int argc, char** argv) {
     22   // Only allow ui_controls to be used in interactive_ui_tests, since they
     23   // depend on focus and can't be sharded.
     24   ui_controls::EnableUIControls();
     25 
     26 #if defined(OS_CHROMEOS)
     27   ui_controls::InstallUIControlsAura(ash::test::CreateAshUIControls());
     28 #elif defined(USE_AURA)
     29 
     30 #if defined(OS_LINUX)
     31   ui_controls::InstallUIControlsAura(
     32       views::test::CreateUIControlsDesktopAura());
     33 #else
     34   // TODO(win_ash): when running interactive_ui_tests for Win Ash, use above.
     35   ui_controls::InstallUIControlsAura(aura::test::CreateUIControlsAura(NULL));
     36 #endif
     37 #endif
     38 
     39   // Run interactive_ui_tests serially, they do not support running in parallel.
     40   return LaunchChromeTests(1, argc, argv);
     41 }
     42