| 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 |
| 56 # TODO(GYP): Delete this after we've converted everything to GN. | 69 # TODO(GYP): Delete this after we've converted everything to GN. |
| 57 # The _run targets exist only for compatibility w/ GYP. | 70 # The _run targets exist only for compatibility w/ GYP. |
| 58 group("ui_touch_selection_unittests_run") { | 71 group("ui_touch_selection_unittests_run") { |
| 59 testonly = true | 72 testonly = true |
| 60 deps = [ | 73 deps = [ |
| 61 ":ui_touch_selection_unittests", | 74 ":ui_touch_selection_unittests", |
| 62 ] | 75 ] |
| 63 } | 76 } |
| 64 | 77 |
| 65 test("ui_touch_selection_unittests") { | 78 test("ui_touch_selection_unittests") { |
| 66 sources = [ | 79 sources = [ |
| 67 "longpress_drag_selector_unittest.cc", | 80 "longpress_drag_selector_unittest.cc", |
| 68 "touch_handle_unittest.cc", | 81 "touch_handle_unittest.cc", |
| 69 "touch_selection_controller_unittest.cc", | 82 "touch_selection_controller_unittest.cc", |
| 70 ] | 83 ] |
| 71 | 84 |
| 72 deps = [ | 85 deps = [ |
| 86 ":test_support", |
| 73 ":touch_selection", | 87 ":touch_selection", |
| 74 "//base/test:run_all_unittests", | 88 "//base/test:run_all_unittests", |
| 75 "//testing/gmock:gmock", | 89 "//testing/gmock:gmock", |
| 76 "//testing/gtest:gtest", | 90 "//testing/gtest:gtest", |
| 77 "//ui/base:base", | 91 "//ui/base:base", |
| 78 "//ui/events:test_support", | 92 "//ui/events:test_support", |
| 79 "//ui/gfx:gfx", | 93 "//ui/gfx:gfx", |
| 80 "//ui/gfx:test_support", | 94 "//ui/gfx:test_support", |
| 81 ] | 95 ] |
| 82 | 96 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 94 } | 108 } |
| 95 java_cpp_enum("ui_touch_handle_orientation_srcjar") { | 109 java_cpp_enum("ui_touch_handle_orientation_srcjar") { |
| 96 sources = [ | 110 sources = [ |
| 97 "touch_handle_orientation.h", | 111 "touch_handle_orientation.h", |
| 98 ] | 112 ] |
| 99 outputs = [ | 113 outputs = [ |
| 100 "org/chromium/ui/touch_selection/TouchHandleOrientation.java", | 114 "org/chromium/ui/touch_selection/TouchHandleOrientation.java", |
| 101 ] | 115 ] |
| 102 } | 116 } |
| 103 } | 117 } |
| OLD | NEW |