OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 if (is_android) { | 8 if (is_android) { |
9 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
10 } | 10 } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 sources += [ | 47 sources += [ |
48 "touch_handle_drawable_aura.cc", | 48 "touch_handle_drawable_aura.cc", |
49 "touch_handle_drawable_aura.h", | 49 "touch_handle_drawable_aura.h", |
50 "touch_selection_menu_runner.cc", | 50 "touch_selection_menu_runner.cc", |
51 "touch_selection_menu_runner.h", | 51 "touch_selection_menu_runner.h", |
52 ] | 52 ] |
53 } | 53 } |
54 } | 54 } |
55 | 55 |
56 static_library("test_support") { | |
57 testonly = true | |
58 | |
59 sources = [ | |
60 "touch_selection_controller_test_api.cc", | |
61 "touch_selection_controller_test_api.h", | |
62 ] | |
63 | |
64 deps = [ | |
65 ":touch_selection", | |
66 ] | |
67 } | |
68 | |
69 # TODO(GYP): Delete this after we've converted everything to GN. | 56 # TODO(GYP): Delete this after we've converted everything to GN. |
70 # The _run targets exist only for compatibility w/ GYP. | 57 # The _run targets exist only for compatibility w/ GYP. |
71 group("ui_touch_selection_unittests_run") { | 58 group("ui_touch_selection_unittests_run") { |
72 testonly = true | 59 testonly = true |
73 deps = [ | 60 deps = [ |
74 ":ui_touch_selection_unittests", | 61 ":ui_touch_selection_unittests", |
75 ] | 62 ] |
76 } | 63 } |
77 | 64 |
78 test("ui_touch_selection_unittests") { | 65 test("ui_touch_selection_unittests") { |
79 sources = [ | 66 sources = [ |
80 "longpress_drag_selector_unittest.cc", | 67 "longpress_drag_selector_unittest.cc", |
81 "touch_handle_unittest.cc", | 68 "touch_handle_unittest.cc", |
82 "touch_selection_controller_unittest.cc", | 69 "touch_selection_controller_unittest.cc", |
83 ] | 70 ] |
84 | 71 |
85 deps = [ | 72 deps = [ |
86 ":test_support", | |
87 ":touch_selection", | 73 ":touch_selection", |
88 "//base/test:run_all_unittests", | 74 "//base/test:run_all_unittests", |
89 "//testing/gmock:gmock", | 75 "//testing/gmock:gmock", |
90 "//testing/gtest:gtest", | 76 "//testing/gtest:gtest", |
91 "//ui/base:base", | 77 "//ui/base:base", |
92 "//ui/events:test_support", | 78 "//ui/events:test_support", |
93 "//ui/gfx:gfx", | 79 "//ui/gfx:gfx", |
94 "//ui/gfx:test_support", | 80 "//ui/gfx:test_support", |
95 ] | 81 ] |
96 | 82 |
(...skipping 11 matching lines...) Expand all Loading... |
108 } | 94 } |
109 java_cpp_enum("ui_touch_handle_orientation_srcjar") { | 95 java_cpp_enum("ui_touch_handle_orientation_srcjar") { |
110 sources = [ | 96 sources = [ |
111 "touch_handle_orientation.h", | 97 "touch_handle_orientation.h", |
112 ] | 98 ] |
113 outputs = [ | 99 outputs = [ |
114 "org/chromium/ui/touch_selection/TouchHandleOrientation.java", | 100 "org/chromium/ui/touch_selection/TouchHandleOrientation.java", |
115 ] | 101 ] |
116 } | 102 } |
117 } | 103 } |
OLD | NEW |