Introduce performance test of app-list's page transition smoothness
This CL adds the tests for the animation smoothness of the page
transition between the apps grid in the list.
I ran this for 5 times on nocturne, here's the result;
next-page / clamshell: 73, 80, 73, 46, 46
next-page / tablet: 86, 66, 86, 6, 86
page-jump / clamshell: 40, 80, 26, 26, 40
page-jump / tablet: 73, 40, 66, 6, 86
Bug: 970879
Test: interactive_ui_tests
Change-Id: Ibc519b0cf47e3540d9a2c57f521ed64ee981c572
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1643783
Reviewed-by: Mitsuru Oshima <[email protected]>
Commit-Queue: Jun Mukai <[email protected]>
Cr-Commit-Position: refs/heads/master@{#666395}
diff --git a/ash/shell_test_api.cc b/ash/shell_test_api.cc
index 54dfc27..6281d86c 100644
--- a/ash/shell_test_api.cc
+++ b/ash/shell_test_api.cc
@@ -10,6 +10,7 @@
#include "ash/accelerators/accelerator_commands.h"
#include "ash/accelerometer/accelerometer_reader.h"
#include "ash/app_list/app_list_controller_impl.h"
+#include "ash/app_list/presenter/app_list_presenter_impl.h"
#include "ash/app_list/views/app_list_view.h"
#include "ash/keyboard/ash_keyboard_controller.h"
#include "ash/public/cpp/app_list/app_list_types.h"
@@ -250,6 +251,14 @@
run_loop.Run();
}
+PaginationModel* ShellTestApi::GetAppListPaginationModel() {
+ app_list::AppListView* view =
+ Shell::Get()->app_list_controller()->presenter()->GetView();
+ if (!view)
+ return nullptr;
+ return view->GetAppsPaginationModel();
+}
+
std::vector<aura::Window*> ShellTestApi::GetItemWindowListInOverviewGrids() {
return ash::Shell::Get()
->overview_controller()