Home
last modified time | relevance | path

Searched refs:test_api (Results 1 – 25 of 35) sorted by relevance

12

/external/chromium_org/ash/wm/
Dash_native_cursor_manager_unittest.cc64 CursorManagerTestApi test_api(cursor_manager); in TEST_F() local
70 EXPECT_EQ(ui::kCursorCopy, test_api.GetCurrentCursor().native_type()); in TEST_F()
72 EXPECT_EQ(2.0f, test_api.GetCurrentCursor().device_scale_factor()); in TEST_F()
73 EXPECT_EQ(ui::CURSOR_SET_NORMAL, test_api.GetCurrentCursorSet()); in TEST_F()
74 EXPECT_EQ(gfx::Display::ROTATE_90, test_api.GetCurrentCursorRotation()); in TEST_F()
75 EXPECT_TRUE(test_api.GetCurrentCursor().platform()); in TEST_F()
81 EXPECT_EQ(ui::CURSOR_SET_NORMAL, test_api.GetCurrentCursorSet()); in TEST_F()
83 EXPECT_EQ(ui::CURSOR_SET_NORMAL, test_api.GetCurrentCursorSet()); in TEST_F()
85 EXPECT_EQ(ui::CURSOR_SET_LARGE, test_api.GetCurrentCursorSet()); in TEST_F()
87 EXPECT_EQ(ui::CURSOR_SET_NORMAL, test_api.GetCurrentCursorSet()); in TEST_F()
[all …]
Dash_native_cursor_manager_interactive_uitest.cc93 test::CursorManagerTestApi test_api(cursor_manager); in TEST_F() local
106 EXPECT_EQ(1.0f, test_api.GetCurrentCursor().device_scale_factor()); in TEST_F()
109 EXPECT_EQ(2.0f, test_api.GetCurrentCursor().device_scale_factor()); in TEST_F()
Dresize_shadow_and_cursor_unittest.cc93 CursorManagerTestApi test_api(ash::Shell::GetInstance()->cursor_manager()); in GetCurrentCursorType() local
94 return test_api.GetCurrentCursor().native_type(); in GetCurrentCursorType()
/external/chromium_org/ash/display/
Dmirror_window_controller_unittest.cc71 test::MirrorWindowTestApi test_api; in TEST_F() local
87 EXPECT_TRUE(test_api.GetCursorWindow()); in TEST_F()
94 gfx::Point hot_point = test_api.GetCursorHotPoint(); in TEST_F()
96 test_api.GetCursorWindow()->bounds().origin(); in TEST_F()
100 EXPECT_EQ(ui::kCursorNull, test_api.GetCurrentCursorType()); in TEST_F()
101 EXPECT_TRUE(test_api.GetCursorWindow()->IsVisible()); in TEST_F()
105 hot_point = test_api.GetCursorHotPoint(); in TEST_F()
106 cursor_window_origin = test_api.GetCursorWindow()->bounds().origin(); in TEST_F()
109 EXPECT_EQ(ui::kCursorNorthResize, test_api.GetCurrentCursorType()); in TEST_F()
115 EXPECT_FALSE(test_api.GetCursorWindow()->IsVisible()); in TEST_F()
[all …]
Ddisplay_manager_unittest.cc1192 EXPECT_FALSE(test_api.GetHost()); in OnDisplayAdded()
1198 EXPECT_FALSE(test_api.GetHost()); in OnDisplayRemoved()
1209 test::MirrorWindowTestApi test_api; member in ash::TestDisplayObserver
1221 test::MirrorWindowTestApi test_api; in TEST_F() local
1222 EXPECT_EQ(NULL, test_api.GetHost()); in TEST_F()
1234 EXPECT_EQ("400x500", test_api.GetHost()->GetBounds().size().ToString()); in TEST_F()
1236 test_api.GetHost()->window()->bounds().size().ToString()); in TEST_F()
1241 EXPECT_EQ(NULL, test_api.GetHost()); in TEST_F()
1253 test_api.GetHost()->window()->bounds().size().ToString()); in TEST_F()
1258 test_api.GetHost()->window()->bounds().size().ToString()); in TEST_F()
[all …]
Dscreen_position_controller_unittest.cc45 ShellTestApi test_api(Shell::GetInstance()); in GetScreenPositionController() local
46 return test_api.screen_position_controller(); in GetScreenPositionController()
Droot_window_transformers_unittest.cc396 test::MirrorWindowTestApi test_api; in TEST_F() local
401 test_api.CreateCurrentRootWindowTransformer()); in TEST_F()
407 transformer = test_api.CreateCurrentRootWindowTransformer(); in TEST_F()
Ddisplay_controller_unittest.cc970 test::CursorManagerTestApi test_api(Shell::GetInstance()->cursor_manager()); in TEST_F() local
975 EXPECT_EQ(1.0f, test_api.GetCurrentCursor().device_scale_factor()); in TEST_F()
979 EXPECT_EQ(2.0f, test_api.GetCurrentCursor().device_scale_factor()); in TEST_F()
989 EXPECT_EQ(1.0f, test_api.GetCurrentCursor().device_scale_factor()); in TEST_F()
993 EXPECT_EQ(2.0f, test_api.GetCurrentCursor().device_scale_factor()); in TEST_F()
1000 EXPECT_EQ(1.0f, test_api.GetCurrentCursor().device_scale_factor()); in TEST_F()
1005 EXPECT_EQ(1.0f, test_api.GetCurrentCursor().device_scale_factor()); in TEST_F()
/external/chromium_org/ui/wm/core/
Dimage_grid_unittest.cc44 ImageGrid::TestAPI test_api(&grid); in TEST_F() local
60 test_api.GetTransformedLayerBounds( in TEST_F()
67 test_api.GetTransformedLayerBounds( in TEST_F()
72 test_api.GetTransformedLayerBounds( in TEST_F()
79 test_api.GetTransformedLayerBounds( in TEST_F()
86 test_api.GetTransformedLayerBounds( in TEST_F()
94 test_api.GetTransformedLayerBounds( in TEST_F()
100 test_api.GetTransformedLayerBounds( in TEST_F()
108 test_api.GetTransformedLayerBounds( in TEST_F()
116 test_api.GetTransformedLayerBounds( in TEST_F()
[all …]
/external/chromium_org/chrome/browser/chromeos/login/users/wallpaper/
Dwallpaper_manager_unittest.cc81 scoped_ptr<WallpaperManager::TestApi> test_api; in TEST_F() local
82 test_api.reset(new WallpaperManager::TestApi(WallpaperManager::Get())); in TEST_F()
87 test_api->SetWallpaperCache(test_user_1, test_user_1_wallpaper); in TEST_F()
88 test_api->SetWallpaperCache(test_user_2, test_user_2_wallpaper); in TEST_F()
89 test_api->SetWallpaperCache(test_user_3, test_user_3_wallpaper); in TEST_F()
91 test_api->ClearDisposableWallpaperCache(); in TEST_F()
94 EXPECT_TRUE(test_api->GetWallpaperFromCache(test_user_1, &cached_wallpaper)); in TEST_F()
97 EXPECT_TRUE(test_api->GetWallpaperFromCache(test_user_2, &cached_wallpaper)); in TEST_F()
101 EXPECT_FALSE(test_api->GetWallpaperFromCache(test_user_3, &cached_wallpaper)); in TEST_F()
Dwallpaper_manager_browsertest.cc488 scoped_ptr<WallpaperManager::TestApi> test_api; in IN_PROC_BROWSER_TEST_F() local
489 test_api.reset(new WallpaperManager::TestApi(wallpaper_manager)); in IN_PROC_BROWSER_TEST_F()
492 EXPECT_TRUE(test_api->GetWallpaperFromCache(kTestUser1, &cached_wallpaper)); in IN_PROC_BROWSER_TEST_F()
512 scoped_ptr<WallpaperManager::TestApi> test_api; in IN_PROC_BROWSER_TEST_F() local
513 test_api.reset(new WallpaperManager::TestApi(wallpaper_manager)); in IN_PROC_BROWSER_TEST_F()
516 EXPECT_TRUE(test_api->GetWallpaperFromCache(kTestUser1, &cached_wallpaper)); in IN_PROC_BROWSER_TEST_F()
522 EXPECT_TRUE(test_api->GetWallpaperFromCache(kTestUser1, &cached_wallpaper)); in IN_PROC_BROWSER_TEST_F()
532 EXPECT_TRUE(test_api->GetWallpaperFromCache(kTestUser1, &cached_wallpaper)); in IN_PROC_BROWSER_TEST_F()
546 EXPECT_TRUE(test_api->GetWallpaperFromCache(kTestUser1, &cached_wallpaper)); in IN_PROC_BROWSER_TEST_F()
552 EXPECT_FALSE(test_api->GetWallpaperFromCache(kTestUser1, &cached_wallpaper)); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/ash/shelf/
Dshelf_unittest.cc77 ash::test::ShelfViewTestAPI* test_api() { in test_api() function in ash::ShelfTest
94 int button_count = test_api()->GetButtonCount(); in TEST_F()
101 ASSERT_EQ(++button_count, test_api()->GetButtonCount()); in TEST_F()
102 ShelfButton* button = test_api()->GetButton(index); in TEST_F()
107 ASSERT_EQ(--button_count, test_api()->GetButtonCount()); in TEST_F()
114 int button_count = test_api()->GetButtonCount(); in TEST_F()
127 ASSERT_EQ(++button_count, test_api()->GetButtonCount()); in TEST_F()
128 ShelfButton* button = test_api()->GetButton(index); in TEST_F()
142 while (!test_api()->IsOverflowButtonVisible()) { in TEST_F()
153 test_api()->ShowOverflowBubble(); in TEST_F()
[all …]
Dshelf_tooltip_manager_unittest.cc236 ui::LocatedEventTestApi test_api(&mouse_event); in TEST_F() local
244 test_api.set_location(tooltip_rect.origin() + gfx::Vector2d(-1, -1)); in TEST_F()
277 ui::LocatedEventTestApi test_api(&mouse_event); in TEST_F() local
278 test_api.set_location(tooltip_rect.origin() + gfx::Vector2d(-1, -1)); in TEST_F()
/external/chromium_org/ui/gfx/animation/
Dslide_animation_unittest.cc57 SlideAnimation::TestApi test_api(&animation); in TEST_F() local
72 test_api.SetStartTime(base::TimeTicks()); in TEST_F()
73 test_api.Step(base::TimeTicks() + base::TimeDelta::FromMilliseconds(50)); in TEST_F()
/external/chromium_org/chrome/browser/ui/app_list/
Dapp_list_service_views_browsertest.cc151 test::AppListViewTestApi test_api(app_list_view); in IN_PROC_BROWSER_TEST_F() local
157 EXPECT_FALSE(test_api.is_overlay_visible()); in IN_PROC_BROWSER_TEST_F()
167 EXPECT_TRUE(test_api.is_overlay_visible()); in IN_PROC_BROWSER_TEST_F()
176 EXPECT_FALSE(test_api.is_overlay_visible()); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/components/web_modal/
Dweb_contents_modal_dialog_manager_unittest.cc106 test_api.reset(new WebContentsModalDialogManager::TestApi(manager)); in SetUp()
110 test_api.reset(); in TearDown()
125 scoped_ptr<WebContentsModalDialogManager::TestApi> test_api; member in web_modal::WebContentsModalDialogManagerTest
229 test_api->WebContentsWasHidden(); in TEST_F()
235 test_api->WebContentsWasShown(); in TEST_F()
260 test_api->DidAttachInterstitialPage(); in TEST_F()
371 test_api->CloseAllDialogs(); in TEST_F()
/external/chromium_org/tools/
Dgypv8sh.py33 (v8_shell, mock_js, test_api, js2webui, test_type,
42 test_api, js2webui])
/external/chromium_org/chrome/browser/apps/app_shim/
Dapp_shim_host_manager_browsertest_mac.mm207 test::AppShimHostManagerTestApi test_api(
209 EXPECT_TRUE(test_api.acceptor());
216 test::AppShimHostManagerTestApi test_api(
218 EXPECT_TRUE(test_api.acceptor());
268 test::AppShimHostManagerTestApi test_api(
270 directory_in_tmp_ = test_api.directory_in_tmp();
/external/chromium_org/ui/views/controls/combobox/
Dcombobox_unittest.cc521 test::MenuRunnerTestAPI test_api( in TEST_F() local
523 test_api.SetMenuRunnerHandler(menu_runner_handler.Pass()); in TEST_F()
542 test::MenuRunnerTestAPI test_api( in TEST_F() local
544 test_api.SetMenuRunnerHandler(menu_runner_handler.Pass()); in TEST_F()
601 scoped_ptr<test::MenuRunnerTestAPI> test_api( in TEST_F() local
603 test_api->SetMenuRunnerHandler(menu_runner_handler.Pass()); in TEST_F()
613 test_api.reset( in TEST_F()
615 test_api->SetMenuRunnerHandler(menu_runner_handler.Pass()); in TEST_F()
/external/chromium_org/chrome/browser/ui/cocoa/
Dcertificate_viewer_mac_browsertest.mm46 WebContentsModalDialogManager::TestApi test_api(
48 test_api.CloseAllDialogs();
Dssl_client_certificate_selector_cocoa_browsertest.mm63 WebContentsModalDialogManager::TestApi test_api(
65 test_api.CloseAllDialogs();
/external/chromium_org/chrome/
Djs_unittest_vars.gypi10 'test_api_js': '<(DEPTH)/chrome/test/data/webui/test_api.js',
/external/chromium_org/ash/wm/panels/
Dpanel_layout_manager_unittest.cc216 test::ShelfViewTestAPI test_api(shelf_view); in ClickShelfItemForWindow() local
217 test_api.SetAnimationDuration(1); in ClickShelfItemForWindow()
218 test_api.RunMessageLoopUntilAnimationsDone(); in ClickShelfItemForWindow()
221 gfx::Rect bounds = test_api.GetButton(index)->GetBoundsInScreen(); in ClickShelfItemForWindow()
227 test_api.RunMessageLoopUntilAnimationsDone(); in ClickShelfItemForWindow()
247 test::ShelfViewTestAPI test_api(shelf_view); in SetShelfAutoHideBehavior() local
248 test_api.RunMessageLoopUntilAnimationsDone(); in SetShelfAutoHideBehavior()
/external/chromium_org/ash/
Dshell_unittest.cc494 ui::EventTargetTestApi test_api(shell); in TEST_F() local
497 const ui::EventHandlerList& handlers = test_api.pre_target_handlers(); in TEST_F()
/external/chromium_org/chrome/browser/chromeos/display/
Ddisplay_preferences_unittest.cc224 ash::test::DisplayManagerTestApi test_api(display_manager); in TEST_F() local
226 test_api.SetAvailableColorProfiles(id1, profiles); in TEST_F()
542 ash::test::DisplayManagerTestApi test_api(display_manager); in TEST_F() local
543 test_api.SetAvailableColorProfiles(id1, profiles); in TEST_F()

12