Searched refs:test_api (Results 1 - 25 of 28) sorted by relevance

12

/external/chromium_org/ash/wm/
H A Dash_native_cursor_manager_unittest.cc58 CursorManagerTestApi test_api(cursor_manager);
64 EXPECT_EQ(ui::kCursorCopy, test_api.GetCurrentCursor().native_type());
69 EXPECT_EQ(2.5f, test_api.GetCurrentScale());
70 EXPECT_EQ(2.0f, test_api.GetDisplay().device_scale_factor());
71 EXPECT_EQ(gfx::Display::ROTATE_90, test_api.GetDisplay().rotation());
72 EXPECT_TRUE(test_api.GetCurrentCursor().platform());
78 EXPECT_EQ(2.5f, test_api.GetCurrentScale());
80 EXPECT_EQ(1.f, test_api.GetCurrentScale());
82 EXPECT_EQ(1.5f, test_api.GetCurrentScale());
86 EXPECT_EQ(ui::kCursorCopy, test_api
[all...]
/external/chromium_org/ash/display/
H A Dmirror_window_controller_unittest.cc47 test::MirrorWindowTestApi test_api; local
63 EXPECT_TRUE(test_api.GetCursorWindow());
70 gfx::Point hot_point = test_api.GetCursorHotPoint();
72 test_api.GetCursorWindow()->bounds().origin();
76 EXPECT_EQ(ui::kCursorNull, test_api.GetCurrentCursorType());
77 EXPECT_TRUE(test_api.GetCursorWindow()->IsVisible());
81 hot_point = test_api.GetCursorHotPoint();
82 cursor_window_origin = test_api.GetCursorWindow()->bounds().origin();
85 EXPECT_EQ(ui::kCursorNorthResize, test_api.GetCurrentCursorType());
91 EXPECT_FALSE(test_api
104 test::MirrorWindowTestApi test_api; local
171 test::MirrorWindowTestApi test_api; local
[all...]
H A Ddisplay_manager_unittest.cc908 EXPECT_FALSE(test_api.GetRootWindow());
914 EXPECT_FALSE(test_api.GetRootWindow());
925 test::MirrorWindowTestApi test_api; member in class:ash::internal::TestDisplayObserver
937 test::MirrorWindowTestApi test_api; local
938 EXPECT_EQ(NULL, test_api.GetRootWindow());
950 EXPECT_EQ("400x500", test_api.GetRootWindow()->GetHostSize().ToString());
951 EXPECT_EQ("300x400", test_api.GetRootWindow()->bounds().size().ToString());
956 EXPECT_EQ(NULL, test_api.GetRootWindow());
967 EXPECT_EQ("300x400", test_api.GetRootWindow()->bounds().size().ToString());
972 EXPECT_EQ("310x410", test_api
[all...]
H A Dscreen_position_controller_unittest.cc45 ShellTestApi test_api(Shell::GetInstance());
46 return test_api.screen_position_controller();
H A Droot_window_transformers_unittest.cc400 test::MirrorWindowTestApi test_api;
405 test_api.CreateCurrentRootWindowTransformer());
411 transformer = test_api.CreateCurrentRootWindowTransformer();
H A Ddisplay_controller_unittest.cc704 test::CursorManagerTestApi test_api(Shell::GetInstance()->cursor_manager());
709 EXPECT_EQ(1.0f, test_api.GetDisplay().device_scale_factor());
713 EXPECT_EQ(2.0f, test_api.GetDisplay().device_scale_factor());
723 EXPECT_EQ(1.0f, test_api.GetDisplay().device_scale_factor());
727 EXPECT_EQ(2.0f, test_api.GetDisplay().device_scale_factor());
734 EXPECT_EQ(1.0f, test_api.GetDisplay().device_scale_factor());
739 EXPECT_EQ(1.0f, test_api.GetDisplay().device_scale_factor());
/external/chromium_org/ui/views/corewm/
H A Dimage_grid_unittest.cc44 ImageGrid::TestAPI test_api(&grid);
60 test_api.GetTransformedLayerBounds(
67 test_api.GetTransformedLayerBounds(
72 test_api.GetTransformedLayerBounds(
79 test_api.GetTransformedLayerBounds(
86 test_api.GetTransformedLayerBounds(
94 test_api.GetTransformedLayerBounds(
100 test_api.GetTransformedLayerBounds(
108 test_api.GetTransformedLayerBounds(
116 test_api
[all...]
/external/chromium_org/components/web_modal/
H A Dweb_contents_modal_dialog_manager_unittest.cc58 WebContentsModalDialogManager::TestApi test_api(
66 test_api.ResetNativeManager(native_manager);
77 test_api.CloseAllDialogs();
/external/chromium/chrome/browser/chromeos/cros/
H A Dcros_mock.cc55 chromeos::CrosLibrary::TestApi* CrosMock::test_api() { function in class:chromeos::CrosMock
73 test_api()->SetLibraryLoader(loader_, true);
81 test_api()->SetCryptohomeLibrary(mock_cryptohome_library_, true);
89 test_api()->SetInputMethodLibrary(mock_input_method_library_, true);
97 test_api()->SetNetworkLibrary(mock_network_library_, true);
105 test_api()->SetPowerLibrary(mock_power_library_, true);
113 test_api()->SetScreenLockLibrary(mock_screen_lock_library_, true);
122 test_api()->SetSpeechSynthesisLibrary(mock_speech_synthesis_library_, true);
130 test_api()->SetTouchpadLibrary(mock_touchpad_library_, true);
387 test_api()
[all...]
H A Dcros_mock.h89 chromeos::CrosLibrary::TestApi* test_api();
/external/chromium_org/chrome/browser/chromeos/login/
H A Dwallpaper_manager_unittest.cc126 scoped_ptr<WallpaperManager::TestApi> test_api; local
127 test_api.reset(new WallpaperManager::TestApi(WallpaperManager::Get()));
132 EXPECT_TRUE(test_api->current_wallpaper_path().empty());
/external/chromium_org/ui/base/animation/
H A Dslide_animation_unittest.cc56 SlideAnimation::TestApi test_api(&animation);
71 test_api.SetStartTime(base::TimeTicks());
72 test_api.Step(base::TimeTicks() + base::TimeDelta::FromMilliseconds(50));
/external/chromium_org/tools/
H A Dgypv8sh.py10 python tools/gypv8sh.py v8_shell mock.js test_api.js js2webui.js \
25 "%prog v8_shell mock.js axs_testing.js test_api.js js2webui.js "
34 (v8_shell, mock_js, axs_testing_js, test_api, js2webui, test_type,
38 axs_testing_js, test_api, js2webui]
/external/chromium/chrome/browser/chromeos/login/
H A Dcryptohome_op_unittest.cc43 CrosLibrary::TestApi* test_api = CrosLibrary::Get()->GetTestApi(); local
52 test_api->SetLibraryLoader(loader, true);
54 test_api->SetCryptohomeLibrary(mock_library_.get(), false);
62 chromeos::CrosLibrary::TestApi* test_api = local
64 test_api->SetLibraryLoader(NULL, false);
H A Donline_attempt_unittest.cc43 CrosLibrary::TestApi* test_api = CrosLibrary::Get()->GetTestApi(); local
52 test_api->SetLibraryLoader(loader, true);
61 chromeos::CrosLibrary::TestApi* test_api = local
63 test_api->SetLibraryLoader(NULL, false);
H A Dexisting_user_controller_browsertest.cc126 cros_mock_->test_api()->SetLoginLibrary(mock_login_library_, true);
163 cros_mock_->test_api()->SetLoginLibrary(NULL, false);
H A Dparallel_authenticator_unittest.cc83 chromeos::CrosLibrary::TestApi* test_api = local
92 test_api->SetLibraryLoader(loader_, true);
95 test_api->SetCryptohomeLibrary(mock_library_, true);
111 chromeos::CrosLibrary::TestApi* test_api = local
113 test_api->SetLibraryLoader(NULL, false);
114 test_api->SetCryptohomeLibrary(NULL, false);
H A Dupdate_screen_browsertest.cc41 cros_mock_->test_api()->SetLoginLibrary(mock_login_library_, true);
46 cros_mock_->test_api()->SetUpdateLibrary(mock_update_library_, true);
74 cros_mock_->test_api()->SetUpdateLibrary(NULL, true);
H A Dnetwork_screen_browsertest.cc58 cros_mock_->test_api()->SetLoginLibrary(mock_login_library_, true);
113 cros_mock_->test_api()->SetLoginLibrary(NULL, false);
H A Dgoogle_authenticator_unittest.cc70 chromeos::CrosLibrary::TestApi* test_api = local
79 test_api->SetLibraryLoader(loader_, true);
82 test_api->SetCryptohomeLibrary(mock_library_, true);
88 chromeos::CrosLibrary::TestApi* test_api = local
90 test_api->SetLibraryLoader(NULL, false);
91 test_api->SetCryptohomeLibrary(NULL, false);
H A Dsigned_settings_unittest.cc236 chromeos::CrosLibrary::TestApi* test_api = local
249 test_api->SetLibraryLoader(loader, true);
252 test_api->SetLoginLibrary(mock_library, true);
258 chromeos::CrosLibrary::TestApi* test_api = local
260 test_api->SetLibraryLoader(NULL, false);
261 test_api->SetLoginLibrary(NULL, false);
/external/chromium_org/ash/launcher/
H A Dlauncher_tooltip_manager_unittest.cc233 ui::LocatedEvent::TestApi test_api(&mouse_event);
241 test_api.set_location(tooltip_rect.origin() + gfx::Vector2d(-1, -1));
/external/chromium_org/ash/wm/panels/
H A Dpanel_layout_manager_unittest.cc219 test::LauncherViewTestAPI test_api(launcher_view);
220 test_api.SetAnimationDuration(1);
221 test_api.RunMessageLoopUntilAnimationsDone();
227 gfx::Rect bounds = test_api.GetButton(index)->GetBoundsInScreen();
233 test_api.RunMessageLoopUntilAnimationsDone();
254 test::LauncherViewTestAPI test_api(launcher_view);
255 test_api.RunMessageLoopUntilAnimationsDone();
H A Dpanel_window_resizer_unittest.cc40 test::ShellTestApi test_api(Shell::GetInstance());
41 model_ = test_api.launcher_model();
/external/chromium_org/ash/
H A Dshell_unittest.cc313 Shell::TestApi test_api(shell);
431 Shell::TestApi test_api(shell);
434 const ui::EventHandlerList& handlers = test_api.pre_target_handlers();

Completed in 870 milliseconds

12