| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//mojo/public/mojo_application.gni") | |
| 6 import("//mojo/public/tools/bindings/mojom.gni") | |
| 7 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 import("//build/config/ui.gni") |
| 7 |
| 8 assert(use_aura) |
| 9 |
| 10 component("shower") { |
| 11 sources = [ |
| 12 "app_list_shower.h", |
| 13 "app_list_shower_delegate.h", |
| 14 "app_list_shower_delegate_factory.h", |
| 15 "app_list_shower_export.h", |
| 16 "app_list_shower_impl.cc", |
| 17 "app_list_shower_impl.h", |
| 18 ] |
| 19 |
| 20 defines = [ "APP_LIST_SHOWER_IMPLEMENTATION" ] |
| 21 |
| 22 public_deps = [ |
| 23 "//base", |
| 24 "//ui/app_list", |
| 25 "//ui/aura", |
| 26 "//ui/compositor", |
| 27 "//ui/gfx/geometry", |
| 28 "//ui/views", |
| 29 ] |
| 30 } |
| 8 | 31 |
| 9 source_set("test_support") { | 32 source_set("test_support") { |
| 10 sources = [ | 33 sources = [ |
| 11 "test_catalog_store.cc", | 34 "test/app_list_shower_impl_test_api.cc", |
| 12 "test_catalog_store.h", | 35 "test/app_list_shower_impl_test_api.h", |
| 13 ] | 36 ] |
| 14 | 37 |
| 38 public_deps = [ |
| 39 ":shower", |
| 40 ] |
| 15 deps = [ | 41 deps = [ |
| 16 "//base", | 42 "//base", |
| 17 "//mojo/services/catalog:lib", | |
| 18 "//url", | |
| 19 ] | 43 ] |
| 20 } | 44 } |
| 21 | 45 |
| 22 source_set("unittests") { | 46 test("app_list_shower_unittests") { |
| 23 testonly = true | |
| 24 sources = [ | 47 sources = [ |
| 25 "background_shell_unittest.cc", | 48 "app_list_shower_impl_unittest.cc", |
| 49 "test/run_all_unittests.cc", |
| 26 ] | 50 ] |
| 27 | 51 |
| 52 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 53 |
| 28 deps = [ | 54 deps = [ |
| 29 ":test_app_bindings", | 55 ":shower", |
| 30 ":test_support", | 56 ":test_support", |
| 31 "//base", | 57 "//base", |
| 32 "//mojo/shell/background:lib", | 58 "//base/test:test_support", |
| 33 "//mojo/shell/background:main", | |
| 34 "//mojo/shell/public/cpp:sources", | |
| 35 "//testing/gtest", | 59 "//testing/gtest", |
| 36 "//url", | 60 "//ui/app_list:test_support", |
| 37 ] | 61 "//ui/aura:aura", |
| 38 | 62 "//ui/aura:test_support", |
| 39 data_deps = [ | 63 "//ui/base", |
| 40 ":test_app", | 64 "//ui/gl:test_support", |
| 65 "//ui/wm:wm", |
| 41 ] | 66 ] |
| 42 } | 67 } |
| 43 | |
| 44 mojom("test_app_bindings") { | |
| 45 sources = [ | |
| 46 "test.mojom", | |
| 47 ] | |
| 48 } | |
| 49 | |
| 50 mojo_native_application("test_app") { | |
| 51 output_name = "background_shell_test_app" | |
| 52 | |
| 53 sources = [ | |
| 54 "test_service.cc", | |
| 55 ] | |
| 56 | |
| 57 deps = [ | |
| 58 ":test_app_bindings", | |
| 59 "//base", | |
| 60 "//mojo/shell/public/cpp:sources", | |
| 61 "//mojo/shell/public/interfaces", | |
| 62 ] | |
| 63 } | |
| OLD | NEW |