Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Unified Diff: ui/app_list/shower/BUILD.gn

Issue 1830293002: AppListController refactoring part 1: AppListShower implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: AppListShower to new component: //ui/app_list/shower, GetViewDelegate() in GetViewDelegate(). Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/app_list/shower/BUILD.gn
diff --git a/mojo/shell/background/tests/BUILD.gn b/ui/app_list/shower/BUILD.gn
similarity index 30%
copy from mojo/shell/background/tests/BUILD.gn
copy to ui/app_list/shower/BUILD.gn
index 59b34821c0d1c8cff4f11d5234581ea0262d3684..da0fa21d69f01cc96c11808eca9b0b4bb496a17b 100644
--- a/mojo/shell/background/tests/BUILD.gn
+++ b/ui/app_list/shower/BUILD.gn
@@ -2,62 +2,66 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import("//mojo/public/mojo_application.gni")
-import("//mojo/public/tools/bindings/mojom.gni")
import("//testing/test.gni")
+import("//build/config/ui.gni")
-source_set("test_support") {
+assert(use_aura)
+
+component("shower") {
sources = [
- "test_catalog_store.cc",
- "test_catalog_store.h",
+ "app_list_shower.h",
+ "app_list_shower_delegate.h",
+ "app_list_shower_delegate_factory.h",
+ "app_list_shower_export.h",
+ "app_list_shower_impl.cc",
+ "app_list_shower_impl.h",
]
- deps = [
+ defines = [ "APP_LIST_SHOWER_IMPLEMENTATION" ]
+
+ public_deps = [
"//base",
- "//mojo/services/catalog:lib",
- "//url",
+ "//ui/app_list",
+ "//ui/aura",
+ "//ui/compositor",
+ "//ui/gfx/geometry",
+ "//ui/views",
]
}
-source_set("unittests") {
- testonly = true
+source_set("test_support") {
sources = [
- "background_shell_unittest.cc",
+ "test/app_list_shower_impl_test_api.cc",
+ "test/app_list_shower_impl_test_api.h",
]
+ public_deps = [
+ ":shower",
+ ]
deps = [
- ":test_app_bindings",
- ":test_support",
"//base",
- "//mojo/shell/background:lib",
- "//mojo/shell/background:main",
- "//mojo/shell/public/cpp:sources",
- "//testing/gtest",
- "//url",
- ]
-
- data_deps = [
- ":test_app",
]
}
-mojom("test_app_bindings") {
+test("app_list_shower_unittests") {
sources = [
- "test.mojom",
+ "app_list_shower_impl_unittest.cc",
+ "test/run_all_unittests.cc",
]
-}
-
-mojo_native_application("test_app") {
- output_name = "background_shell_test_app"
- sources = [
- "test_service.cc",
- ]
+ configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [
- ":test_app_bindings",
+ ":shower",
+ ":test_support",
"//base",
- "//mojo/shell/public/cpp:sources",
- "//mojo/shell/public/interfaces",
+ "//base/test:test_support",
+ "//testing/gtest",
+ "//ui/app_list:test_support",
+ "//ui/aura:aura",
+ "//ui/aura:test_support",
+ "//ui/base",
+ "//ui/gl:test_support",
+ "//ui/wm:wm",
]
}

Powered by Google App Engine
This is Rietveld 408576698