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

Side by Side Diff: ash/BUILD.gn

Issue 2713923002: chromeos: moves a bunch of tests to common_unittests (Closed)
Patch Set: feedback Created 3 years, 10 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
« no previous file with comments | « no previous file | ash/accelerators/accelerator_filter_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
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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 import("//ui/base/ui_features.gni") 8 import("//ui/base/ui_features.gni")
9 9
10 # Historical note: Ash shipped on Windows for a couple years to support 10 # Historical note: Ash shipped on Windows for a couple years to support
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 "//ash/resources:ash_test_resources_200_percent", 1150 "//ash/resources:ash_test_resources_200_percent",
1151 ] 1151 ]
1152 } 1152 }
1153 1153
1154 # This target includes the tests that are run by both ash and mash. Eventually 1154 # This target includes the tests that are run by both ash and mash. Eventually
1155 # the majority of tests in |ash_unittests| should move here. 1155 # the majority of tests in |ash_unittests| should move here.
1156 source_set("common_unittests") { 1156 source_set("common_unittests") {
1157 testonly = true 1157 testonly = true
1158 sources = [ 1158 sources = [
1159 "accelerators/accelerator_controller_unittest.cc", 1159 "accelerators/accelerator_controller_unittest.cc",
1160 "accelerators/accelerator_filter_unittest.cc",
1161 "accelerators/spoken_feedback_toggler_unittest.cc",
1162 "ash_touch_exploration_manager_chromeos_unittest.cc",
1163 "autoclick/autoclick_unittest.cc",
1160 "common/accelerators/accelerator_table_unittest.cc", 1164 "common/accelerators/accelerator_table_unittest.cc",
1161 "common/devtools/ash_devtools_unittest.cc", 1165 "common/devtools/ash_devtools_unittest.cc",
1162 "common/drag_drop/drag_image_view_unittest.cc", 1166 "common/drag_drop/drag_image_view_unittest.cc",
1167 "common/frame/caption_buttons/frame_caption_button_container_view_unittest.c c",
1168 "common/frame/custom_frame_view_ash_unittest.cc",
1169 "common/frame/default_header_painter_unittest.cc",
1170 "common/metrics/pointer_metrics_recorder_unittest.cc",
1163 "common/mus_property_mirror_ash_unittest.cc", 1171 "common/mus_property_mirror_ash_unittest.cc",
1172 "common/session/session_controller_unittest.cc",
1173 "common/shelf/shelf_application_menu_model_unittest.cc",
1174 "common/shelf/shelf_background_animator_unittest.cc",
1175 "common/shelf/shelf_button_pressed_metric_tracker_unittest.cc",
1176 "common/shelf/shelf_locking_manager_unittest.cc",
1177 "common/shelf/shelf_model_unittest.cc",
1178 "common/shelf/shelf_tooltip_manager_unittest.cc",
1179 "common/shelf/shelf_window_watcher_unittest.cc",
1164 "common/system/chromeos/audio/tray_audio_unittest.cc", 1180 "common/system/chromeos/audio/tray_audio_unittest.cc",
1165 "common/system/chromeos/brightness/tray_brightness_unittest.cc", 1181 "common/system/chromeos/brightness/tray_brightness_unittest.cc",
1182 "common/system/chromeos/ime_menu/ime_menu_tray_unittest.cc",
1183 "common/system/chromeos/media_security/multi_profile_media_tray_item_unittes t.cc",
1184 "common/system/chromeos/network/sms_observer_unittest.cc",
1166 "common/system/chromeos/network/vpn_list_unittest.cc", 1185 "common/system/chromeos/network/vpn_list_unittest.cc",
1186 "common/system/chromeos/palette/mock_palette_tool_delegate.cc",
1187 "common/system/chromeos/palette/mock_palette_tool_delegate.h",
1188 "common/system/chromeos/palette/palette_tool_manager_unittest.cc",
1189 "common/system/chromeos/palette/tools/create_note_unittest.cc",
1190 "common/system/chromeos/palette/tools/screenshot_unittest.cc",
1191 "common/system/chromeos/power/power_status_unittest.cc",
1192 "common/system/chromeos/power/power_status_view_unittest.cc",
1193 "common/system/chromeos/power/tray_power_unittest.cc",
1167 "common/system/chromeos/screen_security/screen_tray_item_unittest.cc", 1194 "common/system/chromeos/screen_security/screen_tray_item_unittest.cc",
1195 "common/system/chromeos/session/logout_confirmation_controller_unittest.cc",
1196 "common/system/chromeos/session/tray_session_length_limit_unittest.cc",
1168 "common/system/chromeos/supervised/tray_supervised_user_unittest.cc", 1197 "common/system/chromeos/supervised/tray_supervised_user_unittest.cc",
1169 "common/system/date/date_view_unittest.cc", 1198 "common/system/date/date_view_unittest.cc",
1199 "common/system/date/system_info_default_view_unittest.cc",
1200 "common/system/ime/tray_ime_chromeos_unittest.cc",
1201 "common/system/tiles/tray_tiles_unittest.cc",
1202 "common/system/tray/size_range_layout_unittest.cc",
1203 "common/system/tray/system_tray_unittest.cc",
1204 "common/system/tray/tray_details_view_unittest.cc",
1205 "common/system/tray/tri_view_unittest.cc",
1170 "common/system/update/tray_update_unittest.cc", 1206 "common/system/update/tray_update_unittest.cc",
1207 "common/system/user/tray_user_unittest.cc",
1208 "common/wallpaper/wallpaper_controller_unittest.cc",
1171 "common/wm/container_finder_unittest.cc", 1209 "common/wm/container_finder_unittest.cc",
1172 "common/wm/mru_window_tracker_unittest.cc", 1210 "common/wm/mru_window_tracker_unittest.cc",
1211 "common/wm/overview/cleanup_animation_observer_unittest.cc",
1173 "common/wm/workspace/workspace_layout_manager_unittest.cc", 1212 "common/wm/workspace/workspace_layout_manager_unittest.cc",
1174 "common/wm_window_unittest.cc", 1213 "common/wm_window_unittest.cc",
1175 "common/wm_window_user_data_unittest.cc", 1214 "common/wm_window_user_data_unittest.cc",
1215 "first_run/first_run_helper_unittest.cc",
1216 "focus_cycler_unittest.cc",
1217 "frame/caption_buttons/frame_size_button_unittest.cc",
1218 "laser/laser_pointer_controller_unittest.cc",
1219 "laser/laser_pointer_points_unittest.cc",
1220 "laser/laser_segment_utils_unittest.cc",
1176 ] 1221 ]
1177 deps = [ 1222 deps = [
1178 "//ash", 1223 "//ash",
1179 "//ash/common/test:test_support", 1224 "//ash/common/test:test_support",
1180 "//ash/public/cpp:ash_public_cpp", 1225 "//ash/public/cpp:ash_public_cpp",
1181 "//ash/public/interfaces", 1226 "//ash/public/interfaces",
1227 "//ash/resources/vector_icons",
1182 "//ash/test:test_support_without_content", 1228 "//ash/test:test_support_without_content",
1183 "//base", 1229 "//base",
1184 "//base/test:test_support", 1230 "//base/test:test_support",
1231 "//chromeos",
1232 "//chromeos:power_manager_proto",
1233 "//chromeos:test_support_without_gmock",
1185 "//services/ui/public/interfaces", 1234 "//services/ui/public/interfaces",
1235 "//testing/gmock",
1236 "//ui/accessibility",
1186 "//ui/app_list/presenter", 1237 "//ui/app_list/presenter",
1187 "//ui/app_list/presenter:test_support", 1238 "//ui/app_list/presenter:test_support",
1188 "//ui/aura", 1239 "//ui/aura",
1189 "//ui/aura:test_support", 1240 "//ui/aura:test_support",
1190 "//ui/base", 1241 "//ui/base",
1191 "//ui/base:test_support", 1242 "//ui/base:test_support",
1243 "//ui/compositor:test_support",
1192 "//ui/display", 1244 "//ui/display",
1193 "//ui/events:test_support", 1245 "//ui/events:test_support",
1246 "//ui/gfx:test_support",
1194 "//ui/keyboard", 1247 "//ui/keyboard",
1195 "//ui/message_center", 1248 "//ui/message_center",
1249 "//ui/message_center:test_support",
1196 "//ui/views", 1250 "//ui/views",
1251 "//ui/views:test_support",
1197 "//ui/wm", 1252 "//ui/wm",
1198 ] 1253 ]
1199 public_deps = [ 1254 public_deps = [
1200 "//ash/test:test_support_without_content", 1255 "//ash/test:test_support_without_content",
1201 ] 1256 ]
1202 } 1257 }
1203 1258
1204 test("ash_unittests") { 1259 test("ash_unittests") {
1205 sources = [ 1260 sources = [
1261 # TODO: move to common_unittests. Fails because of http://crbug.com/622486.
1206 "accelerators/accelerator_commands_unittest.cc", 1262 "accelerators/accelerator_commands_unittest.cc",
1207 "accelerators/accelerator_filter_unittest.cc", 1263
1264 # TODO: move to common_unittests. Fails because of http://crbug.com/557401.
1208 "accelerators/magnifier_key_scroller_unittest.cc", 1265 "accelerators/magnifier_key_scroller_unittest.cc",
1209 "accelerators/spoken_feedback_toggler_unittest.cc", 1266
1267 # Specific to classic-ash.
1210 "app_list/app_list_presenter_delegate_unittest.cc", 1268 "app_list/app_list_presenter_delegate_unittest.cc",
1211 "ash_touch_exploration_manager_chromeos_unittest.cc", 1269
1270 # TODO: move to common_unittests when http://crbug.com/693790 is fixed.
1212 "aura/pointer_watcher_adapter_unittest.cc", 1271 "aura/pointer_watcher_adapter_unittest.cc",
1213 "autoclick/autoclick_unittest.cc",
1214 "common/session/session_controller_unittest.cc",
1215 1272
1216 # TODO: convert to use AshTest http://crbug.com/654489. 1273 # TODO: decide if this needs to be ported. http://crbug.com/695566.
1217 "common/frame/caption_buttons/frame_caption_button_container_view_unittest.c c", 1274 "dip_unittest.cc",
1218 "common/frame/custom_frame_view_ash_unittest.cc",
1219 "common/frame/default_header_painter_unittest.cc",
1220 1275
1221 # TODO: convert to use AshTest http://crbug.com/654492. 1276 # TODO: tests in display generally use display_manger(), which doesn't
1222 "common/metrics/pointer_metrics_recorder_unittest.cc", 1277 # exist in mash. Decide which of these tests need to be ported to mash.
1223 1278 # http://crbug.com/695569
1224 # TODO: convert to use AshTest http://crbug.com/654494.
1225 "common/shelf/shelf_application_menu_model_unittest.cc",
1226 "common/shelf/shelf_background_animator_unittest.cc",
1227 "common/shelf/shelf_button_pressed_metric_tracker_unittest.cc",
1228 "common/shelf/shelf_locking_manager_unittest.cc",
1229 "common/shelf/shelf_model_unittest.cc",
1230 "common/shelf/shelf_tooltip_manager_unittest.cc",
1231 "common/shelf/shelf_window_watcher_unittest.cc",
1232
1233 # TODO: convert to use AshTest http://crbug.com/654495.
1234 "common/system/chromeos/ime_menu/ime_menu_tray_unittest.cc",
1235 "common/system/chromeos/media_security/multi_profile_media_tray_item_unittes t.cc",
1236 "common/system/chromeos/network/sms_observer_unittest.cc",
1237 "common/system/chromeos/palette/mock_palette_tool_delegate.cc",
1238 "common/system/chromeos/palette/mock_palette_tool_delegate.h",
1239 "common/system/chromeos/palette/palette_tool_manager_unittest.cc",
1240 "common/system/chromeos/palette/tools/create_note_unittest.cc",
1241 "common/system/chromeos/palette/tools/screenshot_unittest.cc",
1242 "common/system/chromeos/power/power_status_unittest.cc",
1243 "common/system/chromeos/power/power_status_view_unittest.cc",
1244 "common/system/chromeos/power/tray_power_unittest.cc",
1245 "common/system/chromeos/session/logout_confirmation_controller_unittest.cc",
1246 "common/system/chromeos/session/tray_session_length_limit_unittest.cc",
1247 "common/system/date/system_info_default_view_unittest.cc",
1248 "common/system/ime/tray_ime_chromeos_unittest.cc",
1249 "common/system/tiles/tray_tiles_unittest.cc",
1250 "common/system/tray/size_range_layout_unittest.cc",
1251 "common/system/tray/system_tray_unittest.cc",
1252 "common/system/tray/tray_details_view_unittest.cc",
1253 "common/system/tray/tri_view_unittest.cc",
1254 "common/system/user/tray_user_unittest.cc",
1255
1256 # TODO: convert to use AshTest http://crbug.com/654517.
1257 "common/wallpaper/wallpaper_controller_unittest.cc",
1258
1259 # TODO: convert to use AshTest http://crbug.com/654524.
1260 "common/wm/overview/cleanup_animation_observer_unittest.cc",
1261 "dip_unittest.cc",
1262 "display/cursor_window_controller_unittest.cc", 1279 "display/cursor_window_controller_unittest.cc",
1263 "display/display_color_manager_chromeos_unittest.cc", 1280 "display/display_color_manager_chromeos_unittest.cc",
1264 "display/display_error_observer_chromeos_unittest.cc", 1281 "display/display_error_observer_chromeos_unittest.cc",
1265 "display/display_manager_unittest.cc", 1282 "display/display_manager_unittest.cc",
1266 "display/display_util_unittest.cc", 1283 "display/display_util_unittest.cc",
1267 "display/extended_mouse_warp_controller_unittest.cc", 1284 "display/extended_mouse_warp_controller_unittest.cc",
1268 "display/json_converter_unittest.cc", 1285 "display/json_converter_unittest.cc",
1269 "display/mirror_window_controller_unittest.cc", 1286 "display/mirror_window_controller_unittest.cc",
1270 "display/mouse_cursor_event_filter_unittest.cc", 1287 "display/mouse_cursor_event_filter_unittest.cc",
1271 "display/projecting_observer_chromeos_unittest.cc", 1288 "display/projecting_observer_chromeos_unittest.cc",
1272 "display/resolution_notification_controller_unittest.cc", 1289 "display/resolution_notification_controller_unittest.cc",
1273 "display/root_window_transformers_unittest.cc", 1290 "display/root_window_transformers_unittest.cc",
1274 "display/screen_ash_unittest.cc", 1291 "display/screen_ash_unittest.cc",
1275 "display/screen_position_controller_unittest.cc", 1292 "display/screen_position_controller_unittest.cc",
1276 "display/unified_mouse_warp_controller_unittest.cc", 1293 "display/unified_mouse_warp_controller_unittest.cc",
1277 "display/window_tree_host_manager_unittest.cc", 1294 "display/window_tree_host_manager_unittest.cc",
1295
1296 # These exercise classic-ash specific functionality.
1278 "drag_drop/drag_drop_controller_unittest.cc", 1297 "drag_drop/drag_drop_controller_unittest.cc",
1279 "drag_drop/drag_drop_tracker_unittest.cc", 1298 "drag_drop/drag_drop_tracker_unittest.cc",
1299
1300 # TODO: port to mash. http://crbug.com/695570.
1280 "extended_desktop_unittest.cc", 1301 "extended_desktop_unittest.cc",
1281 "first_run/first_run_helper_unittest.cc", 1302
1282 "focus_cycler_unittest.cc", 1303 # Specific to X11.
1283 "frame/caption_buttons/frame_size_button_unittest.cc",
1284 "host/ash_window_tree_host_x11_unittest.cc", 1304 "host/ash_window_tree_host_x11_unittest.cc",
1285 "laser/laser_pointer_controller_unittest.cc",
1286 "laser/laser_pointer_points_unittest.cc",
1287 "laser/laser_segment_utils_unittest.cc",
1288 "magnifier/magnification_controller_unittest.cc", 1305 "magnifier/magnification_controller_unittest.cc",
1289 "magnifier/partial_magnification_controller_unittest.cc", 1306 "magnifier/partial_magnification_controller_unittest.cc",
1290 "metrics/desktop_task_switch_metric_recorder_unittest.cc", 1307 "metrics/desktop_task_switch_metric_recorder_unittest.cc",
1291 "metrics/task_switch_metrics_recorder_unittest.cc", 1308 "metrics/task_switch_metrics_recorder_unittest.cc",
1292 "metrics/task_switch_time_tracker_unittest.cc", 1309 "metrics/task_switch_time_tracker_unittest.cc",
1293 "metrics/user_metrics_recorder_unittest.cc", 1310 "metrics/user_metrics_recorder_unittest.cc",
1294 "root_window_controller_unittest.cc", 1311 "root_window_controller_unittest.cc",
1295 "rotator/screen_rotation_animation_unittest.cc", 1312 "rotator/screen_rotation_animation_unittest.cc",
1296 "screen_util_unittest.cc", 1313 "screen_util_unittest.cc",
1297 "shelf/shelf_layout_manager_unittest.cc", 1314 "shelf/shelf_layout_manager_unittest.cc",
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
1375 "//ash/public/cpp:ash_public_cpp", 1392 "//ash/public/cpp:ash_public_cpp",
1376 "//ash/public/interfaces", 1393 "//ash/public/interfaces",
1377 "//ash/resources", 1394 "//ash/resources",
1378 "//ash/resources/vector_icons", 1395 "//ash/resources/vector_icons",
1379 "//ash/test:ash_with_aura_test_support", 1396 "//ash/test:ash_with_aura_test_support",
1380 "//ash/test:test_support_without_content", 1397 "//ash/test:test_support_without_content",
1381 "//ash/touch_hud", 1398 "//ash/touch_hud",
1382 "//base", 1399 "//base",
1383 "//base/test:test_support", 1400 "//base/test:test_support",
1384 "//chromeos", 1401 "//chromeos",
1385 "//chromeos:power_manager_proto",
1386 "//chromeos:test_support_without_gmock", 1402 "//chromeos:test_support_without_gmock",
1387 "//components/quirks", 1403 "//components/quirks",
1388 "//components/signin/core/account_id", 1404 "//components/signin/core/account_id",
1389 "//components/user_manager", 1405 "//components/user_manager",
1390 "//device/bluetooth", 1406 "//device/bluetooth",
1391 "//mojo/edk/system", 1407 "//mojo/edk/system",
1392 "//net:net", 1408 "//net:net",
1393 "//services/ui/public/interfaces", 1409 "//services/ui/public/interfaces",
1394 "//skia", 1410 "//skia",
1395 "//testing/gmock", 1411 "//testing/gmock",
(...skipping 12 matching lines...) Expand all
1408 "//ui/compositor", 1424 "//ui/compositor",
1409 "//ui/compositor:test_support", 1425 "//ui/compositor:test_support",
1410 "//ui/display", 1426 "//ui/display",
1411 "//ui/display:test_support", 1427 "//ui/display:test_support",
1412 "//ui/display/types", 1428 "//ui/display/types",
1413 "//ui/events", 1429 "//ui/events",
1414 "//ui/events:gesture_detection", 1430 "//ui/events:gesture_detection",
1415 "//ui/events:test_support", 1431 "//ui/events:test_support",
1416 "//ui/events/devices", 1432 "//ui/events/devices",
1417 "//ui/gfx", 1433 "//ui/gfx",
1418 "//ui/gfx:test_support",
1419 "//ui/gfx/geometry", 1434 "//ui/gfx/geometry",
1420 "//ui/gl:test_support", 1435 "//ui/gl:test_support",
1421 "//ui/keyboard", 1436 "//ui/keyboard",
1422 "//ui/message_center", 1437 "//ui/message_center",
1423 "//ui/message_center:test_support",
1424 "//ui/resources", 1438 "//ui/resources",
1425 "//ui/strings", 1439 "//ui/strings",
1426 "//ui/views", 1440 "//ui/views",
1427 "//ui/views:test_support", 1441 "//ui/views:test_support",
1428 "//ui/wm", 1442 "//ui/wm",
1429 "//ui/wm:test_support", 1443 "//ui/wm:test_support",
1430 "//url", 1444 "//url",
1431 ] 1445 ]
1432 1446
1433 data_deps = [ 1447 data_deps = [
(...skipping 29 matching lines...) Expand all
1463 "//content/public/app:both", 1477 "//content/public/app:both",
1464 "//device/bluetooth", 1478 "//device/bluetooth",
1465 ] 1479 ]
1466 1480
1467 data_deps = [ 1481 data_deps = [
1468 "//ash/common/strings:ash_test_strings", 1482 "//ash/common/strings:ash_test_strings",
1469 "//ash/resources:ash_test_resources_with_content_100_percent", 1483 "//ash/resources:ash_test_resources_with_content_100_percent",
1470 "//ash/resources:ash_test_resources_200_percent", 1484 "//ash/resources:ash_test_resources_200_percent",
1471 ] 1485 ]
1472 } 1486 }
OLDNEW
« no previous file with comments | « no previous file | ash/accelerators/accelerator_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698