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 source_set("omnibox") { | 5 source_set("omnibox") { |
6 sources = [ | 6 sources = [ |
7 "omnibox_util.cc", | 7 "omnibox_util.cc", |
8 "omnibox_util.h", | 8 "omnibox_util.h", |
9 "web_omnibox_edit_controller.cc", | 9 "web_omnibox_edit_controller.cc", |
10 "web_omnibox_edit_controller.h", | 10 "web_omnibox_edit_controller.h", |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 ] | 103 ] |
104 libs = [ | 104 libs = [ |
105 "CoreText.framework", | 105 "CoreText.framework", |
106 "MobileCoreServices.framework", | 106 "MobileCoreServices.framework", |
107 "QuartzCore.framework", | 107 "QuartzCore.framework", |
108 "UIKit.framework", | 108 "UIKit.framework", |
109 ] | 109 ] |
110 } | 110 } |
111 | 111 |
112 source_set("unit_tests") { | 112 source_set("unit_tests") { |
| 113 configs += [ "//build/config/compiler:enable_arc" ] |
113 testonly = true | 114 testonly = true |
114 sources = [ | 115 sources = [ |
115 "omnibox_text_field_ios_unittest.mm", | 116 "omnibox_text_field_ios_unittest.mm", |
116 ] | 117 ] |
117 deps = [ | 118 deps = [ |
118 ":omnibox_internal", | 119 ":omnibox_internal", |
119 ":resources_unit_tests", | 120 ":resources_unit_tests", |
120 "//base", | 121 "//base", |
121 "//ios/chrome/app/strings", | 122 "//ios/chrome/app/strings", |
122 "//ios/chrome/browser", | 123 "//ios/chrome/browser", |
123 "//testing/gtest", | 124 "//testing/gtest", |
124 "//ui/base", | 125 "//ui/base", |
125 ] | 126 ] |
126 } | 127 } |
127 | 128 |
128 bundle_data("resources_unit_tests") { | 129 bundle_data("resources_unit_tests") { |
129 visibility = [ ":unit_tests" ] | 130 visibility = [ ":unit_tests" ] |
130 testonly = true | 131 testonly = true |
131 sources = [ | 132 sources = [ |
132 "//ios/chrome/test/data/omnibox/selected_ranges.txt", | 133 "//ios/chrome/test/data/omnibox/selected_ranges.txt", |
133 ] | 134 ] |
134 outputs = [ | 135 outputs = [ |
135 "{{bundle_resources_dir}}/" + | 136 "{{bundle_resources_dir}}/" + |
136 "ios/chrome/test/data/omnibox/{{source_file_part}}", | 137 "ios/chrome/test/data/omnibox/{{source_file_part}}", |
137 ] | 138 ] |
138 } | 139 } |
OLD | NEW |