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("//ios/web/js_compile.gni") | 5 import("//ios/web/js_compile.gni") |
6 | 6 |
7 bundle_data("resources") { | 7 bundle_data("resources") { |
8 sources = [ | 8 sources = [ |
9 "resources/expand_less.png", | 9 "resources/expand_less.png", |
10 "resources/expand_less@2x.png", | 10 "resources/expand_less@2x.png", |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 bundle_data("resources_unit_tests") { | 24 bundle_data("resources_unit_tests") { |
25 testonly = true | 25 testonly = true |
26 sources = [ | 26 sources = [ |
27 "resources/contextualsearch_unittest.js", | 27 "resources/contextualsearch_unittest.js", |
28 ] | 28 ] |
29 outputs = [ | 29 outputs = [ |
30 "{{bundle_resources_dir}}/{{source_file_part}}", | 30 "{{bundle_resources_dir}}/{{source_file_part}}", |
31 ] | 31 ] |
32 } | 32 } |
33 | |
34 source_set("contextual_search") { | |
35 sources = [ | |
36 "contextual_search_context.cc", | |
37 "contextual_search_context.h", | |
38 "contextual_search_controller.h", | |
39 "contextual_search_controller.mm", | |
40 "contextual_search_delegate.cc", | |
41 "contextual_search_delegate.h", | |
42 "contextual_search_header_view.h", | |
43 "contextual_search_header_view.mm", | |
44 "contextual_search_highlighter_view.h", | |
45 "contextual_search_highlighter_view.mm", | |
46 "contextual_search_mask_view.h", | |
47 "contextual_search_mask_view.mm", | |
48 "contextual_search_metrics.h", | |
49 "contextual_search_metrics.mm", | |
50 "contextual_search_panel_protocols.h", | |
51 "contextual_search_panel_view.h", | |
52 "contextual_search_panel_view.mm", | |
53 "contextual_search_promo_view.h", | |
54 "contextual_search_promo_view.mm", | |
55 "contextual_search_results_view.h", | |
56 "contextual_search_results_view.mm", | |
57 "contextual_search_web_state_observer.h", | |
58 "contextual_search_web_state_observer.mm", | |
59 "js_contextual_search_manager.h", | |
60 "js_contextual_search_manager.mm", | |
61 "panel_configuration.h", | |
62 "panel_configuration.mm", | |
63 "touch_to_search_permissions_mediator.h", | |
64 "touch_to_search_permissions_mediator.mm", | |
65 "window_gesture_observer.h", | |
66 "window_gesture_observer.mm", | |
67 ] | |
68 deps = [ | |
69 "//base", | |
70 "//components/google/core/browser", | |
71 "//components/prefs", | |
72 "//components/search_engines", | |
73 "//components/variations", | |
74 "//components/variations/net", | |
75 "//ios/chrome/app:tests_hook", | |
76 "//ios/chrome/app/strings", | |
77 "//ios/chrome/browser", | |
78 "//ios/chrome/browser/browser_state", | |
79 "//ios/chrome/browser/prefs", | |
80 "//ios/chrome/browser/search_engines", | |
81 "//ios/chrome/browser/sync", | |
82 "//ios/chrome/browser/tabs", | |
83 "//ios/chrome/browser/ui", | |
84 "//ios/chrome/browser/ui/colors", | |
85 "//ios/chrome/browser/ui/commands", | |
86 "//ios/chrome/browser/ui/contextual_search:injected_js", | |
87 "//ios/chrome/browser/ui/contextual_search:resources", | |
88 "//ios/chrome/browser/ui/contextual_search/protos", | |
89 "//ios/chrome/browser/ui/util", | |
90 "//ios/chrome/browser/web", | |
91 "//ios/chrome/common", | |
92 "//ios/public/provider/chrome/browser", | |
93 "//ios/public/provider/chrome/browser/images", | |
94 "//ios/third_party/material_components_ios", | |
95 "//ios/third_party/material_roboto_font_loader_ios", | |
96 "//ios/web", | |
97 "//net", | |
98 "//ui/base", | |
99 "//url", | |
100 ] | |
101 libs = [ "UIKit.framework" ] | |
102 } | |
103 | |
104 source_set("test_support") { | |
105 testonly = true | |
106 sources = [ | |
107 "touch_to_search_permissions_mediator+testing.h", | |
108 "touch_to_search_permissions_mediator+testing.mm", | |
109 ] | |
110 deps = [ | |
111 ":contextual_search", | |
112 ] | |
113 } | |
114 | |
115 source_set("unit_tests") { | |
116 testonly = true | |
117 sources = [ | |
118 "contextual_search_js_unittest.mm", | |
119 "touch_to_search_permissions_mediator_unittest.mm", | |
120 ] | |
121 deps = [ | |
122 ":contextual_search", | |
123 ":test_support", | |
124 "//base", | |
125 "//base/test:test_support", | |
126 "//components/pref_registry", | |
127 "//components/prefs", | |
128 "//components/search_engines", | |
129 "//ios/chrome/browser", | |
130 "//ios/chrome/browser/browser_state:test_support", | |
131 "//ios/chrome/browser/search_engines", | |
132 "//ios/chrome/browser/sync", | |
133 "//ios/chrome/browser/sync:test_support", | |
134 "//ios/chrome/browser/ui/contextual_search:resources_unit_tests", | |
135 "//ios/chrome/browser/web:test_support", | |
136 "//ios/web", | |
137 "//ios/web:test_support", | |
138 "//net", | |
139 "//testing/gtest", | |
140 "//third_party/ocmock", | |
141 ] | |
142 } | |
OLD | NEW |