Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: ui/BUILD.gn

Issue 496473003: Add ui_unittests to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « BUILD.gn ('k') | ui/base/dragdrop/os_exchange_data_win_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import("//build/config/ui.gni")
6
7 test("ui_unittests") {
8 sources = [
9 "base/layout_unittest.cc",
10 "base/l10n/l10n_util_mac_unittest.mm",
11 "base/l10n/l10n_util_unittest.cc",
12 "base/l10n/l10n_util_win_unittest.cc",
13 "base/l10n/time_format_unittest.cc",
14 "base/models/tree_node_iterator_unittest.cc",
15 "base/resource/data_pack_literal.cc",
16 "base/resource/data_pack_unittest.cc",
17 "base/resource/resource_bundle_unittest.cc",
18 "base/test/run_all_unittests.cc",
19 ]
20
21 if (is_ios) {
22 # Compile this Mac file on iOS as well.
23 set_sources_assignment_filter([])
24 sources += [ "base/l10n/l10n_util_mac_unittest.mm" ]
25 set_sources_assignment_filter(sources_assignment_filter)
26 } else { # !is_ios
27 sources += [
28 "base/accelerators/accelerator_manager_unittest.cc",
29 "base/accelerators/menu_label_accelerator_util_linux_unittest.cc",
30 "base/clipboard/custom_data_helper_unittest.cc",
31 "base/cocoa/base_view_unittest.mm",
32 "base/cocoa/cocoa_base_utils_unittest.mm",
33 "base/cocoa/controls/blue_label_button_unittest.mm",
34 "base/cocoa/controls/hover_image_menu_button_unittest.mm",
35 "base/cocoa/controls/hyperlink_button_cell_unittest.mm",
36 "base/cocoa/focus_tracker_unittest.mm",
37 "base/cocoa/fullscreen_window_manager_unittest.mm",
38 "base/cocoa/hover_image_button_unittest.mm",
39 "base/cocoa/menu_controller_unittest.mm",
40 "base/cocoa/nsgraphics_context_additions_unittest.mm",
41 "base/cocoa/tracking_area_unittest.mm",
42 "base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc",
43 "base/ime/candidate_window_unittest.cc",
44 "base/ime/chromeos/character_composer_unittest.cc",
45 "base/ime/composition_text_util_pango_unittest.cc",
46 "base/ime/input_method_base_unittest.cc",
47 "base/ime/input_method_chromeos_unittest.cc",
48 "base/ime/remote_input_method_win_unittest.cc",
49 "base/ime/win/imm32_manager_unittest.cc",
50 "base/ime/win/tsf_input_scope_unittest.cc",
51 "base/models/list_model_unittest.cc",
52 "base/models/list_selection_model_unittest.cc",
53 "base/models/tree_node_model_unittest.cc",
54 "base/test/data/resource.h",
55 "base/text/bytes_formatting_unittest.cc",
56 "base/view_prop_unittest.cc",
57 "base/webui/web_ui_util_unittest.cc",
58 "base/x/selection_requestor_unittest.cc",
59 ]
60
61 if (!use_x11) {
62 sources -= [ "base/ime/composition_text_util_pango_unittest.cc" ]
63 }
64 }
65
66 deps = [
67 "//base",
68 "//base/allocator",
69 "//base/test:test_support",
70 "//net",
71 "//skia",
72 "//testing/gmock",
73 "//testing/gtest",
74 "//third_party/icu",
75 "//ui/base",
76 "//ui/base:test_support",
77 "//ui/events:events_base",
78 "//ui/events:test_support",
79 "//ui/gfx:test_support",
80 "//ui/resources",
81 "//ui/resources:ui_test_pak",
82 "//ui/strings",
83 "//url",
84 ]
85
86 if (is_ios) {
87 # TODO(GYP) lots of iOS-only steps for ui_unittests
88 }
89
90 if (is_win) {
91 sources += [
92 "base/dragdrop/os_exchange_data_win_unittest.cc",
93 "base/win/hwnd_subclass_unittest.cc",
94 "base/win/open_file_name_win_unittest.cc",
95 ]
96
97 ldflags = [
98 "/DELAYLOAD:d2d1.dll",
99 "/DELAYLOAD:d3d10_1.dll",
100 ]
101 libs = [
102 "d2d1.lib",
103 "d3d10_1.lib",
104 "imm32.lib",
105 "oleacc.lib",
106 ]
107
108 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
109 cflags = [ "/wd4267" ]
110 }
111
112 if (is_android) {
113 deps += [
114 #"testing/android/native_test.gyp:native_test_native_code" TODO(GYP)
115 ]
116 }
117
118 if (use_pango) {
119 configs += [ "//build/config/linux:pangocairo" ]
120 }
121
122 if (use_x11) {
123 sources += [ "base/cursor/cursor_loader_x11_unittest.cc" ]
124 configs += [ "//build/config/linux:x11" ]
125 deps += [
126 "//ui/events/platform/x11",
127 "//ui/gfx/x",
128 ]
129 datadeps = [ "//tools/xdisplaycheck" ]
130 }
131
132 if (!is_win || !use_aura) {
133 sources -= [ "base/view_prop_unittest.cc" ]
134 }
135
136 if (is_mac) {
137 deps += [
138 #'../third_party/mozilla/mozilla.gyp:mozilla', TODO(GYP)
139 #'ui_unittests_bundle', TODO(GYP)
140 ]
141 if (!is_component_build) {
142 # Needed for mozilla.gyp.
143 ldflags = [ "-Wl,-ObjC" ]
144 }
145 }
146
147 if (use_aura || toolkit_views) {
148 sources += [ "base/dragdrop/os_exchange_data_unittest.cc" ]
149 deps += [
150 "//ui/events",
151 "//ui/events/platform",
152 ]
153 }
154
155 if (is_chromeos) {
156 sources += [
157 "chromeos/touch_exploration_controller_unittest.cc",
158 ]
159 sources -= [
160 "base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc",
161 "base/x/selection_requestor_unittest.cc",
162 ]
163 deps += [
164 "//ui/aura:test_support",
165 #'../chromeos/chromeos.gyp:chromeos', TODO(GYP)
166 #'chromeos/ui_chromeos.gyp:ui_chromeos',
167 #'events/events.gyp:gesture_detection',
168 ]
169 }
170
171 }
172
173 # TODO(GYP) Mac (ui_unittest_bundle) and Android (ui_unittests_apk).
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | ui/base/dragdrop/os_exchange_data_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698